Custom Piglin Bartering
Custom Piglin Bartering lets server owners define which items piglins accept and what loot each barter returns, through data packs.
What it does
Piglins normally trade gold for a fixed set of items. This mod replaces that table with data-driven lists: one list names the items piglins barter for, another names the items they are attracted to, and a loot table per barterable item sets the possible returns. The default configuration keeps the vanilla barters and sorts them into three tiers, with gold nuggets, ingots and blocks as the reward groups.
The mod works on a server and in single-player worlds, since only the server applies the changes. Its data packs are loaded with Fabric API, which is required. Fabric and Quilt builds are published, and the code is released under the MIT License, which lets anyone port it to another loader. Game versions run 1.17 – 26.3, and the latest file targets 26.3.
Creating custom barter data is described in the project wiki, and the translation of the mod's text is managed on Crowdin for anyone who wants to help with it. A Forge build is not provided, so Forge servers cannot run the mod.
Key features
Per-item barter loot
Each barterable item can point to its own loot table, so different items return different rewards.
Attracted item list
A separate list defines which items piglins are drawn to, while vanilla attraction is handled by the base game.
Data pack support
Barter and attraction lists are defined in data packs, so a world can change them without editing the jar.
Three-tier default
The default data groups vanilla barters into three levels, with rewards that scale from nuggets up to blocks.
Compatibility
Latest build for each game version and loader.
26.x5 of 5 versions with builds
1.21.x12 of 12 versions with builds
1.20.x7 of 7 versions with builds
1.19.x5 of 5 versions with builds
1.18.x3 of 3 versions with builds
1.17.x2 of 2 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Questions
Does Custom Piglin Bartering need Fabric API?
Does the client need the mod installed?
Can the barter tables be changed without a new build?
Is there a Forge version?
In the catalog
Custom Piglin Bartering is one of 11,058 Mobs mods on ModsFinder, and one of 5,189 Mobs mods for Fabric. 8,071 mods support Minecraft 26.3.
More from supersaiyansubtlety
Similar mods
What the author says
Allows data packs to: 1. define a list of items that piglins are attracted to removed because this is now handled by the base game's piglin_loved item tag 2. define a list of items that piglins will barter for 3. map each barterable item to a loot table that represents possible bartering returns By default, it…
Official listing
- Modrinth page
- modrinth.com/mod/custom-piglin-bartering
- Owner
- supersaiyansubtlety
- Published
- 2021-06-10
- Updated on Modrinth
- 2026-09-27
- Facts verified
- 2026-10-15