An iron farm is a player-built structure that uses a village's iron golem spawning mechanic to produce iron ingots automatically, usually while you are elsewhere in the world. The shortest working version is a small, walled-in village of three or more villagers with beds and a workstation each, a zombie held in a cage to scare them, and a collection system underneath the golem spawn spot. Build it in Java or Bedrock (the designs differ enough that you should not mix them), give it about 16 blocks of clear space, and check the farm's footprint for caves and other beds before you start. Note that menu labels and game behaviours here vary by version and platform, and Minecraft updates have changed villager and golem behaviour before, so test a small version first.

What You'll Need

  • At least 3 villagers (most efficient designs use 3; more villagers mean faster golem spawning up to a point)
  • 3 beds and 3 workstations (a composter, lectern, or smithing table each; any one profession is fine as long as each villager claims a station)
  • A zombie or another hostile mob to scare the villagers, plus a means of keeping it safe and contained (a boat or a cage of blocks)
  • Building blocks: stone, glass, slabs, and a lot of solid blocks for the platform and walls
  • A hopper and chests (or a minecart hopper system for larger farms) for collection
  • Water buckets and a bucket of lava if you want a killing chamber, or a drop shaft for fall damage
  • A name tag is optional but useful if you want to keep the zombie from despawning (a named hostile mob will not despawn; a zombie in a boat also works)
  • A pickaxe, shovel, and plenty of torches or lanterns for lighting

Step-by-Step

  1. Pick a flat site with nothing above or below. Iron golem spawning depends on villagers being able to pathfind and on the space around the spawn spot being clear. Dig down and look for caves, and look up for overhangs. If other villagers, beds, or golems are within roughly 16 blocks, they can pull golems away from your collection point. A flat area away from your base's other villagers is the safest place.
  2. Build the villager pod. Create a small enclosed room for the villagers, usually 3 to 5 blocks on each side and at least 2 blocks tall. Put the beds inside with space above them, and place each workstation so every villager can claim one. The villagers need to see and sleep in beds and stand at their stations; if they cannot reach a bed, the farm will not spawn golems.
  3. Add the scarecrow. Place the zombie in a contained spot (a boat is the simplest) so the villagers can see it through glass but cannot reach it. The villagers must be able to see the zombie while it cannot path to them. Keep it lit enough that other mobs do not spawn around it, and secure it so it cannot wander off.
  4. Create the golem spawn platform. Put a flat platform of solid blocks just outside the villager pod, at the level where golems should appear. Most compact designs place a 3-by-3 or larger platform above the collection area. Keep at least 2 blocks of headroom above it so golems do not suffocate, and keep the platform free of blocks that would block spawning.
  5. Build the kill and collection system. Lead golems from the spawn platform into a drop shaft or a killing chamber. A simple version is a shaft deep enough to kill by fall damage, with a hopper at the bottom feeding a chest. If you use lava, place it so it burns the golem but does not reach the villagers or the collection chest, and do not stand in the chamber while it is active.
  6. Connect villagers to the golem's path. Golems spawn near the village centre and then move toward the scarecrow. Check that the path from the spawn platform to the collection point is open and that no blocks stop them. If golems pile up on the platform, the access route is wrong.
  7. Light and seal the farm. Light the villager area and the spawn platform so hostile mobs do not spawn there. Seal the sides with solid blocks or glass so villagers cannot escape and mobs cannot wander in. A stray mob inside the villager pod will stop the farm.
  8. Test it. Wait a few in-game days. Golems spawn on a timer based on villagers' sleep and work cycles, so do not judge the farm in the first minute. Sleep in a bed away from the farm or leave the area loaded; farms far from where you spend time will not run because chunks unload.

Common Mistakes

The most common failure is a sleep problem: villagers who never sleep will not trigger golem spawning. Beds must be reachable, have space above them, and the villagers must actually lie down. Another frequent mistake is placing the farm too close to other beds or villagers, so golems wander off to the wrong village. Third is a village that is too small: three villagers are the minimum, and if one dies or fails to claim a bed, spawning stops. Finally, many builders forget chunk loading — a farm built far away is dead weight until someone is nearby. Also watch for a zombie that has line of sight blocked by a full wall instead of glass; the villagers need to see it.

Tips

Build a small version first and confirm golems spawn before scaling up. Keep the design compact so golems drop straight into the collection point. Use glass instead of solid blocks between villagers and the zombie. Name the zombie or keep it in a boat so it does not despawn. Place chests outside the kill chamber so you can empty them without entering harm's way. In Bedrock, behaviour differs: villager and golem rules are not identical to Java, so follow a design made for your edition. Keep the farm away from your main village to avoid merging villages, and do not expand the villager pod unless spawning has stopped for a full day.

Troubleshooting

If no golems spawn, check the villagers first. Look at whether they sleep at night and whether each one has a claimed bed and workstation. Remove and replace beds if villagers are not linking. Check that the zombie is visible and that no block or glass tint blocks the sight line. If golems spawn but fall outside the collection area, the spawn platform is positioned wrong relative to the village centre; move the platform closer to the villagers. If golem spawning starts then stops, a villager may have died, lost its bed, or been unable to reach a workstation — replace the block and wait a day. If iron never reaches the chest, check the hopper underneath is powered off (a redstone signal locks a hopper) and that the chest is not full. If the farm worked and then quit, check whether you left the area and the chunk unloaded; return or build a closer farm. If mobs keep getting inside, check every wall and roof for a gap and light the interior. If you are on Bedrock, confirm the design is for Bedrock; Java-only farms often fail on Bedrock.

Frequently Asked Questions

How many villagers do I need for an iron farm?

Three villagers with beds and workstations are the usual minimum. More villagers can speed up spawning, but they also need beds and jobs, and too many can make the design unstable.

Why is my iron farm not spawning golems?

Almost always because villagers are not sleeping, cannot see the zombie, or are too close to another village. Check those three before changing the build.

Do I need a zombie for golem spawning?

A scare mob increases spawning dramatically, but some designs work with villagers alone at a much slower rate. The zombie is what makes the farm practical.

Does the farm work while I am away?

No. Minecraft only simulates loaded chunks. You must be near the farm or in the same loaded area for it to run.

Can I use the same design in Java and Bedrock?

Not reliably. Villager and golem behaviour differs between editions, so use a design built for your version.

What if my golems spawn but never reach the chest?

Check the path from the spawn platform, the hopper beneath the kill chamber, and the chest's free space. A powered hopper or full chest stops collection even when the farm is working.