Minecraft wiki entry for Superflat_survival, associated text: The mechanic that controls iron golem spawns in bedrock edition is actually the same as old iron golem farms, but replace doors with beds. In Java Edition, villagers need gossiping about golems. With iron golems, you can harvest lots of iron easier, and can also be used to defend a village from a siege or a raid. Iron golems can easily kill the slimes that emerge in large numbers.