An iron farm is the build that ends iron scarcity for good. Once it runs you stop strip-mining for iron and start spending it freely on rails, hoppers, anvils, buckets, and full sets of tools. It is usually the first large farm a Java player commits to, and in Minecraft 26.2 Java Edition it runs entirely on village mechanics, not mob-cap spawning.

This is a complete guide to the mechanic and a compact, reliable design. If you want the classic single-village-detection variant, see the iron golem farm guide; this article is version-pinned to 26.2 and focuses on the panic-based design that most modern farms use.

Tested on: Minecraft 26.2, Java Edition, vanilla survival. The mechanics described are documented behavior. Rates depend on how many villager groups you stack and your AFK placement, so measure your own build (see the rates section).

How iron golems spawn (the part that matters)

Iron golems do not spawn from the hostile mob cap or light level. They spawn from a village, and in Java a "village" is just a cluster of villagers that have claimed beds and can see each other. The trigger for golem spawning is panic.

Here is the rule the whole farm is built on:

  1. A group of at least three villagers that have slept (linked to beds) and worked forms a village center (a "gossip" group).
  2. When those villagers see a zombie (or other hostile mob) within range, they panic.
  3. If enough villagers panic at once, the village attempts to spawn an iron golem to defend them, roughly every 30 seconds while the threat persists.

So the design is: put three villagers in a box, show them a zombie they can see but that cannot reach them, and harvest the golems the village keeps spawning.

The zombie must be separated by glass or a 1-block gap so the villagers can see it (line of sight) without it reaching them. A zombie in a glass box one block from the villagers is the standard trigger. Name-tag it so it never despawns.

Why three villagers and beds matter

Two requirements trip up most first builds:

  • Bed linking. Each villager must have claimed a bed (slept in it at least once at night, or linked during the day). Villagers without beds do not count toward the village center, and no village means no golems. Give each of the three villagers their own bed within reach.
  • Line of sight to the threat. Panic requires the villagers to actually see the zombie. If you wall it off with opaque blocks, they never panic and the farm produces nothing. Glass is the fix.

Get those two right and the farm runs. Everything else is just funneling and killing the golems.

The compact design

A working panic-based iron farm has four parts.

1. The villager pod

A small box holding three villagers, each with a bed and within sight of each other. Workstations are not required for golem spawning, but the villagers must have linked beds. Keep the pod small so the golems spawn in a predictable spot.

2. The zombie trigger

A single named zombie in a glass enclosure adjacent to the pod, in clear line of sight of all three villagers. The glass keeps the villagers in permanent panic without letting the zombie path to them. One zombie is enough to keep a village spawning golems indefinitely.

3. The spawn platform and funnel

Iron golems spawn on valid ground within the village boundary. Constrain that ground to a single platform directly below or beside the pod, then push the spawned golems off it. Water streams carry golems to a drop or a kill chamber. Golems are large (they need a 3-block-tall space), so size your funnel for their hitbox.

4. The kill chamber

Iron golems have 100 HP, so fall damage alone is slow. The standard kill method is lava blades or a campfire/magma + water combination that damages the golem without burning the iron and poppy drops. A common compact design drops golems onto a lava blade timed to kill the golem but let the items fall through to hoppers below.

Do not let lava touch the item drops, or you lose the iron. The classic fix is a lava blade held by a sign or trapdoor above a water stream: the lava kills the golem, the water carries the iron ingots and poppies to hoppers untouched.

Hoppers under the collection point feed everything into chests.

AFK placement and keeping the village loaded

Like every spawning farm, an iron farm only runs while its chunks are loaded and a player is in range for the village to tick. You must:

  • Stay within simulation distance of the village so villagers tick, panic, and spawn golems.
  • Keep out of the way of the spawn platform so golems spawn and funnel freely.

The exact geometry is easy to get wrong by guessing. The Mob Spawner Optimizer lets you place your AFK point and see what is in simulation range, which is the difference between a farm that spawns golems steadily and one that stalls.

For fully passive operation, force-load the farm's chunks so the village keeps ticking while you do other things:

/forceload add <farm-x> <farm-z>

You need ENTITY_TICKING level (what /forceload provides). See the chunk borders and forceload guide for why lower ticket levels are not enough to keep a village alive.

Rates: what actually drives output

A single village spawns roughly one iron golem every 30-35 seconds while the villagers panic, which is about 40-80 iron per hour after the golem is killed and drops 3-5 iron each. The honest answer for "how much iron" is: it scales with how many villager pods you stack.

What determines your rate:

  • Number of village groups. Stacking several independent 3-villager pods, each with its own trigger and spawn platform, multiplies output. Large iron farms are just many small farms tiled together.
  • Continuous panic. If the villagers stop seeing the zombie (it despawned, or line of sight broke), spawning stops. Name-tag the zombie and keep the glass clear.
  • Kill throughput. If golems pile up unkilled, the village stops spawning new ones. Keep the kill chamber clearing golems faster than they spawn.

Build it, AFK for a measured ten minutes with a timer, and multiply. That number is real for your farm.

Server performance and why it matters

Villagers are among the most CPU-expensive entities in the game because of their pathfinding and gossip AI. An iron farm with several villager pods, plus golems spawning and dying, plus item entities and hoppers, is a real load. On a multiplayer server, several players each running iron farms is a classic source of TPS drops.

If you run a server, size it for the villager and entity load before building big. Our Server RAM Calculator estimates the memory you need by player count and activity, and the hosting comparison ranks hosts on real high-entity performance. If a single-player world chugs near the farm, the lag and stutter guide covers the simulation-distance and entity settings that help most.

Common mistakes

No golems spawn at all. Usually the villagers have no linked beds, or fewer than three count as a village. Confirm each villager has slept in or claimed a bed, and that they can all see each other.

Golems spawn rarely or stop. The zombie trigger is broken: it despawned (name-tag it), or the villagers lost line of sight to it (use glass, not opaque blocks). Panic must be continuous.

Golems spawn outside the platform. The village boundary includes spawnable ground you did not intend. Constrain valid spawn space to your platform by slabbing, lighting, or removing other surfaces inside the village.

Iron drops are getting destroyed. Lava is touching the item entities. Separate the kill mechanism from the item path so water carries the iron to hoppers untouched.

Farm stops when you move. The chunks left simulation distance. Force-load them and keep your AFK spot in range. Review render vs simulation distance if villagers freeze when you back away.

Iron farms pair naturally with villager builds. A villager breeder gives you a renewable supply of villagers to stock more pods, and a villager trading hall turns cheap iron into emeralds. For the single-village-detection variant of this farm, see the iron golem farm guide.

This guide is part of our Minecraft farm guides collection for 26.2.

Frequently asked questions

How does an iron farm work in Minecraft 26.2 Java?

It uses village mechanics, not the mob cap. Three or more villagers with linked beds form a village; when they panic at a zombie they can see but that cannot reach them, the village spawns iron golems roughly every 30 seconds. You funnel the golems to a kill chamber and collect the iron.

How much iron does an iron farm produce in 26.2?

A single village pod produces roughly 40-80 iron per hour. Output scales linearly with how many independent villager pods you stack, so large farms simply tile many small ones together.

Why is my iron farm not spawning golems?

The two most common causes are villagers without linked beds (so no village forms) and a broken zombie trigger (it despawned or the villagers cannot see it). Give each villager a bed, name-tag the zombie, and use glass so the villagers keep line of sight.

Do I need three villagers for an iron farm?

Yes. The village center that spawns defensive golems requires at least three villagers that have claimed beds and can see each other. Fewer than three will not spawn golems reliably.

How do I kill iron golems without destroying the iron?

Use a lava blade or magma damage that kills the golem but is separated from the item path by a water stream, so the iron ingots and poppies fall to hoppers untouched. Never let lava contact the drops.


Sources & further reading: