How to Build an Iron Farm in Minecraft

An iron farm is one of the best early-to-mid-game projects in Minecraft. Once it is running, it quietly stockpiles iron ingots while you do other things, fueling everything from rails and hoppers to armor and tools. The whole thing relies on a single mechanic: villagers summoning iron golems for protection. Understand that mechanic and the build becomes simple. This guide explains exactly how golem spawning works, then walks through a reliable, beginner-friendly design and the rates you can expect.

How iron golem spawning works

Iron farms exploit the fact that villagers spawn iron golems to defend themselves. The exact trigger differs between the two editions of the game, so check which one you are playing.

In Java Edition, villagers summon golems when they are gossiping or panicking. A group of five or more villagers with at least one gossiping can qualify, but the far more efficient route is panicking: only three or more panicking villagers are needed, and they make a spawn attempt every 5 seconds. For a golem to actually spawn, each villager must have slept in the last 20 minutes, there must be no other iron golem detected within 16 blocks in the last 30 seconds, and there must be a valid spawn spot.

In Bedrock Edition, the system is village-based rather than panic-based. The village needs at least 20 beds and 10 villagers, all villagers must be linked to a bed, and at least 75% must have worked at their workstations the previous day. There is then roughly a 1-in-700 chance per game tick of a spawn attempt, which averages out to about one attempt every 35 seconds.

In both editions the golem is placed somewhere inside a 17×13×17 box (±8 blocks horizontally and ±6 blocks vertically) centered on the villager or village center. The chosen spot needs a solid block with the space above it clear, so a flat lit platform is ideal.

The panic mechanic (Java) and the zombie trick

The single most reliable way to force constant golem spawns in Java is to scare the villagers. Villagers panic when they see a mob hostile to them, such as a zombie, husk, drowned, illager, or ravager. While panicking, the group makes a golem spawn attempt every 5 seconds, so a permanent fright source means a steady stream of golems.

The classic setup is a single zombie sealed in a glass or trapdoor box where the villagers can see it but it cannot reach them. A zombie scares villagers within about 6 blocks, so keep the villagers close to it. (A pillager scares from a larger range, around 15 blocks, but it must be disarmed of its crossbow first, which makes the zombie the easier choice for most builds.)

A simple reliable design

Here is a straightforward layout that works in both editions with minor tweaks. The goal is the same everywhere: cluster the villagers, give the golems one obvious place to spawn, then move them to where they die.

  1. Build a villager pod. Place three or more villagers (Java) in a small enclosed cell with a bed each and a workstation. In Bedrock, build out a full village footprint with 20 beds and 10 villagers.
  2. Add the spawn platform. Below the villagers, leave a flat, fully lit platform of solid blocks. Light it up so no other mobs spawn there, and leave the two blocks of air above each spawn tile clear.
  3. Set up the panic source (Java). Place one zombie in a sealed cell within about 6 blocks of the villagers so they can always see it. In Bedrock you do not need this; the village just needs to be inside your simulation distance.
  4. Add a collection system. Use water streams or trapdoors so spawned golems fall or flow into a kill chamber. A drop, lava blade, or campfire-based killer collects the iron into hoppers and a chest.

Make sure villagers can actually sleep (Java) and reach their beds and workstations (Bedrock), since both conditions gate spawning. Keep the platform free of stray light-blocking blocks so the golem always has a legal place to appear.

Drops and expected rates

Every iron golem you kill drops a guaranteed 3 to 5 iron ingots (averaging 4) and 0 to 2 poppies (about a 67% chance, averaging 1). That is the entire economy of the farm: more golems per hour means more iron.

StatValue
Iron per golem3–5 ingots (avg 4)
Poppies per golem0–2 (avg ~1)
Java panic threshold3+ villagers
Java gossip threshold5+ villagers
Bedrock minimum20 beds, 10 villagers
Spawn box17×13×17 (±8 horiz, ±6 vert)
Typical output~240–400 ingots/hour

A well-built single-village farm commonly produces somewhere in the range of 240 to 400 iron ingots per hour, depending on edition, design, and how reliably the spawn conditions are met. Multi-village designs and Nether-based golem-cap tricks can push this higher, but a single clean farm is more than enough for most worlds.

FAQ

Why is my iron farm not spawning golems?

The most common causes are villagers that have not slept recently (Java requires sleep in the last 20 minutes), too few villagers (3+ to panic, 5+ to gossip in Java; 10 villagers and 20 beds in Bedrock), or an obstructed spawn platform. Also check that no existing golem is sitting within 16 blocks, which blocks new spawns for 30 seconds.

Do I need a zombie in Bedrock Edition?

No. The panic-and-zombie trick is a Java mechanic. Bedrock spawns golems from a valid village (20 beds, 10 villagers, workstations used) on a per-tick chance, so you just need the village inside your simulation distance.

How many villagers do I really need?

In Java, three panicking villagers is the practical minimum and the most efficient setup. In Bedrock you need a full village of at least 10 villagers and 20 beds.

Once your iron stockpile is growing, you can put it to work on bigger projects. If you want gear next, see our best Minecraft enchantments guide, and if you are chasing other resources, check the best Y level for diamonds. Iron farms also pair perfectly with an XP and mob farm for fast levels.

Farms like this are a lot more fun with friends watching the iron pile up together. If you want a persistent world that runs around the clock, you can rent a Minecraft server and invite your group, and our Minecraft setup docs walk you through getting it configured.

Ready to play?

Run your own Minecraft server with XGamingServer

Spin up an always-on Minecraft server your friends can join in minutes — no port-forwarding, no tech headaches.

99.9%Uptime SLA
< 5 minInstant setup
24/7Human support
DDoSProtected
Instant setup Your server is live in minutes with a one-click control panel.
Mods & plugins Install mods, plugins and workshop content in a few clicks.
DDoS protected Enterprise DDoS mitigation keeps your server online 24/7.
Low-latency hardware Premium CPUs & NVMe SSDs for lag-free multiplayer.
Free backups Automatic backups so your world is never lost.
Real human support Gamers helping gamers — 24/7, no bots, no scripts.

Pick your Minecraft plan & play in minutes

See all plans
Starter $8.40/mo 4 GB RAM Renews $12/mo Buy now
Rookie $17.50/mo 8 GB RAM Renews $25/mo Buy now
Pro $24.50/mo 12 GB RAM Renews $35/mo Buy now