村民交易编辑器
Villager Trade Editor 是一款服务端 Fabric 模组,允许服务器管理员编辑普通村民的交易。
玩家无需安装此模组。它只需安装在服务器上即可。
功能
- 潜行 + 右键点击普通村民以选中它
- 添加、替换、移除、列出和清除村民交易
- 从快捷栏槽位创建交易
- 将交易编辑权限限制为仅限服务器管理员
- 添加全局定时交易限制
- 定时限制使用 Minecraft 游戏内时间,因此睡眠会推进计时器
要求
- Minecraft 1.21.10
- Fabric Loader
- Fabric API
- Java 21
如何选中村民
潜行 + 右键点击普通村民。
只有拥有命令权限等级 2 或更高的玩家才能选中村民并使用命令。默认情况下,这意味着仅限服务器管理员。
创建交易
该模组会从你的快捷栏创建交易:
- 快捷栏槽位 1:第一个消耗物品
- 快捷栏槽位 2:可选的第二个消耗物品
- 快捷栏槽位 3:结果物品
示例:
如果你希望村民出售一把附魔钻石剑,价格为 25 绿宝石:
- 在快捷栏槽位 1 中放入 25 个绿宝石。
- 保持快捷栏槽位 2 为空。
- 将附魔钻石剑放入快捷栏槽位 3。
- 潜行 + 右键点击村民。
- 运行:
/vtrade add
命令
/vtrade help
显示帮助信息。
/vtrade list
列出所选村民的所有交易。
/vtrade add
使用快捷栏槽位 1、2 和 3 中的物品向所选村民添加新交易。
/vtrade replace <number>
使用快捷栏槽位 1、2 和 3 中的物品替换现有交易。
示例:
/vtrade replace 2
替换编号为 2 的交易。
/vtrade remove <number>
从所选村民移除一项交易。
示例:
/vtrade remove 3
移除编号为 3 的交易。
/vtrade clear
清除所选村民的所有交易。
Villager Trade Editor
Villager Trade Editor is a server-side Fabric mod that lets server operators edit trades of ordinary villagers.
Players do not need to install this mod. It only has to be installed on the server.
Features
- Sneak + right-click an ordinary villager to select it
- Add, replace, remove, list, and clear villager trades
- Create trades from hotbar slots
- Restrict trade editing to server operators only
- Add global timed trade limits
- Timed limits use Minecraft in-game time, so sleeping advances timers
Requirements
- Minecraft 1.21.10
- Fabric Loader
- Fabric API
- Java 21
How to select a villager
Sneak + right-click an ordinary villager.
Only players with command permission level 2 or higher can select villagers and use the commands. By default, this means server operators only.
Creating a trade
The mod creates trades from your hotbar:
- Hotbar slot 1: first cost
- Hotbar slot 2: optional second cost
- Hotbar slot 3: result item
Example:
If you want a villager to sell an enchanted diamond sword for 25 emeralds:
- Put 25 emeralds in hotbar slot 1.
- Leave hotbar slot 2 empty.
- Put the enchanted diamond sword in hotbar slot 3.
- Sneak + right-click the villager.
- Run:
/vtrade add
Commands
/vtrade help
Shows the help message.
/vtrade list
Lists all trades of the selected villager.
/vtrade add
Adds a new trade to the selected villager using items from hotbar slots 1, 2, and 3.
/vtrade replace <number>
Replaces an existing trade with a new one using items from hotbar slots 1, 2, and 3.
Example:
/vtrade replace 2
Replaces trade number 2.
/vtrade remove <number>
Removes one trade from the selected villager.
Example:
/vtrade remove 3
Removes trade number 3.
/vtrade clear
Removes all trades from the selected villager.
评论 0
登录后参与评分
还没有评论,来抢沙发吧