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
- Right-click adult Piglins with an empty hand: Opens the trading interface when right-clicking an adult Piglin with an empty hand
- Gold ingot trading: Use gold ingots to purchase items from Piglin loot tables
- 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 traderesult_count: The quantity of the resulting itemcost_a_item: The ID of required trade item Acost_a_count: The quantity of required trade item Acost_b_item: The ID of required trade item B (can be empty)cost_b_count: The quantity of required trade item Bmax_uses: Maximum number of usesexperience: Experience points gained from the trade
Supported Platforms
- Minecraft Forge 1.21
- Minecraft Fabric 1.21
- Minecraft NeoForge 1.21
Installation
- Download the mod file for your platform
- Place the mod file in the server’s
modsfolder - Start the server
- The configuration file will be automatically generated in the
configfolder
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
常见问题
Piglin Join WTO 支持哪些 Minecraft 版本?
Piglin Join WTO 支持 Minecraft Java 版 1.21–1.21.5,共 6 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
Piglin Join WTO 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
Mai_xiyu 的其他作品
查看全部 →OneKeyMiner
这个模组允许你在按住连锁键时,使用工具连锁破坏方块或进行连锁耕作。破坏一个方块后,邻近的方块也会一并被破坏;手持种子时,邻近的耕地也会同时播种。
Super Tools Reload
这个模组加入了大量新物品,强度极高(没错,真的极高),包括工具、盔甲、食物和方块。它主要用于添加新物品,功能也和大多数模组差不多。
OneKeyMiner(Neo)Forge and Fabric| Vein Miner | Chain Vein
这个模组可以让你按住连锁键来连锁破坏方块和耕种。破坏方块时,周围相邻的方块也会一起被破坏;手持种子时,相邻的耕地也会一起播种。
Spartan Weaponry Unofficial
经典的 Spartan Weaponry 模组非官方 NeoForge 1.21.1 移植版,包含剑、长柄武器、远程武器等,灵感源自 Balkon's WeaponMod!
评论
登录后评论和评分