Iron golems still spawn even when the game rule doMobSpawning is set to false. A valid spawn point for the golem is found.When gossiping, at least 5 participants are needed.There are enough participants within 10 blocks of the villager, including the villager itself participating villagers need to fulfill the previous 3 conditions.A villager is near a summoning when it is within 10 blocks of a villager (☑0 X ☑0 Z ☑0 Y axis) who successfully summons an iron golem.The villager has not been near a summoning in the last 30 seconds.The villager scans for golems once every 10 seconds.
An iron golem is detected when it is within 16 blocks of the villager (☑6 X ☑6 Z ☑6 Y axis).The villager has not detected an iron golem in the last 30 seconds.The villager has slept in the last 20 minutes.In Java Edition, villagers can summon iron golems, either when they are gossiping or panicking and the following criteria are met: