Reading the unobfuscated code of the logic used to decide whether a block is valid to spawn a golem on when villagers panic I noticed the game checks if it is either a solid block or a block of Powder Snow. I tried to make a farm using this mechanic, but all tests in-game failed. After some more digging I realized that while this check passes no problem, other checks further ahead don’t.
I post this bug report since the intent seems quite clear in the code for this to be a feature.
These are the relevant paths in the code:
The strategy that intents to allow the spawning:
net.minecraft.util.SpawnUtil.Strategy.LEGACY_IRON_GOLEMThe check that fails:
net.minecraft.world.level.block.state.BlockBehaviour.BlockStateBase#entityCanStandOninnet.minecraft.world.entity.animal.golem.IronGolem#checkSpawnObstruction
Comments 0
No comments.