promotional bannermobile promotional banner

Better Piglin Trades

Data-driven piglin bartering! Define custom trade items and loot tables via datapacks. Includes tiered trades for gold nuggets, ingots, and blocks with JEI support.
Back to Files

betterpiglintrades 1.21.1-1.2.0

File namebetterpiglintrades-1.21.1-1.2.0.jar
Uploader
SaerethSaereth
Uploaded
Aug 16, 2026
Downloads
56
Size
75.7 KB
Mod Loaders
NeoForge
File ID
8665546
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:better-piglin-trades-1423977:8665546"

Learn more about Curse Maven

What's new

Better Piglin Trades 1.2.0

A correctness release for Minecraft 1.21.1. If you are on 1.0.0, this is a recommended update.

Fixed

  • Clients without JEI were disconnected on login. The trade sync handler reached into the JEI integration unconditionally, so any client without JEI installed hit a missing class while handling the join packet. This is the main reason to update
  • JEI showed no piglin bartering recipes when connected to a dedicated server. Recipes are now built from the synced output data instead of the server-side trade definitions
  • Trade data was not re-sent to connected players after /reload, leaving JEI showing stale rewards
  • Right-clicking a piglin with a custom trade item produced no arm swing, and could trigger the item's own right-click action, because the client was not told the piglin would accept it
  • 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
  • Removed an injection into a piglin method that has no callers left in modern Minecraft

Added

  • enabled field on trade definitions. Set it to false to take an item out of bartering entirely, rather than only removing its rewards
  • JEI now shows the chance of each barter output on its tooltip, sorted most likely first

Notes

  • Trade overrides should live in your own namespace and use a higher priority. Writing to data/betterpiglintrades/piglin_trades/<name>.json is unreliable, since only one pack can win a given file path

This mod has no additional files