How to build an XP farm from a spawner in Minecraft
Turn a zombie or skeleton dungeon spawner into an XP farm: water sweeps the mobs into a 5 block drop, and you finish them through a slab, tested in Java 26.3.

On this page · 7
What you need
- Water Bucket ×10
- Oak Sign ×1
- Hopper ×1
- Chest ×1
- Stone Brick Slab ×1
- Torch ×4
- Planks (any wood)= 5 logs, any wood ×19
- Water Bucket ×10
- Iron Ingot ×5
- Coal ×1
- Stone ×1
Gathered 0 / 6Raw = everything broken down with our recipes
A dungeon spawner makes up to 4 mobs every 10 to 40 seconds while you stand near it. This farm brings them all to one spot where you kill them with your sword and collect their drops. We built it around a spawner on a Java Edition 26.3 server and checked that every zombie placed in the room reaches the hopper.
XP farm on a spawner
- Size (W × H × D)
- 13 × 11 × 11
- Blocks placed
- 339
- Block types
- 8
- Layers
- 11
- Difficulty
- Medium
- Main material
- Stone
- All blocks since
- 1.12.2
- Survival
- No: Monster Spawner
- ID
Layer by layer
Seen from above, north at the top. The layer below shows faded.

Stone Bricks× 3

Stone Bricks× 6
Hopper× 1
Chest× 1

Stone Bricks× 6
Stone Brick Slab× 1

Stone Bricks× 5

Stone Bricks× 4

Stone Bricks× 4

Cobblestone× 45
Stone Bricks× 4

Cobblestone× 112
Water Bucket× 2
Oak Sign× 1

Cobblestone× 47
Water Bucket× 8
Monster Spawner× 1

Cobblestone× 48

Cobblestone× 40
- 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
- Blue arrow: way the part faces (piston pushes, observer watches, hopper empties, repeater and comparator send the signal); dot: up, cross: down
Materials
339 items · 21 inventory slots · 1 Shulker box
346 items · 19 inventory slots · 1 Shulker box
// Estimated from the crafting recipes, rounded up. Glass, stone and smooth blocks are traced back to what you smelt.
Get it in your world
/place template blockaria:xp_farm_spawner ~ ~ ~Places the build with its north-west bottom corner at your position. Needs cheats (permission level 2).
/place template blockaria:xp_farm_spawner ~ ~ ~ clockwise_90Structure 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.
Orientation used below: the water flows from the west wall to the east wall, where the trench and the drop shaft are. Turn the plan to fit your dungeon, it works in any direction.
Find a zombie or skeleton spawner
Dungeons are small Cobblestone and Mossy Cobblestone rooms underground with a Monster Spawner in the middle. Half of them spawn zombies, a quarter skeletons, a quarter spiders. Use a zombie or skeleton one: spiders do not fit this build.
While you work, place a Torch next to the spawner. In the Overworld a monster spawner only spawns mobs where the block light is 0, so one torch stops it.
Clear the room to 9 by 9
- Dig the room out to 9 by 9 blocks inside, with the spawner in the center, sitting on the floor, and 3 blocks of air above the floor (layers 8 to 11 of the plan). Mobs spawn up to 4 blocks away from the spawner, so this covers the whole spawn area.
- Build a wall 2 blocks high across the room, through the spawner, from the west wall, stopping 1 block short of the east wall, where the trench goes. Mobs cannot spawn on top of it, and each half of the room now gets its own clean flow of water.
Dig the trench and place the sign
- Along the east wall, dig the floor 1 block deeper over the whole 9 blocks: that is the trench (layer 8).
- In the middle of the trench, dig the floor out completely: this is the top of the drop shaft.
- Place an Oak Sign on the east wall, inside that middle block (layer 8). Water cannot flow into a sign, but mobs fall through it. Use a wall sign: a standing sign over the hole has nothing to stand on and breaks.
- Pour one Water Bucket at each end of the trench. The water flows toward the sign and stops against it.
Fill the room with water
Pour a Water Bucket on every floor block along the west wall, 8 in total (layer 9). Water flows 7 blocks, so it covers the room up to the edge of the trench and pushes every mob into it. The trench water then carries them into the sign block, and they drop.
Build the drop shaft and the kill spot
- Dig the shaft straight down 5 blocks under the sign, 1 by 1, walled on all sides (layers 3 to 7).
- At the bottom, place a Hopper pointing into a Chest next to it (layer 2). The mobs land on the hopper, which picks up their drops.
- On the side where you will stand, put a Stone Brick Slab in the top half of the block at the mobs' feet (layer 3), and a full block under it. Leave the 1 by 2 space next to the slab open for you, with a block above your head.
The fall costs the mobs 2 of their 20 health. Babies cannot squeeze through the half block gap, and a mob only reaches you if its attack box touches you: standing 2 blocks from the shaft, you are out of reach.
Turn it on and farm
- Remove every torch from the room, then go to the kill spot. You must stay within 16 blocks of the spawner for it to work: the kill spot is about 9 blocks away.
- Hit the mobs' feet through the gap. A Diamond Sword with Smite V deals 7 + 12.5 = 19.5 damage to undead mobs, enough to kill an 18 health zombie or skeleton in one hit; with Sharpness V (10 damage) it takes two. Mobs wearing armor can take one more. Our best sword enchantments guide covers the rest of the sword.
- Kill them before they pile up: the spawner stops while 6 of its mobs are within 4 blocks of it.
An adult zombie gives 5 experience points, plus 1 to 3 for each piece of gear it wears or holds, and a baby zombie 12. Going from level 0 to 30 takes 1,395 points, about 280 adult zombies: that is what the level 30 enchanting setup asks for.
Java and Bedrock
All spawner rules and numbers here come from Java Edition 26.3, where we tested the build. Spawners and mob spawning follow different rules on Bedrock Edition, so the layout has not been checked there.
FAQ
Why does my spawner not spawn anything?
In the Overworld a monster spawner only spawns where the block light is 0, so remove every torch from the room. You also need to stay within 16 blocks of it, and it stops while 6 of its mobs are still close to it.
Does this work with a spider spawner?
No. Spiders are wider than 1 block, so they get stuck in the shaft, and cave spiders slip through the slab gap. Use a zombie or skeleton spawner.
How much XP does a zombie spawner give?
An adult zombie gives 5 experience points, plus 1 to 3 for each piece of gear it wears or holds; a baby zombie gives 12. Level 30 takes 1,395 points from level 0, so about 280 adult zombies.
Why do the mobs not die from the fall?
On purpose: they fall 5 blocks, which costs them 2 health. The game only drops experience when a player kills the mob, so you deal the last hit.
Blocks & items in this guide
11 · recipe, drops and data for each
Hopper
Torch
Water Bucket
Oak Sign
Chest
Stone Brick Slab
Water
Monster Spawner
Cobblestone
Mossy Cobblestone
Diamond Sword