跳到正文

Better Piglin Trades

作者:Saereth

Data-driven piglin bartering! Define custom trade items and loot tables via datapacks. Includes tiered trades for gold nuggets, ingots, and blocks with JEI support.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Features

Better Piglin Trades transforms piglin bartering into a fully data-driven system that modpack makers can customize without writing any code.

Tiered Trading System

The mod includes three default trade tiers:

| Trade Item | Reward Quality |
|————|—————-|
| Gold Nugget | Basic rewards – iron nuggets, soul sand, fire charges |
| Gold Ingot | Standard rewards – ender pearls, potions, obsidian (vanilla-like) |
| Gold Block | Premium rewards – netherite scrap, diamonds, enchanted books |

Fully Customizable

Create your own trades by adding JSON files to your datapack:

Trade Definition (data/mypack/piglin_trades/emerald.json):

{
  "item": "minecraft:emerald",
  "loot_table": "mypack:gameplay/piglin_bartering/emerald",
  "priority": 0
}

Then create a matching loot table with your desired rewards!

JEI Integration

When JEI is installed, press “U” on any trade item to see all possible barter rewards. The display shows:

  • The input item required
  • All possible output items with average quantities

For Modpack Makers

  • Add new trades: Create trade definitions for any item
  • Override existing trades: Use the priority field (higher wins)
  • Remove trades: Point to an empty loot table
  • Balance rewards: Full control over loot table weights and quantities

Requirements

  • Minecraft 1.21.1
  • NeoForge 21.1+

Optional

  • JEI (Just Enough Items) – For viewing possible barter outputs

常见问题

Better Piglin Trades 支持哪些 Minecraft 版本?

Better Piglin Trades 支持 Minecraft Java 版 1.20.1–26.1.2,共 14 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Better Piglin Trades 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

Saereth 的其他作品

查看全部 →