Better Piglin Trades
by Saereth
Better Piglin Trades replaces the piglin bartering table with a data-driven system, so modpack makers can define trades in datapacks.
What it does
Piglin bartering is set by JSON files instead of code. A trade names the input item the piglin accepts, a list of possible output items with average quantities, and a loot table that holds the weights and amounts. Trades can be added, overridden or removed, and a priority field decides which definition wins when two target the same input, with the higher value taking precedence.
The mod ships with three default trade tiers covering gold nuggets, ingots and blocks. Authors can keep those, replace them or build their own tiers by adding files to a datapack. Pointing a trade at an empty loot table removes its rewards without deleting the definition, which helps when balancing a pack.
The project is open source under the MIT License and requires Minecraft 1.21.1 on NeoForge, with Forge files for 1.20.1. Servers that run it need every player to install it too. Just Enough Items is optional: once installed, pressing U over a trade item shows the possible barter rewards.
Key features
Datapack-defined trades
Piglin bartering is described in JSON, so trades change without any Java code or recompiling.
Priority-based overrides
A priority field lets a higher-valued trade replace an existing one for the same input item.
Weighted loot tables
Loot table weights and quantities control how often each output appears and how many items a piglin gives.
Default trade tiers
Three built-in tiers of gold nuggets, ingots and blocks provide a starting set of bartering rewards.
JEI barter lookup
With Just Enough Items installed, pressing U over a trade item lists the rewards a piglin can return.
Compatibility
Latest build for each game version and loader.
26.x2 of 2 versions with builds
1.21.x11 of 11 versions with builds
1.20.x1 of 1 version with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Optional 1
Use cases
Who it’s for: Modpack makers and datapack authors who want to change piglin bartering, and players who want to check what a piglin can give before trading.
How it compares
Piglins Trade Gold Blocks is server required with client optional, under the GNU General Public License v3.0 only, and covers only 26.2 – 26.3 across Fabric, Forge, NeoForge and Quilt. Fast Piglin Trades is also server required with client optional and under the GNU General Public License v3.0 only, but targets 1.21.5 – 26.3. Fair Bartering is server-side only, open source under the MIT License, and covers 1.21.1 – 1.21.11 on Fabric, Forge and NeoForge.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Better Piglin Trades | Forge and NeoForge | 1.20.1 – 26.1.2 | Client and server | 2026-10-02 |
| Piglins Trade Gold Blocks | Fabric, Forge, NeoForge and Quilt | 26.2 – 26.3 | Server required, client optional | 2026-10-07 |
| Fast Piglin Trades | Fabric, Forge, NeoForge and Quilt | 1.21.5 – 26.3 | Server required, client optional | 2026-10-03 |
| Fair Bartering | Fabric, Forge and NeoForge | 1.21.1 – 1.21.11 | Server-side only | 2026-01-13 |
Questions
Does Better Piglin Trades need Just Enough Items?
Which loaders and versions does Better Piglin Trades support?
Does the server need the mod for custom trades to work?
In the catalog
Better Piglin Trades is one of 19,031 Adventure mods on ModsFinder, and one of 10,478 Adventure mods for Forge. 15,189 mods support Minecraft 26.1.2.
More from Saereth
Similar mods
What the author says
Better Piglin Trades transforms piglin bartering into a fully data-driven system that modpack makers can customize without writing any code. Then create a matching loot table with your desired rewards!
Official listing
- Modrinth page
- modrinth.com/mod/better-piglin-trades
- Owner
- Saereth
- Published
- 2026-01-08
- Updated on Modrinth
- 2026-10-02
- Facts verified
- 2026-10-15
