HomeJavaModsPiglintrades
Piglintrades
ModsJava

Piglintrades

by CrownForge · on Modrinth

Spawn special Piglins or optionally regular ones that trade on your rules. Offer items to trigger configurable, weighted reward pools that drop loot or…

⬇ Download on Modrinth

PiglinTrades

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.


Highlights


Requirements


Installation

  1. Drop PiglinTrades.jar into /plugins.
  2. (Optional) Install PlaceholderAPI if you want placeholders in command rewards.
  3. Restart to generate config.yml and rewards.yml.
  4. Customize settings, then run /pt reload.

Quick Start

  1. /pt spawn to place a Special Piglin.
  2. In rewards.yml, create a pool keyed by the item players will offer (e.g., GOLD_INGOT).
  3. Offer the item by right-clicking the Piglin or dropping it near them (consumes 1).
  4. After the cooldown, a reward from the matching pool appears.

Want regular Piglins to use the plugin too? See the config toggle below.


Configuration

config.yml

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)

Tip: /pt simulate <POOL_KEY> <COUNT> to preview outcome distribution.


Commands & Permissions

Subcommands:


How players use it


Notes


Troubleshooting

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more