Skip to content

Gold Farms and Piglin Bartering: Where to Build Them

Java

A gold farm is the best trade in Minecraft: zombified piglins give you gold and XP, and piglins turn that gold into ender pearls, obsidian and Soul Speed. The catch is the biome. Build over the wrong one and you get hoglins instead of gold. We went looking for clean nether wastes on 50 seeds, and it's closer than you'd think.

Updated · 6 min read · Java up to 26.3

Biome finder on seed 0 in the Nether with nether wastes highlighted around -16, -28, a large unbroken patch of wastes next to the spawn portal
Seed 0, Java 26.3, Nether around −16, −28 with nether wastes highlighted. Everything lit up is wastes; the patch centred here is 30 blocks from the spawn portal.

The loop: gold in, everything else out

Zombified piglins drop gold nuggets and rotten flesh, now and then a gold ingot or a golden sword, and a good chunk of XP when you get the kill. A farm that kills hundreds an hour gives you more gold than you can use and enough XP to keep a full set of Mending gear repaired forever.

Then you spend the gold. Piglins trade for gold ingots, and what they give back is the reason this whole thing is worth building:

  • Ender pearls and string, the speedrunner classics.
  • Obsidian and crying obsidian. Crying obsidian is how you make a respawn anchor.
  • Fire Resistance potions, splash and normal.
  • Soul Speed books and iron boots with Soul Speed on them. You can't get Soul Speed from an enchanting table.
  • Quartz, leather, iron nuggets, spectral arrows, nether bricks and a pile of junk blocks like gravel, soul sand and blackstone.

That's the loop. Gold farm feeds a barter station, barter station gives you pearls and fire res, and you never have to grind an enderman again.

Bartering in two minutes

Hold a gold ingot and use it on an adult piglin, or just throw the ingot at its feet. It picks it up, looks at it for a few seconds, then tosses you something from the barter list. Baby piglins grab gold too, but they don't trade, they just keep it.

Wear at least one piece of gold armour, otherwise piglins attack on sight. And don't mine gold blocks or open chests near them, that makes them hostile even if you're dressed in gold. Our bastion guide has more on keeping piglins calm while you loot.

Three ways to build a gold farm

Nether roof farm. The big one. You build spawning floors above the bedrock ceiling at Y 128, out over nether wastes, and kill everything that spawns. Zombified piglins follow the biome underneath, so the roof over wastes is a zombified piglin factory. It's also the most XP per hour. Getting onto the roof needs one of the well-known tricks on Java (ender pearls or boats against the bedrock), and some servers don't allow it, so check first.

Turtle egg lure. Zombified piglins, like every zombie type, want to trample turtle eggs. Put an egg behind glass at the kill spot and they walk to it on their own. A lot of designs combine this with the roof farm or with an in-Nether platform over wastes.

Overworld portal farm. Nether portals in the Overworld occasionally spawn zombified piglins on their frames, more often on higher difficulties. Stack enough portal blocks and you have a slow but steady farm anywhere you want, no roof access needed. Fewer drops than a roof farm, but it works on servers that ban roof access.

For the first two, everything depends on the biome. That's the part you can plan from the seed.

How far is clean nether wastes?

A farm needs a decent block of pure wastes under it. Crimson forest spawns hoglins and piglins that clog the mob cap, soul sand valley gives you skeletons and ghasts, basalt deltas gives magma cubes. So we went looking for a 128 × 128 block patch that is at least 97% nether wastes, as close as possible to the spawn portal.

On 50 seeds in Java 26.3, every single seed had one within 368 blocks of the spawn portal's Nether position. The median was 118 blocks, and 42 of the 50 had one within 200. You don't need to travel far. You need to look before you build, because the wrong side of the portal can be a delta.

Nearest 128 × 128 patch of nether wastes to the spawn portal, Java 26.3.
SeedPatch centre (Nether)From the portalOverworld
0−16, −2830−128, −224
123456789−24, 1237−192, 96
chunkscout0, −48480, −384
8675309123456789128, −601411,024, −480
−1234567890123−160, 0158−1,280, 0

Seed 8675309123456789 drops you into basalt deltas and −1234567890123 into warped forest, so on those two you'd walk about 150 blocks first. On seed 0 the patch starts practically at the portal.

Biome finder on seed 8675309123456789 in the Nether with nether wastes highlighted, the spawn portal area in basalt deltas and a wastes patch to the east
Seed 8675309123456789, Java 26.3, Nether around 64, −30 with nether wastes highlighted. The portal at 0, 0 is in the dark basalt area; the patch at 128, −60 is the closest clean wastes.

Finding your spot

  1. Open the biome finder, enter your seed and version and switch to the Nether.
  2. Choose Nether Wastes under Highlight biome. Everything else goes dim.
  3. Look for a big solid patch near your portal. Hover it for Nether coordinates. Bigger is better: the farm's spawning floors spread out a long way from where you stand.
  4. Want a portal right next to the farm? Multiply the patch centre by 8, or type it into the Nether portal calculator, and build the Overworld portal there.
Nether portal calculator with Overworld coordinates -128, 70, -224 typed in and the Nether result -16, -28
The portal calculator with Overworld −128, 70, −224: the Nether side lands at −16, −28, right on seed 0's wastes patch.

Bastions are worth checking at the same time. The piglins you barter with are easiest to grab from a bastion, and the bastion remnant finder shows every one with its biome. On seed 0 the nearest bastion is in wastes at 176, −224, a short ride from the farm spot.

Bedrock players

Bedrock's Nether biomes aren't modelled on our map yet, so the biome finder can't show you where wastes are in a Bedrock Nether. You'll have to scout it in game. The farm ideas still work, but roof access on Bedrock is much harder, so most Bedrock players build the portal farm or an in-Nether platform instead. Bartering works the same way.

Questions

What biome do I build a gold farm in?

Nether wastes. Zombified piglins are the main spawn there. Crimson forest mixes in hoglins and piglins, which take up the mob cap and slow the farm down.

How far is the nearest nether wastes patch from spawn?

Close. On 50 Java 26.3 seeds, a 128 × 128 block patch of pure wastes sat a median 118 Nether blocks from the spawn portal, and never more than 368.

Do baby piglins barter?

No. They'll grab gold and run, but only adult piglins give you something back.

Can I get Soul Speed from an enchanting table?

No. It comes from piglin bartering (books and iron boots) and from bastion chests.

Do I need the Nether roof for a gold farm?

No. Roof farms are the strongest, but a portal farm in the Overworld or a platform over wastes inside the Nether both work where roof access isn't allowed.

Written by the Minecraft Tools team from the same world-generation engine that runs the seed map. Coordinates quoted here were computed with it for the stated seed, edition and version, and the engine is tested against the real game.