{"id":121331,"date":"2026-06-07T06:14:42","date_gmt":"2026-06-07T03:14:42","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/"},"modified":"2026-06-07T06:14:42","modified_gmt":"2026-06-07T03:14:42","slug":"piglintrades","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/","title":{"rendered":"Piglintrades"},"content":{"rendered":"<p># PiglinTrades<\/p>\n<p>A lightweight Spigot\/Paper 1.21+ plugin that lets both **special Piglins** and (optionally) **regular Piglins** trade via fully configurable, weighted reward pools. Players \u201coffer\u201d an item, the Piglin admires it for a short cooldown (shows it in **off-hand** so weapons aren\u2019t lost), then drops a reward based on your config. Supports item rewards (incl. potions &#038; enchanted books) and console **command** rewards \u2014 with optional PlaceholderAPI placeholders.<\/p>\n<p>&#8212;<\/p>\n<p>## Highlights<br \/>\n&#8211; **Special Piglins**: Invulnerable, don\u2019t despawn, show the offered item while \u201cthinking,\u201d then pay out.<br \/>\n&#8211; **Regular Piglins (toggle)**: Keep **vanilla bartering** or switch them to **PiglinTrades** via config.<br \/>\n&#8211; **Off-hand admire**: Offered item appears in off-hand so Piglins keep their main-hand weapon.<br \/>\n&#8211; **Item-keyed pools**: Each pool is keyed by the **MATERIAL** the player offers (e.g., `GOLD_INGOT`).<br \/>\n&#8211; **Weighted rewards**: Per-entry `weight` controls odds; amounts can be fixed or ranges.<br \/>\n&#8211; **Reward types**:<br \/>\n  &#8211; **Item** (supports enchants; potions via base `PotionType`; tipped arrows)<br \/>\n  &#8211; **Enchanted books** (stored enchants)<br \/>\n  &#8211; **Command** (runs from console; supports `{player}` and PlaceholderAPI)<br \/>\n&#8211; **Admin GUI &#038; tools**: Add\/edit pools and rewards in-game; simulator to test odds.<\/p>\n<p>&#8212;<\/p>\n<p>## Requirements<br \/>\n&#8211; **Server**: Spigot\/Paper **1.21+**<br \/>\n&#8211; **Java**: 21+<br \/>\n&#8211; **Optional**: PlaceholderAPI (for placeholders in command rewards)<\/p>\n<p>&#8212;<\/p>\n<p>## Installation<br \/>\n1. Drop `PiglinTrades.jar` into `\/plugins`.<br \/>\n2. (Optional) Install **PlaceholderAPI** if you want placeholders in command rewards.<br \/>\n3. Restart to generate `config.yml` and `rewards.yml`.<br \/>\n4. Customize settings, then run `\/pt reload`.<\/p>\n<p>&#8212;<\/p>\n<p>## Quick Start<br \/>\n1. `\/pt spawn` to place a **Special Piglin**.<br \/>\n2. In `rewards.yml`, create a pool keyed by the item players will offer (e.g., `GOLD_INGOT`).<br \/>\n3. Offer the item by **right-clicking** the Piglin or **dropping** it near them (consumes 1).<br \/>\n4. After the **cooldown**, a reward from the matching pool appears.<\/p>\n<p>> Want **regular Piglins** to use the plugin too? See the config toggle below.<\/p>\n<p>&#8212;<\/p>\n<p>## Configuration<\/p>\n<p>### `config.yml`<br \/>\n&#8211; **`cooldown-seconds`** \u2014 Seconds a Piglin \u201cadmires\u201d the item before payout (default: `3`).<br \/>\n&#8211; **`allow-vanilla-piglin-barter`** \u2014 If `true`, **regular** Piglins keep vanilla bartering. Special Piglins always use PiglinTrades.<br \/>\n&#8211; **`regular-piglins-use-plugin-trades`** \u2014 If `true`, **regular** Piglins also trade via PiglinTrades.<\/p>\n<p>These two booleans are **mutually exclusive**. If both are `true`, the plugin logs a **warning** and **disables vanilla bartering**, making regular Piglins use PiglinTrades.<\/p>\n<p>Example:<br \/>\n~~~yaml<br \/>\ncooldown-seconds: 3<br \/>\nallow-vanilla-piglin-barter: false<br \/>\nregular-piglins-use-plugin-trades: false<br \/>\n~~~<\/p>\n<p>### `rewards.yml` (concept)<br \/>\n&#8211; **Pools** are keyed by **MATERIAL names** (e.g., `GOLD_INGOT`).<br \/>\n&#8211; Each pool has entries with:<br \/>\n  &#8211; `type`: `item` | `enchanted_book` | `command`<br \/>\n  &#8211; `weight`: higher = more likely<br \/>\n  &#8211; For **items**: `material`, `amount` (number or `min-max`), optional `enchants`, optional `potion`<br \/>\n  &#8211; For **enchanted books**: `stored_enchants`, `amount`<br \/>\n  &#8211; For **commands**: `command` (console), supports `{player}` and PlaceholderAPI<\/p>\n<p>> Tip: `\/pt simulate <POOL_KEY> <COUNT>` to preview outcome distribution.<\/p>\n<p>&#8212;<\/p>\n<p>## Commands &#038; Permissions<br \/>\n&#8211; **Base**: `\/piglintrades` (alias `\/pt`)<br \/>\n&#8211; **Perm**: `piglintrades.admin` (default: OP)<\/p>\n<p>Subcommands:<br \/>\n&#8211; `\/pt spawn` \u2014 Spawn a Special Piglin.<br \/>\n&#8211; `\/pt reload` \u2014 Reload configs.<br \/>\n&#8211; `\/pt simulate <POOL_KEY> <COUNT>` \u2014 Test weighted outcomes.<br \/>\n&#8211; `\/pt kill <all|nearest>` \u2014 Remove Special Piglins.<br \/>\n&#8211; `\/pt gui` \u2014 Open the admin GUI.<\/p>\n<p>&#8212;<\/p>\n<p>## How players use it<br \/>\n&#8211; **Special Piglins**: Right-click or drop a configured item; wait the cooldown; collect reward.<br \/>\n&#8211; **Regular Piglins**:<br \/>\n  &#8211; If `allow-vanilla-piglin-barter: true` \u2192 they behave **vanilla**.<br \/>\n  &#8211; If `regular-piglins-use-plugin-trades: true` \u2192 they use the **same** PiglinTrades flow as specials.<\/p>\n<p>&#8212;<\/p>\n<p>## Notes<br \/>\n&#8211; Offered items show in the Piglin\u2019s **off-hand** while admiring (main-hand gear stays intact).<br \/>\n&#8211; If a pool has no valid entries or only non-positive weights, it won\u2019t select a reward.<br \/>\n&#8211; Validate MATERIAL names and enchant keys against Spigot enums.<\/p>\n<p>&#8212;<\/p>\n<p>## Troubleshooting<br \/>\n&#8211; **Regular Piglin still barters vanilla** \u2192 Set `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`.<br \/>\n&#8211; **\u201cUnknown pool\u201d** in `\/pt simulate` \u2192 Verify the exact MATERIAL key.<br \/>\n&#8211; **No rewards dropping** \u2192 Check entry `type`, weights, and fields.<br \/>\n&#8211; **Placeholders not applied** \u2192 Install PlaceholderAPI and required expansions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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<\/p>\n","protected":false},"featured_media":121332,"template":"","meta":{"_minecraft_slug":"piglintrades","_minecraft_project_id":"Ouottd0o","_minecraft_author":"CrownForge","_minecraft_license":"Apache-2.0","_minecraft_downloads":98,"_minecraft_follows":0,"_minecraft_client_side":"unsupported","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"piglintrades.zip","_minecraft_size_bytes":186232,"_minecraft_version_count":2,"_minecraft_updated_at":"2026-05-15T19:44:10.544840Z","_minecraft_date_created":"2025-09-05T23:31:02.169836Z","_minecraft_date_modified":"2025-09-07T11:09:44.132035Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/piglintrades","_minecraft_icon_attachment_id":121332,"_minecraft_imported_at":"2026-06-07T03:14:43+00:00","_minecraft_import_hash":"e15172e61b6da6151a9c11b207b7e2ea","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[89,137,127,129,92],"mod_loader":[132,134],"minecraft_version":[62,37,73,74,38,78,79,80,81],"class_list":["post-121331","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-game-mechanics","mod_category-mobs","mod_category-paper","mod_category-spigot","mod_category-utility","mod_loader-paper","mod_loader-spigot","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-7","minecraft_version-1-21-8"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Piglintrades - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Piglintrades - Minecraft\" \/>\n<meta property=\"og:description\" content=\"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\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/piglintrades\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/piglintrades\\\/\",\"name\":\"Piglintrades - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/piglintrades\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/piglintrades\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/piglintrades-icon-54f20165fee412ca28edbc0cad3d8ed5b0b9278a_96.webp\",\"datePublished\":\"2026-06-07T03:14:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/piglintrades\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/piglintrades\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/piglintrades\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/piglintrades-icon-54f20165fee412ca28edbc0cad3d8ed5b0b9278a_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/piglintrades-icon-54f20165fee412ca28edbc0cad3d8ed5b0b9278a_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/piglintrades\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Piglintrades\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Piglintrades - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/","og_locale":"en_US","og_type":"article","og_title":"Piglintrades - Minecraft","og_description":"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","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/","name":"Piglintrades - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/piglintrades-icon-54f20165fee412ca28edbc0cad3d8ed5b0b9278a_96.webp","datePublished":"2026-06-07T03:14:42+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/piglintrades-icon-54f20165fee412ca28edbc0cad3d8ed5b0b9278a_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/piglintrades-icon-54f20165fee412ca28edbc0cad3d8ed5b0b9278a_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/piglintrades\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"Piglintrades"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/121331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/121332"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=121331"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=121331"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=121331"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=121331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}