Custom Piglin Bartering
Give piglins different items to receive different loot!
About this Mod
Give piglins different items to receive different loot!
Works server-side and in single player.
Allows data packs to:
define a list of items that piglins are attracted toremoved because this is now handled by the base game'spiglin_loveditem tag- define a list of items that piglins will barter for
- map each barterable item to a loot table that represents possible bartering returns
By default, it separates the vanilla barters into 3 tiers mapped to gold nuggets, ingots, and blocks.
Information on creating data packs and other details can be found on
the wiki.
Translating
If you'd like to help translate Custom Piglin Bartering, you can do so on
Crowdin.
This mod is only for Fabric (works on Quilt, too!) and I won't be porting it to Forge. The license is MIT, however,
so anyone else is free to port it.
I'd appreciate links back to this page if you port or otherwise modify this project, but links aren't required.
Available Versions
How to Install Custom Piglin Bartering on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.2).
Install Mod
Open the mod browser in the dashboard and search for "Custom Piglin Bartering". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.1.2, 26.1.1, 26.1 (+29 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Custom Piglin Bartering server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.
Is Custom Piglin Bartering compatible with fabric and quilt?
Custom Piglin Bartering officially supports fabric, quilt for Minecraft 26.1.2, 26.1.1, 26.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Custom Piglin Bartering – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Custom Piglin Bartering consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Custom Piglin Bartering with just one click on your server.



