Tutorials/Iron golem farming

Iron golem farms use village mechanics to produce iron.

Java Edition
In Java Edition, a villager may attempt to spawn an iron golem after "talking" to 10 other villagers. The villagers must have access to their workspace and have slept before the golem will spawn, however.

Bedrock Edition
In Bedrock Edition, villagers are not required to sleep or have a workstation in order to spawn iron golems. For an iron golem to spawn, the following conditions must be met:
 * The village has at least 21 beds
 * The village has at least 10 villagers, each of whom has claimed a bed
 * The villagers can interact with one another