How to Build a Mob Spawner XP Farm in Minecraft
Step-by-step guide to converting any dungeon mob spawner into an XP farm in Minecraft 1.21+. Covers water channels, drop heights, and spawner activation range.
Mob spawners found in dungeons (zombie, skeleton, spider) and other structures (blaze spawners in fortresses, magma cube spawners in bastions) are powerful resources for XP farming. Unlike natural mob spawning, spawners produce mobs at a consistent rate regardless of the mob cap, making them extremely efficient. This guide shows you how to convert any dungeon spawner into a functional XP farm.
Why use a mob spawner for XP?
- Spawners ignore the hostile mob cap, producing mobs at a fixed rate.
- Concentrated spawning means all mobs appear in one spot, easy to funnel.
- Simple redstone-free builds that work from early game onward.
- Zombie and skeleton spawners also produce useful drops (iron, armor, bows, arrows).
How mob spawners work
A mob spawner activates when a player is within 16 blocks. Once active, it attempts to spawn mobs every 10 to 39.95 seconds (random interval). Each attempt spawns 1 to 4 mobs in a 9x3x9 area centered on the spawner. Mobs spawn on solid blocks with sufficient air space above them (2 blocks for most mobs, 1 for spiders).
The spawner deactivates if no player is within 16 blocks. It also stops spawning if 6 or more mobs of the same type exist within a 9x9x9 area around the spawner. This means you must move mobs away from the spawner quickly to maintain spawn rates.
Materials list
| Item | Quantity | Notes |
|---|---|---|
| Water buckets | 4 to 8 | Push mobs to collection point |
| Signs | 8+ | Stop water flow at edges |
| Building blocks | ~100 | Channel construction |
| Hoppers | 4+ | Item collection |
| Chests | 2+ | Storage |
| Pickaxe | 1 | For modifying the dungeon room |
| Torches | 4+ | Temporarily stop spawns during construction |
| Sword (Looting III ideal) | 1 | For killing mobs |
| Slabs | varies | Prevent unwanted spawns on surfaces |
Step-by-step build instructions
Step 1: Find and secure the spawner
Dungeon spawners appear in small cobblestone/mossy cobblestone rooms underground. Place torches on all sides of the spawner to stop mob spawning while you build. Light the entire room (light level 7+ in the spawning area) so nothing spawns during construction. Do NOT break the spawner. Spawners cannot be obtained or moved.
Step 2: Expand the room
Widen the dungeon room to 9x9 blocks centered on the spawner. The spawner spawns mobs in a 9x3x9 area, so this size captures all possible spawn positions. Clear 3 blocks of height above the spawner's level.
Step 3: Dig the water channels
Dig trenches along the edges of the room, all sloping toward one corner or one wall. Place water sources at the far ends so water flows toward the collection point. The water pushes mobs out of the spawner's 9x9x9 detection range, preventing the 6-mob cap from stopping spawns.
Top-down view (water flow pattern):
[WATER]---->---->---->|
[WATER]---->---->---->|
[WATER]---->---->---->|---> [DROP SHAFT]
[WATER]---->---->---->|
[SPAWNER in center]
All water flows toward the drop shaft on the right.
Step 4: Build the drop shaft
At the collection point, dig a vertical shaft. The depth depends on your goal:
- 22 blocks: Leaves most mobs at half a heart for a one-hit kill (full XP).
- 23 blocks: Kills zombies and skeletons outright (no XP, but fully AFK).
- For spiders: Spiders can climb walls. Line the shaft with glass or place water at intervals to knock them down.
Step 5: Build the kill chamber
At the bottom of the drop shaft, create a 1-block-tall gap (use trapdoors or slabs) where you can see and hit the mobs' feet. The mobs accumulate at the bottom with minimal health. Swing a Looting III sword to kill them and collect XP.
Side view:
[SPAWNER ROOM with water]
|
[DROP SHAFT - 22 blocks]
|
[MOBS land here, 1 HP]
[TRAPDOOR gap - hit feet]
[PLAYER stands here]
[HOPPER] > [CHEST] (collects drops)
Step 6: Remove the torches
Remove all torches from the spawner room. The spawner activates when you stand within 16 blocks (which includes standing in the kill chamber if it is close enough). Mobs begin spawning, get pushed by water, fall down the shaft, and land at your feet.
Spawner type considerations
| Spawner type | Drops | XP per kill | Special notes |
|---|---|---|---|
| Zombie | Rotten flesh, iron, carrots, potatoes, armor | 5 | Baby zombies are faster, may not die from fall |
| Skeleton | Bones, arrows, bows, armor | 5 | Shoot arrows at you in kill chamber, use wall gap |
| Spider | String, spider eyes | 5 | Climb walls, need glass-lined shaft |
| Cave Spider | String, spider eyes | 5 | Poison damage, 1 block tall, smaller shaft needed |
| Blaze | Blaze rods | 10 | Fly, immune to fire, use closed chamber |
AFK positioning
You must stay within 16 blocks of the spawner for it to remain active. Calculate your AFK position carefully. If the kill chamber is too far below the spawner, the spawner deactivates. The ideal setup puts your standing position 15 blocks from the spawner (vertically + horizontally combined). Use the Pythagorean theorem: sqrt(horizontal^2 + vertical^2) must be less than or equal to 16.
Common mistakes
- Breaking the spawner. Once broken, a spawner is gone permanently. It cannot be picked up with Silk Touch. Protect it at all costs.
- Standing too far away. If you are more than 16 blocks from the spawner, it deactivates. The kill chamber must be close enough to keep the spawner active.
- Not removing mobs from the 9x9 range. If 6+ mobs sit near the spawner, it stops producing. Water must push them out quickly.
- Spider spawner shaft too narrow. Spiders are 2 blocks wide but can climb any surface. Use glass walls (spiders cannot climb glass) and make the shaft at least 2 blocks wide.
- No collection system. Drops from mobs accumulate on the ground and despawn after 5 minutes. Always place hoppers at the kill zone.
Frequently asked questions
Which spawner type is best for XP?
Skeleton spawners are the best overall. They produce arrows and bows (useful early game), bones for bone meal, and consistent XP. Zombie spawners are slightly less useful because rotten flesh has limited value. Blaze spawners give 10 XP per kill (double other types) but require more complex builds.
Can I move a spawner with pistons?
No. Spawners are immovable by pistons. They cannot be pushed, pulled, or picked up. Build your farm around the spawner's location.
How many mobs per minute does a spawner produce?
A single spawner produces roughly 4 to 8 mobs per minute when a player is within range and the area is clear. This translates to 20 to 40 XP per minute (for zombie/skeleton spawners), or roughly 3 to 5 levels per minute from level 0.
Can I combine two spawners into one farm?
If two spawners are within 16 blocks of each other (rare but possible), you can build a farm that activates both simultaneously. This doubles your mob output and XP rate.
Do spawners work on Peaceful difficulty?
No. On Peaceful, no hostile mobs spawn, including from spawners. Switch to Easy, Normal, or Hard to activate spawner farms.
Need a server that handles all this? Astroworld Hosting, NVMe SSDs, Pterodactyl panel, DDoS protection on every plan.