betterpiglintrades 1.20.1-1.2.0
Curse Maven Snippet
What's new
Better Piglin Trades 1.2.0
First CurseForge and Modrinth release for Minecraft 1.20.1, on Forge.
Data-driven piglin bartering: define which items piglins accept and what they give back, using datapack JSON. Ships with tiered gold nugget, gold ingot and gold block trades.
Features
- Add, override or disable barter items with datapack JSON, no code required
priorityfield to override trades from other packsenabledfield to take an item out of bartering entirely- JEI integration showing every possible reward sorted by chance, with the per-roll chance on each tooltip. Outputs are synced from server to client, so it works in singleplayer and on servers
Fixed since the 1.20.1 maven build
- The mod's own default trades never loaded. The jar had no
pack.mcmeta, so Forge rejected its built-in datapack and none of the gold nugget, ingot or block trades registered - A cached build could ship without the mixin refmap. The refmap is produced as a side effect of compilation and was not a declared task output, so a Gradle build-cache hit silently dropped it, leaving every mixin injection unable to resolve at runtime
- Clients without JEI were disconnected on login
- JEI showed no recipes when connected to a dedicated server
- Trade data was not re-sent after
/reload - Right-clicking a piglin with a custom trade item gave no arm swing and could trigger the item's own right-click action
- Custom trade items were consumed in creative mode
- Barter rewards dropped at the piglin's feet instead of being thrown toward the player
- Piglin repellents could be picked up as trade items
Notes
- Trade overrides should live in your own namespace and use a higher
priority. Writing todata/betterpiglintrades/piglin_trades/<name>.jsonis unreliable, since only one pack can win a given file path - Loot tables go in
data/<namespace>/loot_tables/on 1.20.1
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include

