MINERUSTCRAFT / AUTO FARMS
Automatic Piglin Bartering Farm in Minecraft
A clock delivers gold ingots individually, while synchronized hopper locking protects each ingot until the piglin picks it up.

What the module does
I will walk through automatic gold delivery to an adult piglin and collection of its random barter goods. The upper chest supplies a dropper, a hopper clock delivers ingots individually, and the lower chest receives the results. Each barter consumes one gold ingot.
Possible goods include gravel, blackstone, quartz, obsidian, leather, string, ender pearls and potions from the barter loot table. Results are random: equal gold costs do not guarantee equal output. Do not treat a rare item as requiring a fixed number of barters.

Location and trader
Build in the Nether. An ordinary piglin zombifies in other dimensions and ceases to be a suitable trader. The complete module was tested with a real piglin in the Nether in Java 1.20.1, without a special mob property preventing zombification.
Use an ordinary adult piglin. Name it with a name tag, deliver it into the glass chamber and close the entrance. A temporary railway and minecart help with transport. Remove the vehicle so the trader stands freely inside the cell. Wear gold armor while organizing transport and avoid provoking the mob.
How feeding and collection work
- The hopper clock moves a redstone block between two positions.
- One position locks the collection hopper below the piglin and simultaneously pulses the dropper.
- The dropper releases one ingot. The locked hopper cannot take it before the piglin does.
- The collector then opens. After the normal gold-admiring cycle, the piglin throws its goods and they enter the lower chest.
Use exactly 12 identical clock items that stack to 64. Do not speed up the module by reducing this count: the trader needs time to complete the previous barter. Hoppers may take several seconds to transfer a large returned stack.
Compatibility
- Trader: gold pickup and repeated barter returns were tested with an adult piglin in the Nether in Java 1.20.1.
- Control: the clock, dropper and collection-hopper locking were tested together in Java 1.20.1.
- Collection: goods reached the output chest without supplied ingots appearing there as output. Mob item pickup must be allowed, including an appropriate mobGriefing setting.
This is a Java schematic. Complete Bedrock wiring and timing compatibility is not claimed. Normal hourly output has not been measured; production depends on gold supplies and random goods.
Materials and preparation
The schematic measures 10 × 9 × 10 blocks. Besides building materials, provide a named adult piglin, 12 clock items and consumable gold ingots. Five sea lanterns illuminate the chamber and wiring; lighting does not replace the correct dimension.
Keep the two chests distinct: upper (5,7,4) is the gold input, lower (4,2,3) is the goods output. All coordinates are local to the schematic origin.
| Material | Count |
|---|---|
| Stone bricks | 19 |
| Hoppers | 5 |
| Comparators | 2 |
| Redstone dust | 10 |
| Sticky pistons | 2 |
| Redstone block | 1 |
| Bottom smooth stone slabs | 2 |
| Repeaters | 2 |
| Chests | 2 |
| Glass | 37 |
| Sea lanterns | 5 |
| Dropper | 1 |
| Named adult piglin, manually | 1 |
| Clock items that stack to 64 | 12 |

Build the module
- Lower output. Place the output chest at (4,2,3). Hoppers (4,2,4) and (4,2,5) face north. The latter becomes the chamber floor and receives its lock from the redstone block behind it.
- Chamber. Build the glass enclosure around cell (4,3,5). Temporarily leave a side opening to load the piglin. Keep the upper feeding opening clear.
- Feed. Dropper (5,6,5) faces west into the chamber top. Hopper (5,6,4) faces south into the dropper. Put the input chest above it at (5,7,4).
- Clock. Hoppers (4,1,6) and (5,1,6) face each other. Comparators read them from outside, with inward-facing sticky pistons above. One redstone block moves between the pistons.
- Dust and repeaters. Right-click the two isolated end dust dots into crosses so they power the adjacent pistons. Repeater (4,2,7) reads from the north and outputs south toward the rising wire. Repeater (7,6,5) reads from the east and powers the block west of it beside the dropper.
- Load the trader. Get the named adult piglin onto the chamber hopper, remove temporary transport and close the glass. Confirm that it cannot escape onto the wiring.
- Start the clock. Put 12 identical items into the right clock hopper at (5,1,6) only. The other starts empty. Check that the redstone block moves.
- Add gold. Fill the upper chest with gold ingots. Observe several complete cycles: an ingot reaches the piglin, it admires the ingot, and returned goods enter the lower chest.




Install the download
Paste the Java schematic with a tool supporting Sponge .schem in a suitable Nether location. Entities and container contents are excluded. Add the trader, 12 items to one clock hopper and consumable gold ingots to the upper chest manually after pasting.
Check hopper, dropper, comparator and repeater directions. Keep both chests and the clock accessible for maintenance. Do not connect unrelated redstone power to the collection hopper.

What I suggest checking
- The piglin does not barter. Check its type and adult age, the dimension, item pickup and absence of aggression. Feed gold ingots through the upper chest.
- Ingots appear in the output chest. The collector is not locked when an ingot is delivered. Check hopper (4,2,5) beside moving block (4,2,6), the output repeater direction and the clock item count.
- Gold accumulates inside. Feeding is too fast, the trader is busy or item pickup is blocked. Restore 12 clock items and remove any additional fast pulse source.
- Goods remain inside. Check chest capacity, hopper directions and permanent collector power. Large stacks transfer one item at a time.
- The clock will not start. Check opposing hopper directions, outward comparator outputs, sticky pistons and cross-shaped end dust.




Discussion 0
Share your experience, ask questions and help other players.
It is quiet here. Your experience could help someone.