关于
Custom Villager Trades 旨在赋予整合包作者扩展原版村民交易的能力。它内置了众多新功能,让你能够精确控制可用的交易内容,并支持随机化物品、数量、附魔等更多属性!
本模组通过读取 config/custom villager trades 目录下的 JSON 配置文件来工作。首次启动模组时,该目录将会被创建并包含一个示例文件。剩下的文件需要由你自行创建!每种职业应对应 1 个文件。
在加载交易并检查其有效性后,模组将拦截交易加载事件并注入自定义交易(如果你启用了相关选项,它还可以移除其他交易)。
功能特性
- 完全可定制的交易创建系统,你可以使用 JSON 定义基础或高级交易
- 使用简单的命名配置文件修改任何职业的交易(除无业游民外)
- 你可以设置“全局”交易,这些交易将应用于所有可以进行交易的村民(将配置文件命名为 "all.json")
- 交易可以根据等级应用
- 可以修改交易的所有方面(交易经验、折扣等)
- 可以为任何交易物品应用附魔。这允许生成通过正常(原版)手段无法获得的奇特独特物品
- 附魔现在可以通过 3 种方式进行随机化(详见下文)
- 附魔可以被列入黑名单,可与随机附魔功能配合使用
- 支持模组物品和方块
- 支持模组职业 - 你可以为其他模组的村民添加交易
- 按职业移除所有原版交易
- 可以修改/替换原版流浪商人的交易
- 自定义药水交易,包括随机化和黑名单
- 自定义可疑炖肉交易
- 自定义溅射药水箭交易(支持模组药水效果)。包含随机化和黑名单功能
- 自定义药水和溅射药水箭可以着色
- 自定义物品数据(原 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
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Villager Trades
下载 Custom Villager Trades
下载 Custom Villager Trades
下载 Custom Villager Trades
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Villager Trades
下载 Custom Villager Trades
下载 Custom Villager Trades
下载 Custom Villager Trades
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Villager Trades
移植更新
添加了将“none”作为附魔键的选项,允许交易不提供任何附魔
新增了位于“config/cvtGlobal.json”的全局配置文件
新增全局配置项“opLevel”,用于确定玩家执行 CVT 命令所需的权限等级(默认值 = 2)
新增流浪者交易的导出功能
重新添加了“basic”半随机特性
改变了溅射箭的制作方式,其效果与正常药水一致
修复了 amountRange 未正确应用的问题
修复了药水无法使用 NBT 数据的问题(适用于尴尬和浓稠药水以及水)
修复了首次加载时目录创建失败的问题(如果 config 文件夹不存在,仅限 Fabric 版本)
修复了部分交易导出无法正常工作的问题
修复了溅射箭的验证逻辑
修复了 all.json 中的交易未被添加的问题
移除了配置项 potionKey
移除了配置项 blacklistedPotionKeys
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧