I created a new Hardcore world in the latest snapshot. When I came to a village and stood there for a while, with only eight villagers and no threat at all, there were ten to fifteen iron golems in five minutes, with more spawning continuously.
Linked issues
is duplicated by 3
Attachments
Comments 2
Prior to 26.1-snapshot-3, the GolemSensor class checks for iron golem with: entity.getType().equals(EntityType.IRON_GOLEM).
But in 26.1-snapshot-3, the check becomes: entity.is(EntityType.IRON_GOLEM), comparing the golem entity with an entity type.
So none of the golems are being detected and saved to the villager’s memory and we can view this in-game with /data get entity @n[type=villager] command with a villager next to a golem.
Here’s a setup on 26.1-snapshot-2 where the villager correctly detects and remembers where it last saw the golem:
This is the same setup on 26.1-snapshot-3 where the villager doesn’t have that memory:
So none of the golems will prevent villagers from spawning more golems.
Hi!
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Did the issue happen only once, or does it occur consistently?
Could you please provide a world where issue occurs? (If the file is to big to upload it here please upload it to One Drive and post the link to it here)
This ticket will automatically reopen when you reply. Thanks!
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki