Witch Hut structure data do not account for height the witch hut is generated at
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.
2014-10-15, 09:58 PM
2019-06-24, 04:23 PM
2019-06-24, 04:23 PM
131
50
Minecraft 1.8 - Minecraft 1.13.2
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
-