Automatic bartering with a piglin
A piglin locked in a glass cell receives one gold ingot at a time from a dropper and tosses the loot into a hopper. The next ingot starts as soon as the hopper empties: put the gold in the chest and you get back ender pearls, obsidian, crying obsidian, string, quartz and blackstone.
| 1.21.11 | 433 | items from 64 gold ingots |
|---|---|---|
| 1.21.1 | 345 | items from 64 gold ingots |
| 1.20.6 | 418 | items from 64 gold ingots |
| 1.19.4 | 376 | items from 64 gold ingots |
| 1.18.2 | 448 | items from 64 gold ingots |
| 1.17.1 | 433 | items from 64 gold ingots |
| 1.16.5 | 390 | items from 64 gold ingots |
| 26.3 | 370 | items from 64 gold ingots |
| 1.15.2 | — | can't be built: piglins and bartering arrive with 1.16 |
| 1.14.4 | — | can't be built: piglins and bartering arrive with 1.16 |
Same test repeated on every version, in a new flat world: the numbers are for comparing versions with each other. The farm can be built from 1.16.

This farm produces
- Ender Pearl
- Obsidian
- Crying Obsidian
- String
- Nether Quartz
- Blackstone
Materials
Materials list: 10 tipi, 24 in total
You also need an adult piglin, a boat or minecart to carry it, and gold ingots.
Build
You can build the farm turned however you like: it only counts how the blocks sit relative to each other. On pieces that need to be oriented (hoppers, pistons, observers, repeaters and the like) the model draws a red arrow: it shows which way they point.

Drag to rotate, even from below. Right-click or two fingers to move, mouse wheel to zoom.
Where to build it
In the Nether, in a flat, quiet spot: the safest way is on the Nether roof, far from ghasts and hoglins. In the Overworld, the piglin turns into a zombified piglin after 15 seconds.
Good to know
- How we tested it: we built it on our 1.21.1 test server following these steps, with a test player. We put 64 ingots in the chest and pressed the button: in 9,7 minutes the piglin traded them all. Loot: 71 Blackstone, 61 Gravel, 37 String, 36 Soul Sand, 29 pieces of leather, 29 Iron Nuggets, 28 Spectral Arrows, 18 Quartz, 11 Obsidian, 11 Nether Bricks, 8 Crying Obsidian, 3 Fire Charges and 3 Ender Pearls.
- In the first version, the ingot afterward started when the loot arrived: with large stacks, the hopper stayed full and the farm stopped. Now it starts when the hopper empties.
- To make more, build more cells side by side, each with its own piglin.
How we test
- We build the farm from scratch on a local server, in the stated version, with a test player nearby.
- We count the harvest in 1 game hour(s), speeding up time.
- We restart the server and check that it picks up again on its own.
- We publish the measured number even when it is lower than the claimed one.