Spawn special Piglins or optionally regular ones that trade on your rules. Offer items to trigger configurable, weighted reward pools that drop loot or run console commands; Piglins admire items in their off-hand, and you get an in-game admin GUI plus a si
A lightweight Spigot/Paper 1.21+ plugin that lets both special Piglins and (optionally) regular Piglins trade via fully configurable, weighted reward pools. Players “offer” an item, the Piglin admires it for a short cooldown (shows it in off-hand so weapons aren’t lost), then drops a reward based on your config. Supports item rewards (incl. potions & enchanted books) and console command rewards — with optional PlaceholderAPI placeholders.
GOLD_INGOT).weight controls odds; amounts can be fixed or ranges.PotionType; tipped arrows){player} and PlaceholderAPI)PiglinTrades.jar into /plugins.config.yml and rewards.yml./pt reload./pt spawn to place a Special Piglin.rewards.yml, create a pool keyed by the item players will offer (e.g., GOLD_INGOT).Want regular Piglins to use the plugin too? See the config toggle below.
config.ymlcooldown-seconds — Seconds a Piglin “admires” the item before payout (default: 3).allow-vanilla-piglin-barter — If true, regular Piglins keep vanilla bartering. Special Piglins always use PiglinTrades.regular-piglins-use-plugin-trades — If true, regular Piglins also trade via PiglinTrades.These two booleans are mutually exclusive. If both are true, the plugin logs a warning and disables vanilla bartering, making regular Piglins use PiglinTrades.
Example:
cooldown-seconds: 3
allow-vanilla-piglin-barter: false
regular-piglins-use-plugin-trades: false
rewards.yml (concept)GOLD_INGOT).type: item | enchanted_book | commandweight: higher = more likelymaterial, amount (number or min-max), optional enchants, optional potionstored_enchants, amountcommand (console), supports {player} and PlaceholderAPITip:
/pt simulate <POOL_KEY> <COUNT>to preview outcome distribution.
/piglintrades (alias /pt)piglintrades.admin (default: OP)Subcommands:
/pt spawn — Spawn a Special Piglin./pt reload — Reload configs./pt simulate <POOL_KEY> <COUNT> — Test weighted outcomes./pt kill <all|nearest> — Remove Special Piglins./pt gui — Open the admin GUI.allow-vanilla-piglin-barter: true → they behave vanilla.regular-piglins-use-plugin-trades: true → they use the same PiglinTrades flow as specials.allow-vanilla-piglin-barter: false and regular-piglins-use-plugin-trades: true, then /pt reload. Check console for the mutual-exclusivity warning if both were true./pt simulate → Verify the exact MATERIAL key.type, weights, and fields.