How to Make an XP / Mob Farm in Minecraft — Complete Guide (2026)

Learn how to make an XP and mob farm in Minecraft from scratch. This complete 2026 guide covers spawner farms, darkroom towers, mob cap rules, loot drops, Java vs Bedrock differences, and step-by-step builds for every stage of the game.

Advertisement

🚨 TL;DR — Just Want the Quick Setup?

Already found a dungeon spawner and need the steps fast? Here you go:

  • Light up the spawner immediately with torches so nothing kills you while you build
  • Expand the room to 9×9 blocks with the spawner centered, 5 blocks tall
  • Dig trenches along two opposite walls, 1 block deep
  • Place water in the two far corners — it flows and pushes mobs to a center hole
  • Dig a drop shaft 22 blocks straight down from that center hole
  • Build a killing chamber at the bottom — hoppers into a chest below, slabs on top of hoppers
  • Remove all torches from the spawn room — darkness triggers spawning
  • Stand within 16 blocks of the spawner to keep it active
  • Light up all caves within 128 blocks of your AFK spot — the mob cap is your #1 enemy
  • Kill mobs with one hit to get XP — don’t let the farm auto-kill them

Full explanation, troubleshooting, and advanced builds below.


Quick Fact: XP (experience points) in Minecraft power enchanting, anvil repairs, and the Mending enchantment. Without a steady XP source, late-game progression slows to a crawl. A good mob farm doesn’t just give you levels — it gives you bones, arrows, gunpowder, rotten flesh, string, and iron on autopilot while you stand in a safe room doing almost nothing.


Why You Actually Need an XP Farm

Here’s the honest truth about XP in Minecraft: casual play gives you just enough to enchant occasionally, but never enough to do it consistently. Every time you die, your levels are gone. Every time you repair a good tool at an anvil, you spend levels. Every enchantment costs levels you spent an hour earning.

A mob farm solves this permanently. Once it’s built, you have a tap you can turn on whenever you need XP — and it produces loot at the same time. It’s one of the highest-value builds in the entire game relative to the materials it costs.

The good news is that the simplest version — a dungeon spawner farm — costs almost nothing to build. No redstone, no complex mechanics, no rare materials. Just a hole in the ground and a bucket of water.


XP Mob Farm in Minecraft
XP Mob Farm in Minecraft

First, Understand How Mob Spawning Actually Works

Before building anything, you need to know the rules. Ignoring these is why most people’s farms produce nothing.

The Three Critical Numbers

DistanceWhat It Means
Under 24 blocksMobs cannot spawn — too close to the player
24 to 128 blocksThe active spawning zone — this is where your farm should be
Over 128 blocksMobs despawn instantly — your farm shuts down if you wander too far

Your AFK spot needs to be at least 24 blocks from the spawning floor, but no more than 128 blocks. For a spawner farm, staying 24–32 blocks from the spawner itself is the sweet spot.

The Spawning On Off Switch
The Spawning On Off Switch

Light Levels — The Spawning On/Off Switch

Hostile mobs need a light level of 0 to spawn in Java Edition. In Bedrock, they spawn at light level 7 or lower. This means:

  • Your spawn room must be completely dark — even a single forgotten torch shuts down spawning
  • Any dark area within 128 blocks of you competes with your farm for the mob cap
  • Lighting up surrounding caves isn’t optional — it’s the difference between a farm that trickles and one that roars

The Mob Cap — The #1 Reason Farms Fail

Minecraft limits how many hostile mobs can exist at once. In Java Edition, the global mob cap for hostile mobs is 70 per player (scaled by loaded chunks). In Bedrock, the cap is 200 globally.

When that cap is full — which happens the moment you’re surrounded by unlit caves — your farm produces zero mobs. The game is busy spawning zombies in the dark ravine 80 blocks below your feet instead of feeding your farm.

The single most common reason a mob farm doesn’t work: Unlit caves within 128 blocks filling the mob cap. Spend 20 minutes lighting every dark space in range and watch your farm transform overnight.

Spawner-Specific Rules

If you’re using a natural dungeon spawner (the best early-game option):

  • The spawner activates when you’re within 16 blocks horizontally and 10 blocks vertically
  • It keeps a maximum of 4 mobs near the spawner block at one time — get them away fast or it stalls
  • Spawners have a 20–40 second cooldown between spawn attempts
  • The spawner never runs out — it generates mobs indefinitely as long as conditions are met

Types of XP / Mob Farms — Which One Is Right for You?

Not all mob farms are the same. The right one depends on where you are in the game and what you want out of it.

Farm TypeGame StageMaterials NeededXP RateLootComplexity
Spawner FarmEarly-MidBasic (wood, water, hoppers)GoodBones, arrows, flesh, stringLow
Darkroom TowerMidLots of blocks, no spawner neededVery GoodMixed mob dropsMedium
Enderman FarmLate (End)End-specific materialsExcellentEnder pearlsHigh
Gold / Piglin FarmLate (Nether)Gold blocks, Nether portalExcellentGold, XPHigh
Raid FarmLateComplex, villager setupExceptionalEmeralds, totems, XPVery High
Furnace / Smelting FarmAnyFurnaces, fuel, hoppersPassiveSmelted resourcesLow

This guide covers the two builds every player should know: the Spawner Farm (best early-game, lowest cost) and the Darkroom Tower (no spawner required, scales forever). The late-game farms are worth a dedicated guide of their own.


spawner
spawner

Build 1: The Spawner XP Farm (Best Starter Build)

This is the farm that every Minecraft player should build first. It’s cheap, fast, reliable, and doesn’t need a single piece of redstone. The only requirement is finding a natural dungeon spawner — and once you do, you’ll wonder how you ever played without it.

Step 1: Find a Dungeon Spawner

Dungeon spawners are found in small underground rooms made of cobblestone and mossy cobblestone, usually between Y=0 and Y=50. They spawn zombies, skeletons, or spiders.

How to find one:

  • Explore caves and ravines — dungeon rooms are often accessible from natural cave systems
  • Listen for mob sounds coming through walls while mining — if you hear groaning or rattling in a specific direction but can’t see anything, there’s often a spawner room nearby
  • Look for mossy cobblestone in cave walls — it’s almost always a dungeon
  • While diamond mining at depth, dig horizontally when you hear unusual mob density nearby

Important: The moment you break into a dungeon room, immediately place torches on the spawner block itself and all over the walls. This stops mobs from spawning while you build. Do this before anything else — entering a dark dungeon room mid-build is chaotic.

Spawner types and what they drop:

Spawner TypeKey DropsXP per KillNotes
ZombieRotten flesh, iron ingots, carrots, potatoes5 XPMost common — great all-rounder
SkeletonBones, arrows, bows5 XPArrows are incredibly useful mid-game
SpiderString, spider eyes5 XPHarder to funnel — needs modified design
Cave SpiderString, spider eyes5 XPPoisonous — only attempt with good armor
BlazeBlaze rods10 XPFound in Nether fortresses — very valuable

Step 2: Prepare the Spawn Room

With torches placed and mobs stopped, it’s time to build your spawn chamber.

  1. Expand the room to exactly 9×9 blocks with the spawner block sitting in the center. Dig 4 blocks out from the spawner in every horizontal direction
  2. Set the height to 5 blocks tall — 2 blocks above the spawner, 2 blocks below the spawner level
  3. Smooth the floor — make sure the floor is flat and even, one level below the spawner
  4. Remove chests if they’re in the way, but keep any loot you find first
Water Funnel
Water Funnel

Step 3: Build the Water Funnel

This is the transport system that moves mobs from the spawn room to the drop shaft.

  1. Dig a 1-block deep trench along two opposite walls of the 9×9 room (left wall and right wall)
  2. Dig a center channel connecting the two trenches, leading to a 1×1 hole at the far end of the room
  3. Place water source blocks in the two far corners of the room — the water flows naturally toward the center hole, pushing every mob that spawns directly into the drop shaft

Water Placement Rule: Water flows a maximum of 8 blocks. For a 9×9 room, place sources at opposite corners and they’ll meet in the middle perfectly, sweeping everything into your funnel. If mobs get stuck, check that your trenches are exactly 1 block deep and the floor is level.

Step 4: Dig the Drop Shaft

From the center hole where your water funnel ends, dig straight down exactly 22 blocks. This is the magic number.

Why 22 blocks? Most mobs (zombies, skeletons, spiders) have 20 HP. A 22-block fall deals exactly 19 HP of fall damage, leaving them with 1 HP. One punch from your fist finishes them — and that final kill by the player is what triggers the XP drop. Let the farm auto-kill them and the XP disappears.

Drop HeightMob HP RemainingKill Method
22 blocks1 HP — one fist punchXP + full loot drops
23-24 blocksDead on arrivalFull loot, zero XP
20 blocks2–3 HPOne weak sword hit
Under 18 blocksMultiple hits neededSlower XP gathering
Killing Chamber
Killing Chamber

Step 5: Build the Killing Chamber

At the bottom of your 22-block drop shaft, create your collection and kill area:

  1. Dig a 2-wide, 2-tall room at the base of the shaft — enough space to stand comfortably
  2. Place two hoppers side by side on the floor directly under where mobs land, both feeding into a chest underneath
  3. Place slabs on top of the hoppers — this creates a half-block surface. Mobs land on it with their feet exposed just enough for you to hit, but they can’t move toward you or escape
  4. Add a chest behind the hoppers to collect all drops automatically
  5. Optional: Add a second chest and hopper for overflow — skeleton farms fill up fast with arrows and bones

Baby Zombie Problem: Baby zombies are smaller than regular mobs and can sometimes slip through the slab gap. If they’re escaping, place a trapdoor angled inward above your kill slot. It blocks their escape route without affecting regular-sized mobs.

Step 6: Light Control and Activation

  1. Remove every torch from inside the spawn room — every single one. The room must be at pitch black (light level 0) for spawning to happen
  2. Keep torches in your drop shaft and killing chamber so you can see what you’re doing
  3. Light up all caves within 128 blocks — this is where most people skip and then wonder why their farm is slow
  4. Stand 24–32 blocks from the spawner in your killing chamber to keep the spawner active without being close enough to block spawning

Mob Cap Fix: If mobs spawn slowly or not at all, do this: enable coordinates, note your Y level, then spend 20 minutes caving and placing torches in every dark space within 128 horizontal blocks of your AFK spot. The improvement is almost always immediate and dramatic.

Full Spawner Farm Checklist

StepTaskDone When…
1Found dungeon spawnerRoom with spinning mob cage located
2Torches on spawner immediatelyNo mobs spawning while building
3Room expanded to 9×9, 5 blocks tallSpawner floating in center of empty room
4Water trenches dug1-block channels along two walls + center channel
5Water sources placed in cornersMobs being pushed to center hole
622-block drop shaft dugVertical shaft under center hole
7Killing chamber built2×2 room at base with headroom
8Hoppers + slabs + chest installedAuto-collection working
9All torches removed from spawn roomComplete darkness inside
10Caves within 128 blocks lit upMob cap freed up for your farm
11Standing 24–32 blocks from spawnerSpawner active, mobs arriving

Build 2: The Darkroom Tower Farm (No Spawner Required)

If you haven’t found a spawner, or you want a farm that produces every mob type (for mixed drops), a darkroom tower is the answer. It requires more materials but works anywhere in the world and can be scaled up indefinitely.

How It Works

Instead of using a spawner, you build large dark platforms high in the sky. Mobs spawn naturally on the platforms (since they’re dark and have valid block surfaces), walk off the edges into water channels, get funneled to a central drop shaft, and fall to your killing floor below.

The key advantage of building high in the sky: everything below your AFK height is outside the 128-block spawn zone, so the mob cap is entirely yours. No competing cave spawns, no lighting required underground.

Basic Darkroom Tower — What You Need

MaterialQuantityPurpose
Any solid blocks (cobblestone ideal)500–1000Platforms, walls, and chute
Water buckets8–12Flow channels across platforms
Hoppers4–8Item collection at kill floor
Chests2–4Storage
Signs or trapdoors16Stop water flowing into drop shaft
Torches64Spawn-proof areas you don’t want mobs
Ladders or scaffolding80+Getting up to build height

Build Steps (Simplified)

  1. Choose your height — build the spawning platforms at least 24 blocks above your AFK spot, and as high as you can comfortably build (higher = fewer competing spawns below)
  2. Build spawning layers — flat, dark platforms at least 8×8 blocks, surrounded by half-slab lips so mobs walk off the edge without jumping back
  3. Add water channels — water along the back wall pushes mobs toward the drop edge. Place signs at the shaft entrance to stop water going down while mobs fall through
  4. Connect to a 22-block drop shaft — same as the spawner farm
  5. Build the killing floor — identical to spawner farm: hoppers, slabs, chest below
  6. Add more layers — each additional dark platform directly increases your mob spawn rate. Most efficient designs have 4–10 layers stacked vertically

Spider Problem: Spiders require a 3×3 space to spawn. If you build your platforms narrower than 3 blocks wide (like a 2-block-wide walkway), spiders can’t spawn there. This is called “spider-proofing” and it’s a useful trick if you don’t want to deal with them clogging your drop chute.


What Each Mob Farm Produces — The Loot Value Guide

Half the reason to build a mob farm isn’t even the XP — it’s the passive loot. Here’s what each farm type generates and why it matters:

MobKey DropsWhy They Matter
ZombieRotten flesh, iron ingots, carrots, potatoesIron ingots are excellent mid-game. Carrots/potatoes for farming
SkeletonBones, arrows, bowsBone meal for farming, infinite arrow supply for bows
CreeperGunpowderTNT crafting, fireworks — creepers are the only renewable gunpowder source
SpiderString, spider eyesString for bows, fishing rods, leads, wool; eyes for potions
EndermanEnder pearlsTeleportation, Eye of Ender for finding strongholds
Blaze (Nether)Blaze rodsBrewing stands, blaze powder for potions — essential for progression
Zombie PiglinGold nuggets/ingotsGold for powered rails, golden tools, bartering with Piglins

Looting III on your sword dramatically increases drop rates from every mob. One enchantment effectively turns your farm’s output into a triple-drop machine. It’s the second most impactful enchantment for farms after Mending (which keeps your sword alive on farm XP).


Java vs Bedrock — Key Differences That Affect Farm Design

This is the section most guides skip, and it causes a lot of frustration when a farm that works on one version produces nothing on the other.

MechanicJava EditionBedrock Edition
Spawn light levelLight level 0 requiredLight level 7 or lower
Mob cap (hostile)70 (scales with loaded chunks)200 global
Spawn radiusFixed 128-block sphereTied to Simulation Distance setting
AFK spot heightHigh Y-level is optimalBuild at build height limit for best rates
Baby mob behaviorFall through half slabs sometimesDifferent hitbox — test your kill slot design
Water on scaffoldingNot effective for mob transportVery effective — Bedrock-exclusive technique
Spider spawningStandard rules applySlightly different — test your design

Bedrock-Specific Tip: In Bedrock Edition, your Simulation Distance setting directly controls how large your spawn zone is. A Simulation Distance of 4 chunks gives you a ~44-block radius. Set it to 6 or higher (and keep it there) for mob farms to function correctly. This setting matters more on Bedrock than any single design choice.


Common Mob Farm Mistakes and How to Fix Them

ProblemAlmost Certainly Caused ByFix
Mobs not spawning at allPeaceful difficulty, or torches left in spawn roomCheck difficulty settings; remove every torch from spawn chamber
Very slow spawn rateMob cap filled by unlit caves nearbyLight up all dark areas within 128 blocks of your AFK spot
Mobs spawning but not fallingWater funnel not reaching the drop holeCheck water flow — source blocks in wrong corners, or trenches wrong depth
Mobs dying before you can kill themDrop shaft too long (more than 22–23 blocks)Reduce drop height by raising the killing chamber floor
No XP droppingMobs dying automatically, not from player hitsThis is intentional — you must deliver the final blow. Stand at kill slot and hit them
Baby zombies escapingSlab gap slightly too large for their hitboxAdd a trapdoor angled inward above the kill slot
Farm works then suddenly stopsYou wandered more than 128 blocks awayAlways AFK within 128 blocks of the spawner/spawn platforms
Spiders clogging the drop chuteSpider bodies are wider than 1 blockExpand drop chute to 2×2 for spider farms, or spider-proof platforms with narrow widths
Cave spiders poisoning youTheir attack bypasses armorAlways bring milk (removes poison) to a cave spider farm
Items not collecting in chestHoppers pointed wrong directionHoppers must point toward the chest, not away from it

How to Get Maximum XP From Your Farm

Building the farm is one thing. Getting the most out of it is another. Here are the habits that separate efficient XP farmers from casual ones:

  • Use a sword with Looting III — increases drops from every mob. More loot = more value per session
  • Use a sword with Mending — your sword repairs itself using the XP you’re generating. You’ll never need to craft another one
  • Use Sweeping Edge (Java only) — hits all nearby mobs in your kill chamber at once instead of one at a time, dramatically speeding up XP collection
  • Don’t use a strong sword — you want mobs to stay at 1 HP so one punch finishes them. A maxed diamond sword one-shots most mobs and wastes the 1-HP mechanic. Use your fist or a weak tool for best XP-per-second
  • AFK strategically — let mobs stack up in the kill chamber while you’re away, then come back and clear them all at once in a burst of XP
  • Sort your drops — once your farm matures, add a hopper-based item sorter to separate bones, arrows, flesh, and string into separate chests. Keeps inventory management sane

XP Farm Uses — What to Spend Your Levels On

Once the farm is running, you’ll have more XP than you know what to do with. Here’s the priority order that makes your XP go furthest:

PriorityWhat to Do With XPWhy
1Enchanting Table — Level 30 enchantsProtection IV, Fortune III, Efficiency V on your core tools
2Mending on your best toolsInfinite durability — your diamond pickaxe never breaks again
3Anvil repairsFix tools without losing enchantments
4Fortune III on diamond pickaxeDirectly multiplies diamond output — pairs perfectly with our diamond hunting guide
5Anvil name tagsName a mob to prevent despawning (useful for special farms)
6Librarian villager tradingBuy specific enchanted books — far more reliable than RNG

The XP Loop: Your mob farm generates XP → use XP to get Mending on tools → Mending uses farm XP to repair tools → tools last forever → back to farming. Once you’re in this loop, the resource economy of Minecraft becomes trivially easy.


FAQs

What is the easiest XP farm to build in Minecraft?

A dungeon spawner farm is the easiest by a wide margin. Find a naturally generated dungeon (cobblestone room with a spinning mob cage), expand it to 9×9, add water in the corners, dig a 22-block drop shaft, build a killing chamber at the bottom, and remove the torches. No redstone, no complex mechanics, minimal materials. Done.

Why is my mob farm not spawning any mobs?

Almost always one of three things: the spawn room still has torches in it (check every corner), you’re standing more than 128 blocks from the farm so mobs despawn instantly, or nearby unlit caves are filling the mob cap. Light up caves within 128 blocks and the spawn rate usually fixes itself immediately.

Do I need to be near my farm for it to work?

Yes — you must stay within 128 blocks of the spawning area or mobs despawn instantly. For a spawner farm, stay within 16 blocks of the spawner for it to activate. Your AFK spot in the killing chamber is usually the perfect distance.

Does the farm work while I’m AFK?

Yes — as long as you stay within range, mobs will stack up in your kill chamber while you’re idle. Come back, clear the chamber in a burst, and collect all the XP and loot at once.

What’s better — a spawner farm or a darkroom tower?

Spawner farms are better early-game because they cost almost nothing. Darkroom towers are better long-term because they produce more mob types and can be scaled indefinitely. Build a spawner farm first, then a darkroom tower once you have materials.

How do I stop mobs from auto-killing and losing XP?

Your drop shaft must be exactly 22 blocks, not more. 23+ blocks kills most mobs on impact and you get zero XP. Keep the shaft at 22 blocks and mobs arrive at 1 HP — you finish them and collect XP.

Does a mob farm work in Bedrock Edition?

Yes, with modifications. Set your Simulation Distance to 6 or higher. Bedrock mobs need light level 7 or lower to spawn (not 0 like Java). Water on scaffolding is very effective for Bedrock mob transport. Build platforms at the world height limit for best results.

Can I move a spawner block?

Only with a Silk Touch pickaxe. Without Silk Touch, breaking a spawner destroys it permanently — you get experience but lose the spawner forever. If you find a great spawner in a bad location, either build the farm around it where it is, or use Silk Touch to relocate it.

What happens if I use a strong sword at my farm?

You one-shot mobs before they can drop meaningful XP. Each mob killed by the player gives XP, but finishing a mob at 1 HP gives the same XP as finishing one at full HP. Use a weaker weapon, your fist, or let mobs stack up and use Sweeping Edge (Java) to clear groups for burst XP.

Now That You Have Infinite XP — What’s Next?

XP changes everything in Minecraft. Once enchanting becomes effortless, your whole progression accelerates. Here’s where to channel all of it:


Final Thoughts

A mob farm is the pivot point of Minecraft progression. Before you have one, resources feel scarce, enchanting feels expensive, and every death stings. After you have one, the game opens up in a way that hard-to-describe until you experience it.

Build the spawner farm first — it’s cheap, it’s fast, and it works. Find a dungeon, spend 30 minutes on the design, clear the caves nearby, and you’ll have reliable XP for the rest of that world.

Then, when you’re ready, build the darkroom tower above your base. Scale it up. Add Mending to everything. Enchant freely. Repair without hesitation.

The mobs that used to kill you at night are now working for you around the clock.

That’s the real survival flex.

2 thoughts on “How to Make an XP / Mob Farm in Minecraft — Complete Guide (2026)”

  1. I’m very happy to discover this website. I want to to thank
    you for ones time due to this fantastic read!! I definitely liked every little bit of it and i also have you book
    marked to look at new stuff on your web site.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top