
关于
Custom Villager Trades 旨在赋予整合包作者扩展原版村民交易的能力。它包含大量新功能,让你能够精确控制可用的交易内容,并支持对物品、数量、附魔等进行随机化!
该模组通过读取 config/custom villager trades 目录下的 JSON 配置文件来工作。首次启动模组时,会自动创建该目录并放入一个示例文件。你需要自行创建其余的文件!每种职业应对应一个文件。
在加载交易并检查其有效性后,模组会拦截交易加载事件并注入自定义交易(如果你启用了相关选项,还可以移除其他交易)。
功能
- 完全可定制的交易创建系统,允许你使用 JSON 定义基础或高级交易
- 使用简单的命名配置文件修改任何职业的交易(学徒除外)
- 你可以设置“全局”交易,这些交易将应用于所有可以进行交易的村民(将配置文件命名为 "all.json")
- 交易可以根据等级应用
- 可以修改交易的所有方面(交易经验值、折扣等)
- 可以将附魔应用到任何交易物品上。这允许创造出无法通过正常(原版)方式获得的奇特独特物品
- 附魔现在可以通过三种方式进行随机化(详见下文)
- 附魔可以被加入黑名单,可与随机附魔功能配合使用
- 支持模组物品和方块
- 支持模组职业——你可以为其他模组的村民添加交易
- 移除每种职业的原版交易
- 可以修改/替换原版流浪商人的交易
- 自定义药水交易,包括随机化和黑名单功能
- 自定义可疑炖肉交易
- 自定义附魔箭矢交易(支持模组药水效果)。包含随机化和黑名单功能
- 自定义药水和附魔箭矢可以着色
- 自定义物品数据(原 NBT)
- /reloadCVT 命令用于在游戏中使用 —— 实验性功能
- /exportCVT 命令用于导出可用交易 —— 实验性功能
- /addCVT 命令用于在游戏中添加新交易 —— 实验性功能
- /removeCVT 命令用于在游戏中移除仅由 CVT 添加的交易 —— 实验性功能
- 可自定义每个等级的交易数量
整合包
你可以在你的整合包中使用此模组。
我的其他模组
如果你喜欢这个模组,请在这里查看我的其他模组:这里!
请考虑支持我
如果你喜欢我的工作,请考虑通过 Ko-Fi 捐赠一些资金以示感谢 :)

About
Custom Villager Trades is designed to give modpack authors the ability to expand upon the vanilla villager trades. It is packed with fresh features that allow you to have specific control over what is available, as well as the ability to randomize items, amounts, enchantment and more!
This mod works by reading JSON config files from the config/custom villager trades directory. When you first launch the mod, the directory will be created with an example file inside. It is up to you to create the rest! There should be 1 file per-profession.
After loading the trades and checking their validity, the mod will intercept the trade loading event and inject the custom trades in (and if you have enabled the option, it can also remove other trades).
Features
- A fully customizable trade creation system where you can define basic or advanced trades using JSON
- Modify trades for any profession using a simple named config file (excluding the nitwit)
- You can set "global" trades, these will be applied to any villager that can trade (call the config file "all.json")
- Trades can be applied based on level
- All aspects of the trade can be modified (trade experience, discounts, etc.)
- Enchantments can be applied to any trade item. This allows for whacky unique items that can't be acquired via normal (vanilla) means
- Enchantments can now be randomized in 3 ways (read below)
- Enchantments can be blacklisted, usable with random enchantment feature
- Modded item and block support
- Modded profession support - you can add trades to other mod villagers
- Remove all vanilla trades per-profession
- Vanilla wanderer trades can be modified/replaced
- Custom potion trades, including random and blacklisted
- Custom suspicious stew trades
- Custom tipped arrow trades (with modded potion effect support). Includes random and blacklists
- Custom potions and tipped arrows can be coloured
- Custom item data (formerly NBT)
- /reloadCVT command to use ingame - EXPERIMENTAL FEATURE
- /exportCVT command to export available trades - EXPERIMENTAL FEATURE
- /addCVT command to add new trades ingame - EXPERIMENTAL FEATURE
- /removeCVT command to remove CVT ONLY trades ingame - EXPERIMENTAL FEATURE
- Customizable amount of trades per-level
Wiki
You can access the wiki here. It contains a full JSON specification for the latest version of Custom Villager Trades.
Warning: If you are not using the latest version of this mod, some features may not be available to you.
Configuration Builder
I've developed a new tool for my mods to help you create configs with little JSON knowledge!
Check it out here!
Help Me!
Before asking for help, please consult the wiki.
If you still need further help, you can open an issue here or ask on the discord.
Modpacks
You can use this mod in your modpack.
My Mods
If you like this mod, check out my other mods here!
Please consider supporting me
If you like my work, please consider donating some money through Ko-Fi to show your appreciation :)
下载 Custom Villager Trades (Forge/NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Villager Trades (Forge/NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Villager Trades (Forge/NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Villager Trades (Forge/NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Villager Trades (Forge/NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Villager Trades (Forge/NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Villager Trades (Forge/NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Villager Trades (Forge/NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Villager Trades (Forge/NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Villager Trades (Forge/NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
移植更新
修复了加载循环问题(并发修改错误)
版本更新
修复了附魔的注册表访问问题
更新代码库
重新添加缺失的功能
大幅改进验证机制
修复了导出导致崩溃的问题。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
一个基于构建器的 Minecraft 配置库!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
让你能够在世界中的任何位置定位结构。
模组
添加睡袋和吊床,分别用于便携性和昼夜转换,同时不会设置新的出生点。共有16种颜色可选!
评论 0
登录后参与评分
还没有评论,来抢沙发吧