Game
Guides
Downloads
Versions
Farms · Tutorial

How to build an iron farm in Minecraft (26.x)

A compact Java iron farm: 3 villagers on beds, 1 zombie, a water-fed floor and a lava blade over a hopper. Exact layers, materials and expected output.

Intermediate 5 min read Updated Tested on Java 26.3
An empty glass tower with water channels, hoppers and chests collecting iron ingots.
On this page · 8
  1. Pick a spot away from villages
  2. Build the floor, hopper and chest
  3. Build the lava blade above the hopper
  4. Pour water into the four corners
  5. Build the villager pod above the centre
  6. Bring in the zombie and the villagers
  7. Wait for the first night, then collect
  8. Fix a farm that stops

What you need

Gathered 0 / 10Raw = everything broken down with our recipes

An iron farm turns three trapped villagers and one zombie into a steady stream of iron golems, which a lava blade kills over a hopper. This build is for Java Edition 26.3 and needs no redstone.

Build plan · 3D and layer by layer

Iron Farm

Iron Farm: 3D render of the blueprint
Render from the 26.3 game files, made by Blockaria.
10 / 10
Size (W × H × D)
11 × 10 × 11
Blocks placed
266
Block types
9
Layers
10
Difficulty
Medium
Main material
Stone
All blocks since
1.16
Survival
Yes
ID

Layer by layer

Seen from above, north at the top. The layer below shows faded.

1 / 10
Layer 11 blocks
Iron Farm, layer 1 of 10, seen from above
  • Chest× 1
Layer 2121 blocks
Iron Farm, layer 2 of 10, seen from above
  • Cobblestone× 120
  • Hopper× 1
Layer 345 blocks
Iron Farm, layer 3 of 10, seen from above
  • Glass× 40
  • Water Bucket× 4
  • Crimson Fence Gate× 1
Layer 445 blocks
Iron Farm, layer 4 of 10, seen from above
  • Glass× 40
  • Crimson Fence Gate× 4
  • Lava Bucket× 1
Layer 50 blocks
Iron Farm, layer 5 of 10, seen from above
Layer 611 blocks
Iron Farm, layer 6 of 10, seen from above
  • Glass× 10
  • Cobblestone Slab× 1
Layer 713 blocks
Iron Farm, layer 7 of 10, seen from above
  • Glass× 7
  • White Bed× 6
Layer 813 blocks
Iron Farm, layer 8 of 10, seen from above
  • Glass× 10
  • Cobblestone Slab× 3
Layer 913 blocks
Iron Farm, layer 9 of 10, seen from above
  • Glass× 12
  • Cobblestone× 1
Layer 104 blocks
Iron Farm, layer 10 of 10, seen from above
  • Glass× 4
  • NNorth is up
  • Stairs: the arrow points to the tall side
  • Hollow arrow: upside-down stairs
  • Corner mark: slab in the top half
  • Faded: layer below

Materials

Glass Glass1 stack + 59 123
Cobblestone Cobblestone1 stack + 57 121
Crimson Fence Gate Crimson Fence Gate 5
Water Bucket Water Bucketdoes not stack 4
Cobblestone Slab Cobblestone Slab 4
White Bed White Beddoes not stack 3
Chest Chest 1
Hopper Hopper 1
Lava Bucket Lava Bucketdoes not stack 1

263 items · 16 inventory slots · 1 Shulker box

Get it in your world

/place template blockaria:iron_farm ~ ~ ~

Places the build with its north-west bottom corner at your position. Needs cheats (permission level 2).

Same build turned a quarter turn clockwise/place →
/place template blockaria:iron_farm ~ ~ ~ clockwise_90
Download iron_farm.nbt

Structure file (.nbt) for Java Edition. Put it in saves/<world>/generated/blockaria/structure/, then run the command above or load it with a Structure Block.

Pick a spot away from villages

In Java Edition, a villager that panics at a zombie tries to summon an Iron Golem every 5 seconds, as long as:

  • it has slept in a bed within the last 20 minutes (one in-game day),
  • at least 3 villagers within 10 blocks meet the same conditions,
  • none of them has detected an iron golem within 16 blocks, or been near a summoning, in the last 30 seconds.

Workstations and professions are not needed. The golem appears on top of a solid block within 8 blocks sideways and 6 blocks up or down from the villager, but never on glass. That is why everything in this farm except the floor is glass.

Build far from any village: a village golem walking within 16 blocks of your villagers blocks the farm. Put the floor at least 4 blocks above the ground and keep trees and hills within 10 blocks of the farm below that height, or golems will spawn outside it.

Build the floor, hopper and chest

Build an 11×11 floor of Cobblestone (120 blocks) and leave the centre block open. Place a Chest one block under that gap, then sneak and place a Hopper in the gap so it feeds down into the chest. The hopper sits level with the floor.

On the outermost ring of the floor, build a wall of Glass 2 blocks high (80 glass). Inside you now have a 9×9 room with the hopper in the middle.

Build the lava blade above the hopper

Use Crimson Fence Gate or Warped Fence Gate: Nether wood does not burn, while lava can set oak gates on fire and then leak.

  1. Sneak and place a fence gate on top of the hopper.
  2. On the next layer up (2 blocks above the floor), place 4 gates around the centre: north, east, south and west of it. Put a temporary block on the floor, place the gate on top, then break the block. Fence gates stay in the air.
  3. Open all 5 gates. Open gates have no hitbox, but lava cannot flow into them.
  4. Sneak and empty a Lava Bucket on top of the lower gate. The lava sits 2 blocks above the floor, held on all sides by gates.

A golem standing on the hopper has its upper body in the lava. Its drops fall below the lava, straight into the hopper.

Pour water into the four corners

Empty a Water Bucket into each of the 4 inside corners of the room. Water flows 7 blocks, so it covers the whole floor except the centre, which is 8 blocks from every corner. The current pushes every golem onto the hopper. If water reaches the centre, a source is in the wrong place.

Build the villager pod above the centre

Levels count from the floor (the floor is level 0). Arms point west, east and north from the centre column above the hopper. Everything is glass unless stated.

  • Level 4: a Cobblestone Slab in the bottom half, directly above the hopper (the zombie stands on it). Glass on the 3 blocks of each arm and on the 1 block south of the slab (10 glass).
  • Level 5: glass on the 1 block south of the centre column. Leave the 3 blocks between the centre column and the pillows empty: they are the gaps through which the villagers see the zombie. On each arm, place a White Bed from the outside so the pillow lands 2 blocks from the centre and the foot 3 blocks out. Glass on both sides of each pillow (7 glass, 3 beds).
  • Level 6: a Cobblestone Slab in the top half of each of the 3 blocks above the gaps. Glass on both sides of each pillow, on each bed foot and south of the centre column (10 glass, 3 slabs).
  • Level 7: glass on both sides of each pillow, above each bed foot and above each of the 3 slabs (12 glass). Leave the centre open for now.

The gaps at level 5 make the farm work. A villager lying in its bed sees the zombie through its gap and wakes up in panic: that is when it can summon a golem. Standing on the pillow, its eyes are higher and the slab hides the zombie, so it calms down and goes back to bed. Mobs cannot see through glass, and the slab blocks the view from above. On our 26.3 test server, villagers that could see the zombie while standing never went to bed, and without sleep they stop summoning golems. The gaps are too low for a villager or the zombie to pass.

Bring in the zombie and the villagers

At night, bring an adult zombie with empty hands in a Minecart on rails (or in a boat), stop above the open centre column and break the cart: the zombie drops onto the slab. Rename a Name Tag on an Anvil and use it on the zombie so it never despawns. Then:

  1. Place a Cobblestone block at level 7 above the zombie. It keeps the sun off.
  2. Bring 3 adult villagers the same way and drop one onto each pillow.
  3. Close the top at level 8 with 4 glass: over the cobblestone and over the 3 villagers.

Wait for the first night, then collect

Villagers must sleep before they can summon, so the farm starts with the first night. In this pod the villagers see the zombie only from their beds: each one wakes up in panic, can summon a golem, calms down and lies down again, all night long. During the day they stand and do not see it, so the farm makes golems at night only. Golems appear on the floor, the water carries them to the centre and the lava kills each one in about 10 to 15 seconds. Every iron golem drops 3–5 Iron Ingot (4 on average) and 0–2 Poppy.

On our 26.3 test server, the farm gave 51 Iron Ingots and 17 Poppies in one in-game night (12,000 ticks): count on about 50 ingots per night. The farm only runs while you stay within simulation distance.

Fix a farm that stops

  • No golems: check that all 3 villagers sleep at night, that each one sees the zombie through its gap only when lying in bed (a villager that sees it while standing never goes to bed) and that no golem is stuck anywhere within 16 blocks.
  • Golems outside the farm: a non-glass surface lies within 8 blocks sideways and 6 blocks vertically of a villager. Lower it or cover it with glass.
  • Zombie gone: it burned or despawned. Check the cobblestone cover and the name tag.
  • Water at the centre or lava on the floor: move the water sources to the exact corners and check that all 5 gates are open and in place.

This design does not work in Bedrock Edition, where golems spawn per village (at least 10 villagers and 20 beds).

FAQ

How many villagers do you need for an iron farm?

Three, when a zombie makes them panic. More villagers in the same pod do not speed it up, because the 30-second cooldown applies to every villager within 10 blocks of a summoning.

Do villagers need jobs to spawn iron golems?

No. In Java Edition, profession and work are not checked since 1.16. Only the bed matters: each villager must have slept within the last 20 minutes.

Does an iron farm work while I am AFK?

Yes, as long as you stay close enough for its chunks to be simulated. If you fly away, the farm and the zombie stop.

Does this iron farm work in Bedrock Edition?

No. Bedrock spawns golems per village, which needs at least 10 villagers, 20 beds and most villagers having worked during the last day.

What materials do you need?

121 × Cobblestone, 123 × Glass, 1 × Hopper, 1 × Chest, 5 × Crimson Fence Gate, 1 × Lava Bucket, 4 × Water Bucket, 4 × Cobblestone Slab, ….

Which Minecraft version is this guide for?

It was tested on Minecraft Java Edition 26.3, the latest release.

Blocks & items in this guide

21 · recipe, drops and data for each
  • Glass
  • Bed
  • Hopper
  • Slab
  • Cobblestone
  • Chest
  • Name Tag
  • Crimson Fence Gate
  • Lava Bucket
  • Water Bucket
  • Lava
  • Water
  • Cobblestone Slab
  • Iron Ingot
  • Poppy
  • Warped Fence Gate
  • White Bed
  • Minecart
  • Rail
  • Boat
  • Anvil

Mobs in this guide

3 · spawning, drops and data for each