A gold farm is one of the highest-value passive builds in Minecraft: a steady supply of gold nuggets and ingots, a strong XP source for enchanting, and a pile of rotten flesh as a side effect. It works by farming zombified piglins, which spawn abundantly in the Nether and drop gold when killed.
The single most important thing to understand before you build, and the part most guides gloss over: gold ingots only drop when a player lands the killing blow. Fall damage and lava give you nuggets and rotten flesh, but not the ingots. The whole design exists to bring piglins to near-death automatically, then let you one-hit them.
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. Mechanics described are documented behavior; rates depend entirely on your platform size and AFK placement, so measure your own setup (see the rates section).
How zombified piglin spawning works
Zombified piglins spawn naturally in the Nether Wastes and Crimson Forest biomes. Their spawning differs from overworld hostile mobs in two ways that matter for farm design:
- Light level is irrelevant. Nether mobs spawn at any light level. You do not need a dark room. This is why a gold farm can be a wide, open, brightly lit platform.
- They spawn in groups. The game attempts to place a small pack (up to four) at once on any valid surface.
A valid spawn surface is the top of a full solid block with two blocks of air above it, inside a loaded chunk within spawning range of a player. That two-block height is the key lever, covered below.
The hostile mob cap applies: the game stops spawning once roughly 70 hostile mobs exist within the spawn-eligible area around you. A gold farm's job is to make sure those 70 spawns happen on your platforms and nowhere else.
Why the nether roof is the best location
The flat bedrock layer above the Nether (above Y 128) is the premier gold-farm location for three reasons:
- It is a perfectly flat, empty surface you can build on without terrain in the way.
- The biome there is still Nether Wastes / Crimson Forest, so zombified piglins spawn normally.
- There is nothing else competing for spawns once you light or slab the surrounding area.
The catch is other Nether Wastes mobs can also spawn on your platforms: ghasts and magma cubes. The fix is the two-block spawn height. Ghasts need a 4x4x5 space and magma cubes (large) need more than two blocks, so a two-block-tall spawn space biases spawns almost entirely to zombified piglins, which fit.
Reaching the nether roof is considered a gray area. It is achievable in vanilla survival, but many multiplayer servers disable or patch roof access (and some consider it against the rules). If you play on a server, check first. The same farm works one layer down on a normal Nether Wastes platform; it is just less convenient to make spawn-proof.
The rare-drop rule (the part that matters)
Zombified piglins have two drop tiers:
- Common drops: rotten flesh (0-1) and gold nuggets (0-1). These drop from any death, including fall damage and lava.
- Rare / equipment drops: gold ingots, and occasionally golden swords or armor. These only drop when the mob is killed by a player (or a tamed wolf) within the last few seconds of taking player damage.
This is the entire reason gold farms funnel piglins into a kill chamber instead of just drowning them in lava. To maximize gold ingots, you damage piglins to near-death automatically (fall damage), then deliver the final hit yourself.
Looting increases both common and rare drops, so a Looting III sword is standard kit for AFK gold farming.
Zombified piglins have 20 HP (10 hearts). Fall damage deals no damage for the first 3 blocks, then 1 per block after. A drop of about 22 blocks brings most piglins low enough to die to a single unenchanted hit, without killing them outright. Tune by a block or two for your weapon.
The minimal design
A working nether-roof gold farm has five parts.
1. Spawning platforms
Flat, full-block platforms (netherrack, cobblestone, anything solid) with exactly two blocks of headroom above each. Stacking several platforms vertically multiplies the spawnable area inside the mob cap. The more eligible surface you have within range, the faster the cap fills with piglins.
Leave no other spawnable surface in range. Slab, light, or otherwise spawn-proof the bedrock around and below your platforms so every spawn lands where you want it.
2. The funnel
Water streams (or open trapdoor / soul-sand bubble methods) push spawned piglins off the platforms toward a central drop. Piglins path with the current; a standard layout slopes water from the platform edges to a single hole.
3. The fall chamber
A vertical drop of about 22 blocks from the collection point to the kill floor. This is the automatic "bring them to near-death" stage. Too short and you do too little damage (slow kills); too long and you kill them with fall damage, losing the ingot drops.
4. The kill chamber and AFK spot
Piglins land in a 1-block-wide trench in front of you, behind a half-block gap or trapdoor so they cannot reach you. You stand at the kill spot with a Looting sword and attack. Because piglins arrive at low health, one hit each is enough.
Hoppers under the trench feed the drops into chests.
Hitting one zombified piglin angers nearby ones (group aggro). In a contained farm this is harmless: the angered piglins path toward you but are trapped in the trench and die. Just make sure they genuinely cannot reach your position, including via the drop hole.
5. AFK placement
You must stand outside the 24-block no-spawn radius but within the 128-block despawn sphere of your platforms, and inside simulation distance. Sit too close and spawning pauses; too far and mobs despawn or stop ticking.
The exact geometry is worth checking visually rather than guessing. The Mob Spawner Optimizer lets you place your AFK point and platforms and see which blocks are actually spawn-eligible, which is the difference between a farm that trickles and one that runs at the cap.
Rates: what actually drives output
Honest answer: gold-farm output varies so much with build size and AFK placement that a single "X gold per hour" number is meaningless. What determines your rate:
- Spawnable surface area in range. More eligible platform inside the 24-128 sphere means the mob cap refills with piglins faster. This is the biggest lever.
- No competing spawns. Every torch-able or slab-able surface left in range steals spawns. Spawn-proofing everything else can multiply a farm's output.
- Kill throughput. If piglins pile up faster than you kill them, the cap fills and spawning stalls. A fall height that leaves them one-hittable keeps kills fast.
- Looting level. Looting III meaningfully raises nuggets, ingots, and rare drops per kill.
Build it, AFK for a measured ten minutes with a timer, and multiply. That number is real for your farm; a number copied from a video is not.
A correctly spawn-proofed multi-platform roof farm is also one of the better XP farms in the game, because every kill is a player kill. Many players build a gold farm primarily for enchanting XP, with the gold as a bonus.
Chunk loading for passive operation
Like every spawning farm, a gold farm only runs while its chunks are loaded and ticking. Walk away and it stops. For passive operation, force-load the farm's chunks:
/forceload add <farm-x> <farm-z>
Add every chunk the platforms occupy, then confirm with /forceload query. You need ENTITY_TICKING level (what /forceload provides), the same as a player standing there. See the chunk borders and forceload guide for why lower ticket levels are not enough.
Note that an unattended farm still needs a player in the dimension for mob spawning in most setups, so "passive" here means it keeps running while you do other things in the Nether, not while the server is empty.
Server performance and why it matters
A gold farm running at the mob cap means dozens of entities spawning, pathing, falling, and dying every second, plus item entities and hoppers. On a multiplayer server, several players each running farms multiplies that load and is a common source of TPS drops.
If you run a server, size it for the entity load before you build big farms. Our Server RAM Calculator estimates the memory you need by player count and activity, and our hosting comparison ranks hosts on real modded and high-entity performance rather than marketing. If your single-player world chugs near the farm, the lag and stutter guide covers the simulation-distance and entity settings that help most.
Common mistakes
Only getting nuggets, no ingots. The farm is killing piglins with fall damage or lava instead of the player. Shorten the fall so they survive the drop, and land the final hit yourself.
Slow or stalled spawning. Either you are inside the 24-block no-spawn radius, or spawns are leaking onto un-proofed surfaces in range. Move your AFK spot back and spawn-proof everything that is not a platform.
Ghasts and magma cubes in the farm. Your spawn space is taller than two blocks somewhere. Ghasts need 4x4x5; close the headroom to exactly two blocks and they stop spawning.
Farm stops when you move a little. The chunks left simulation distance, or you stepped outside the 128-block sphere. Force-load the chunks and keep your AFK spot inside range. Review render vs simulation distance if mobs vanish when you back away.
Piglins reaching the player. Group aggro pathed them to a gap you missed, often the drop hole or a one-block ledge. Seal every approach; piglins should only ever occupy the kill trench.
Related farms
Once your gold farm runs, the same spawning and chunk-loading principles apply to most mob farms. The iron golem farm guide covers a village-based design, and a mob switch lets you suppress hostile spawns elsewhere so your active farm gets the entire mob cap.
This guide is part of our Minecraft farm guides collection for 26.2.
Sources & further reading:






