A creeper farm is the fastest reliable way to stockpile gunpowder in vanilla Minecraft: you need it for elytra rockets, firework stars, TNT, and fire charges. It also doubles as a strong XP farm when you land the finishing blow yourself. The core mechanic is simpler than a mob farm tuned for multiple mob types, because one design tweak - the spawn-space height - biases spawns heavily toward creepers specifically.
This is a complete guide to the mechanic and a minimal working design, version-pinned to Minecraft 26.2 Java Edition.
Tested on: Minecraft 26.2, Java Edition, vanilla survival. All mechanics described are documented behavior. Throughput depends on your farm size and AFK placement; measure your own setup after building (see the rates section and the Mob Spawner Optimizer).
How creeper spawning works
Creepers are hostile mobs that follow the standard overworld hostile-mob spawning rules:
- Light level 0 is required on the block surface where the mob spawns. Any light source in range - torches, glowstone, daylight seeping through gaps - can prevent spawning on that block.
- Opaque full block beneath the spawn point. Slabs, glass, and non-full blocks don't count as valid spawn surfaces.
- Two blocks of air above the spawn surface. This is the central design lever for a creeper farm, explained below.
- Within spawning range of a player: beyond 24 blocks (the no-spawn radius) and within 128 blocks (the despawn sphere).
The hostile mob cap is shared across all hostile mob types. In 26.2, roughly 70 hostile mobs can exist in the spawn-eligible area around you at once. Once that cap is full, the game stops spawning new mobs regardless of how many valid surfaces exist. A farm's job is to make sure those 70 slots fill with creepers and cycle out as fast as possible.
The two-block spawn height: the bias trick
Creepers are 1.7 blocks tall. They fit comfortably in a two-block-high space. Most other overworld hostile mobs are taller:
- Zombies and skeletons: 1.95 blocks (need at least 2 blocks clear, but tight fits affect pathing)
- Witches and endermen: taller still
- Spiders: 0.9 blocks tall, fit in one-block gaps
By limiting your spawning-room ceiling to exactly two blocks of headroom, you allow creepers to spawn but make the space uncomfortable for tall mobs and irrelevant for spiders (who would spawn but escape through gaps if any exist). This alone gives a strong creeper bias without any active filtering.
Two-block headroom does not make the farm creeper-only. Zombies and skeletons still spawn in a two-block space, they just cannot fully stand upright. You will still get a mix. The cat filter (below) removes the rest of the bias problem by relocating them before the kill chamber, not by blocking spawns.
The cat problem: keep cats out
Cats (and ocelots) scare creepers. When a creeper detects a cat within 6 blocks, it enters a flee state and runs away from the cat. This sounds useful - but in a farm context it is a pure negative: creepers flee into walls, jam up the funnels, or refuse to fall into the drop chamber. A single cat near a spawning platform can reduce output significantly by scattering the creepers that do spawn.
The rule for a creeper farm: never place a cat near the spawning platforms or the kill funnel. Keep your AFK spot free of cats as well. If your base has cats roaming nearby and your farm is within range, that is enough to disrupt it.
Some older farm guides describe placing cats in the spawning room to "filter" creepers by driving other mobs away. This is backwards: cats scare creepers too, not just skeletons and zombies. Do not put cats in or near the creeper farm at any stage.
What creepers drop
Gunpowder: 0 to 2 per kill, plus one additional drop per Looting enchantment level (up to 5 with Looting III). Gunpowder drops on any death - fall damage, lava, player kill. You do not need a player kill to collect gunpowder; this is different from gold farms.
XP orbs: only drop on a player kill. If XP matters, land the finishing blow yourself.
Music discs: creepers drop a random music disc when killed by a skeleton's arrow. This is the only way to obtain most discs in vanilla survival. It is not a natural output of a creeper farm (you would need to set up a skeleton archer and route creepers past it), but worth knowing if disc collection is a goal.
Charged creepers - lightning-struck creepers that cause special mob-head drops on kill - only come from lightning strikes and cannot be farmed passively. Mention them if players ask about mob heads; ignore them for gunpowder purposes.
The minimal design
A working 26.2 creeper farm has four parts.
1. The spawning room
A roofed, fully dark chamber with a solid-block floor. Dimensions:
- Width and depth: as large as practical. Each extra 16x16 area of spawnable floor directly increases how fast the cap fills. Many players use 16x16 (one chunk footprint) as a starting point.
- Ceiling height: exactly two blocks above the floor. Place the ceiling one block above the spawn surface, so creepers can stand but cannot jump. A single slab ceiling or a trapdoor ceiling both work; the spawn surface itself must be a full block.
- Light: zero. Seal every gap. Use a spectator mode view or F3+L (if a light-level overlay mod is installed) to verify. A single one-block gap in the wall can bring enough skylight or ambient light to prevent spawning on nearby blocks.
Build the room out of any opaque block: cobblestone, stone, netherrack. Avoid glass or slabs for the floor.
2. The funnel
Water streams push spawned creepers (and the occasional zombie or skeleton) toward a central drop point. A standard layout:
- Four water sources in the corners of the room, flowing inward
- A 2x2 or 3x3 collection hole in the centre of the floor
Creepers path with water current; you do not need to lure them. The water also prevents creepers from detonating (they will not prime while in water, but the fuse can still activate if they climb out - keep the funnel tidy).
3. The fall chamber
A vertical shaft, ideally 22 blocks deep from the collection hole to the kill floor. This is the critical number: creepers have 20 HP (10 hearts). Fall damage is calculated as (fall distance - 3) in half-hearts, so a 22-block fall deals roughly 19 HP of damage, leaving creepers at about 1 HP - one-hittable with any weapon.
Adjust by one or two blocks depending on your sword damage and whether Feather Falling or Thorns on the creepers' path matters. The goal is to arrive at the kill floor alive and at 1 HP, not dead from the fall.
If you want gunpowder only and do not care about XP, you can increase the fall height until creepers die on impact. They still drop gunpowder from a fall death. This turns the farm fully AFK with no player input needed, at the cost of all XP.
4. The kill chamber and AFK spot
Creepers land in a one-block-wide trench below the drop. You stand at the end of the trench, separated by a half-block gap or trapdoor lip, and hit them with a sword. Because they arrive at near-death, one hit per creeper is all it takes.
Do not sprint-attack creepers. The explosion timer starts when a creeper detects you within 3 blocks. At the standard kill-chamber distance of 2 blocks through a gap, they will begin priming. Clicking fast (not sprinting to knock back) and killing before the 1.5-second fuse completes is standard practice; with practice the timing becomes automatic. A shield in your offhand blocks the blast if you mistime.
Hoppers under the trench collect gunpowder into chests. If other mob types drop through the farm (zombies, skeletons), you may get rotten flesh, bones, and arrows mixed in - sort downstream with a simple item sorter if you want clean storage.
AFK placement and the spawn sphere
Stand beyond 24 blocks from the nearest spawning platform block and within 128 blocks of the farthest platform block. The 24-block radius is a hard no-spawn zone; standing inside it prevents spawning on any block within that distance. The 128-block radius is the despawn sphere; mobs beyond it vanish immediately.
For a 16x16 room, an AFK platform roughly 64 blocks directly below the floor and centered on the room satisfies both constraints for all four corners. This is also a common approach to avoid getting stunned by creeper fuses from the kill trench.
Visualize your AFK sphere against the farm geometry in the Mob Spawner Optimizer before committing to the location; it shows exactly which blocks are spawn-eligible and which are in the dead zone.
Rates: what drives output
There is no single "X gunpowder per hour" number that applies to all farms. What determines your rate:
- Spawnable floor area within range. More dark-floor blocks inside the 24-128 sphere means the mob cap fills faster with farm mobs. Doubling the floor roughly doubles rate (up to the cap).
- Competing spawns. Hostile mobs spawning on cave floors and surface dark spots outside your farm steal cap slots. Light up or seal the surrounding area, especially below the farm if it is elevated.
- Kill throughput. If the kill trench backs up, the drop chamber fills, creepers stop falling, and new spawns queue at the top of the shaft with nowhere to go. Keep kills fast.
- Mob switch. For maximum output, a mob switch suppresses hostile spawns everywhere in the dimension except your farm. This effectively hands the entire 70-mob cap to your farm. The output difference is significant; measure before and after.
Build the farm, AFK for a timed ten minutes with a timer running, and multiply the gunpowder collected. That number is accurate for your specific farm; numbers from YouTube videos are for their specific build size, world conditions, and AFK placement.
Chunk loading for passive operation
The farm only runs while you are within simulation distance. Step away and spawning pauses. For a farm meant to run while you do other things nearby:
/forceload add <farm-x> <farm-z>
Add every chunk the spawning room occupies, then confirm with /forceload query. See the chunk borders and forceload guide for the full explanation of why you need ENTITY_TICKING level (what /forceload gives you) rather than a lower ticket level.
Even with force-loaded chunks, mob spawning requires a player in the dimension. You can step away in the Overworld and the farm keeps ticking, but the farm does not run while the server is empty or while everyone is in a different dimension.
For a deeper look at how simulation distance affects your AFK radius, see render vs simulation distance explained.
Common mistakes
Farm produces almost nothing. Usually a light-leak problem. One unblocked gap on a wall face where skylight or a torch outside reaches through is enough to raise the light level on several floor blocks. Seal the room completely, then re-check with a light-level overlay.
Mostly zombies and skeletons, few creepers. Your ceiling is higher than two blocks somewhere. Check the room height carefully - if any section has three blocks of headroom, tall mobs spawn freely there and dilute the creeper bias.
Creepers keep running into walls and not reaching the funnel. A cat or ocelot is near the farm. Locate and remove it. If the farm is in a jungle biome, ocelots may spawn naturally close by; elevate the farm above ocelot spawn range or build elsewhere.
Creepers prime at the kill spot before dying. You are standing too close or spending too long per kill. Keep your position at 2 blocks distance through the gap, attack immediately on arrival, and hold a shield. If the fuse completes, the shield blocks most damage at close range.
Farm stops working after leaving the area. The chunks are not force-loaded, or you left the dimension. Force-load the farm chunks and verify your AFK approach.
No XP from the farm. XP only drops on a player kill. If the fall kills the creepers instead of bringing them to near-death, increase the fall height calibration (lower the kill floor by one block at a time until they survive).
Scaling up
A single 16x16 room is a solid starting point. To increase output:
- Extend the room area. A 32x32 dark floor quadruples the spawnable surface. Keep the ceiling exactly two blocks throughout.
- Stack rooms vertically. Multiple two-block-tall rooms stacked with a one-block gap between them (three blocks per layer) multiply spawnable area inside a small horizontal footprint. All rooms funnel to the same central shaft.
- Light the world around the farm. Caves below, surface dark patches nearby - every one steals a mob-cap slot. Lighting the surrounding terrain can increase farm output without touching the farm itself.
For context on how a creeper farm fits into a broader resource-gathering setup, the gold farm guide covers the same cap and spawning principles applied to zombified piglins in the Nether.
This guide is part of our Minecraft farm guides collection for 26.2.
Sources & further reading:






