CustomNPCs Trader Commands
An addon for CustomNPCs that allows commands to be sent by the trader
介绍
Trader Commands
Trader Commands is a lightweight addon for Custom NPCs that lets Trader NPCs sell command triggers instead of (or in addition to) physical items – and optionally charge real currency via Grand Economy instead of requiring players to hand over physical payment items.
Features
Command-Trigger Items
/commanditem <name> <command...>tags your currently held item as a command trigger and renames it- When a player buys that item from a Trader NPC, the mod runs the command server-side instead of handing over the item
- Supports a
{player}placeholder, resolved to the buyer’s name - Commands run silently – no feedback spam to ops or logs, just like a normal successful trade
Grand Economy Price Tags (optional – only active if Grand Economy is installed)
/tradeprice <name> <price>tags a held item with a currency cost instead of a physical item price- Trades are charged directly against the buyer’s Grand Economy balance, so currency slots can stay empty
- Works alongside command-trigger items – a single item can both cost currency and run a command on purchase
- A live tooltip on priced items shows Sufficient/Insufficient Currency in green or red based on the viewing player’s real-time balance
How it works
Trader Commands hooks into Custom NPCs’ own trade events, so it layers on top of the vanilla trader GUI without replacing it. Grand Economy is a soft dependency – the mod loads and runs fine without it, with /tradeprice and the balance tooltip simply unavailable until it’s present. Clients without Trader Commands installed can still connect to a server running it; they just won’t see the currency tooltip.
Requirements
- Minecraft 1.12.2
- Forge 14.23.5.2860 or a compatible newer 1.12.2 build
- Custom NPCs (required)
- Grand Economy (optional – enables
/tradepriceand the balance tooltip)
Commands
| Command | Purpose | Permission |
|---|---|---|
/commanditem <name|"name with spaces"> <command...> |
Turn the held item into a command trigger | 2 |
/tradeprice <name|"name with spaces"> <price> |
Set the held item’s Grand Economy price | 2 |
常见问题
CustomNPCs Trader Commands 支持哪些 Minecraft 版本?
CustomNPCs Trader Commands 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
CustomNPCs Trader Commands 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
TheRedStork 的其他作品
查看全部 →PokePlushies [Cobblemon Addon]
Cobblemon 附属模组——给你的宝可梦制作毛绒玩偶
Rusted Pick Gamings InsaneCraft
This is a mod pack with tons of magic, tech, superheros and exploration, giving players tons to do and plenty of ways to do it.
TARDIS Dark Port
Tardis Mod 1.12.2 Port, based on Tardis Mod by DarkholmeTenk, ported and maintained by TheRedStork.
Darkcore Port
A 1.12.2 mod to provide utility functions to DarkholmeTenk Ported mods
评论
登录后评论和评分