Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-73051

Witch Hut structure data do not account for height the witch hut is generated at

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • Minecraft 1.8, Minecraft 1.8.1-pre1, Minecraft 1.8.1-pre2, Minecraft 1.8.1-pre3, Minecraft 1.8.2-pre1, Minecraft 1.8.2-pre3, Minecraft 1.8.3, Minecraft 1.8.6, Minecraft 1.8.7, Minecraft 15w32b, Minecraft 15w40b, Minecraft 15w50a, Minecraft 1.9 Pre-Release 1, Minecraft 1.9.4, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w17b, Minecraft 1.12, Minecraft 1.13.2
    • None
    • Confirmed
    • Structures, World generation

      The bug

      When saving witch hut structure data the game wrongly assumes all witch huts generate at the same height. As a result, witch huts generated higher than usual will allow regular mobs to spawn inside.

      How to reproduce

      Observe spawning in the witch hut at 8832, 9456 on seed "Witch hut test", pointed out by anomie x in the comments.

      /tp @p 8832 100 9456

      See attached screenshots: One showing three layers of witch spawning floors built in a witch hut generated at its usual height, one showing three layers built at the same height (relative to the witch hut) which generated above Y=100. One spawns witches, the other spawns all kinds of mobs.

      Code analysis

      Code analysis by Xcom6000 can be found in this comment.

        1. 2014-10-15_20.34.54.png
          2014-10-15_20.34.54.png
          1.89 MB
        2. 2014-10-15_19.46.16.png
          2014-10-15_19.46.16.png
          1.95 MB
        3. 2015-10-01_21.02.23.png
          2015-10-01_21.02.23.png
          866 kB
        4. 2017-07-30_11.16.40.png
          2017-07-30_11.16.40.png
          1.67 MB

            Unassigned Unassigned
            redstonehelper [Mod] redstonehelper
            Votes:
            131 Vote for this issue
            Watchers:
            50 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: