promotional bannermobile promotional banner

Piglin Join WTO

A mod that allows Piglins to trade like villagers. This mod only needs to be installed on the server and will not affect the behavior of vanilla Piglins.

Piglin Join WTO Mod (PJWTO)

A mod that allows Piglins to trade like villagers. This mod only needs to be installed on the server and will not affect the behavior of vanilla Piglins.

Features

  • Server-side only: Only needs to be installed on the server; no client installation required
  • Vanilla compatibility: Does not affect vanilla Piglin behavior of picking up gold ingots for trading or player interactions with held gold ingots
  • Intelligent trading system: Generates trades based on Piglin loot tables; rarer items require more gold ingots
  • Custom trades: Supports adding custom trade items via configuration file
  • Experience rewards: Trades grant experience points, with rarer items giving more experience

Usage

  1. Right-click adult Piglins with an empty hand: Opens the trading interface when right-clicking an adult Piglin with an empty hand
  2. Gold ingot trading: Use gold ingots to purchase items from Piglin loot tables
  3. Vanilla behavior preserved: Right-clicking Piglins while holding gold ingots still triggers vanilla trading logic

Trading Rules

Loot table-based trades

  • Gold ingot requirements are calculated based on the item's weight in Piglin loot tables
  • Items with lower weights require more gold ingots
  • Trades are sorted by the number of gold ingots required, from least to most

Gold ingot requirements by weight

  • Weight 1 (rarest): Requires 15 gold ingots
    • Books, iron boots, fire resistance potions, splash potions of fire resistance
  • Weight 2 (rare): Requires 13 gold ingots
    • Iron nuggets, ender pearls
  • Weight 4 (uncommon): Requires 9 gold ingots
    • String, nether quartz
  • Weight 8 (common): Requires 1 gold ingot
    • Obsidian, crying obsidian, fire charges, leather, soul sand, nether bricks, glowstone dust, gravel, blackstone

Custom Trades

The mod generates a piglin_trades.json file in the configuration directory, which you can edit to add custom trades.

Configuration file example

{
  "_comment": "Piglin trading configuration. Define custom trades here.",
  "custom_trades": [
    {
      "result_item": "minecraft:diamond",
      "result_count": 1,
      "cost_a_item": "minecraft:gold_ingot",
      "cost_a_count": 10,
      "cost_b_item": "",
      "cost_b_count": 0,
      "max_uses": 5,
      "experience": 10
    },
    {
      "result_item": "minecraft:enchanted_golden_apple",
      "result_count": 1,
      "cost_a_item": "minecraft:gold_ingot",
      "cost_a_count": 32,
      "cost_b_item": "minecraft:apple",
      "cost_b_count": 1,
      "max_uses": 1,
      "experience": 50
    }
  ]
}

Configuration parameter explanations

  • result_item: The ID of the resulting item from the trade
  • result_count: The quantity of the resulting item
  • cost_a_item: The ID of required trade item A
  • cost_a_count: The quantity of required trade item A
  • cost_b_item: The ID of required trade item B (can be empty)
  • cost_b_count: The quantity of required trade item B
  • max_uses: Maximum number of uses
  • experience: Experience points gained from the trade

Supported Platforms

  • Minecraft Forge 1.21
  • Minecraft Fabric 1.21
  • Minecraft NeoForge 1.21

Installation

  1. Download the mod file for your platform
  2. Place the mod file in the server's mods folder
  3. Start the server
  4. The configuration file will be automatically generated in the config folder

Notes

  • This mod only needs to be installed on the server; no client installation is required
  • Piglins must be adult and non-zombified to trade
  • Players must have an empty hand to trigger the trading interface
  • Vanilla Piglin behavior remains unchanged

The Piglin Join WTO Team

profile avatar
  • 7
    Followers
  • 16
    Projects
  • 499.0K
    Downloads

More from mai_xiyuView all

  • Create: Stressbound project image

    Create: Stressbound

    • 1.0K
    • Mods

    A Create addon that allows rotational stress and kinetic power to be transmitted wirelessly across unlimited distances through bindable stress links.

    • 1.0K
    • May 17, 2026
    • Mods
    • +1
  • Spartan Weaponry Unofficial project image

    Spartan Weaponry Unofficial

    • 34.3K
    • Mods

    An unofficial NeoForge 1.21.1 port of the iconic Spartan Weaponry mod—featuring swords, polearms, ranged weapons, and more, inspired by Balkon's WeaponMod!

    • 34.3K
    • May 16, 2026
    • Mods
  • OneKeyMiner(Neo)Forge  and Fabric| Vein Miner | Chain Vein project image

    OneKeyMiner(Neo)Forge and Fabric| Vein Miner | Chain Vein

    • 282.4K
    • Mods

    This mod adds the ability to chain tools to break blocks and chain farming while holding down the chain button. If you break a block, the adjacent blocks will be destroyed together, or if you hold a seed, the adjacent farmland will also be planted.

    • 282.4K
    • May 13, 2026
    • Mods
    • +2
  • Totem of Substitution project image

    Totem of Substitution

    • 42
    • Mods

    The Totem of Substitution adds a new totem item to the game. This totem can transfer fatal damage to other creatures, protecting the holder from death.

    • 42
    • April 2, 2026
    • Mods
  • Create: Stressbound project image

    Create: Stressbound

    • 1.0K
    • Mods

    A Create addon that allows rotational stress and kinetic power to be transmitted wirelessly across unlimited distances through bindable stress links.

    • 1.0K
    • May 17, 2026
    • Mods
    • +1
  • Spartan Weaponry Unofficial project image

    Spartan Weaponry Unofficial

    • 34.3K
    • Mods

    An unofficial NeoForge 1.21.1 port of the iconic Spartan Weaponry mod—featuring swords, polearms, ranged weapons, and more, inspired by Balkon's WeaponMod!

    • 34.3K
    • May 16, 2026
    • Mods
  • OneKeyMiner(Neo)Forge  and Fabric| Vein Miner | Chain Vein project image

    OneKeyMiner(Neo)Forge and Fabric| Vein Miner | Chain Vein

    • 282.4K
    • Mods

    This mod adds the ability to chain tools to break blocks and chain farming while holding down the chain button. If you break a block, the adjacent blocks will be destroyed together, or if you hold a seed, the adjacent farmland will also be planted.

    • 282.4K
    • May 13, 2026
    • Mods
    • +2
  • Totem of Substitution project image

    Totem of Substitution

    • 42
    • Mods

    The Totem of Substitution adds a new totem item to the game. This totem can transfer fatal damage to other creatures, protecting the holder from death.

    • 42
    • April 2, 2026
    • Mods