本模组允许玩家以可配置的成本,在任何经验等级下重置村民的交易。
在与村民交易时,你会发现增加了一个额外的选项,我们称之为“交易重置选项”。 当你点击结果槽接受该交易重置选项时,商人界面会关闭,村民会发出一些粒子效果,表示交易已重新生成。 结果槽中显示的物品是无法获得的,它仅用于描述交易重置选项的效果。 新的交易会被重新生成,仿佛村民从 0 级升级到了当前等级。 折扣或需求等交易修饰符会被保留,但使用次数会被重置,因为重新生成的交易被视为全新的。
模组的默认配置要求玩家提交钻石,从而给这个原版物品赋予了一个有趣的新用途。
所需数量与村民的经验等级一致,且交易重置选项在需要补货前最多可使用 5 次。
所需的材料、每级的数量以及最大使用次数均可在游戏中通过模组的配置界面或直接编辑生成的 toml 文件进行配置。
有关如何更改配置的更多信息,请参阅 配置部分。
但是,当更改配置时,已经持有交易重置选项的村民不会看到此选项的更新。
如果村民尚未进行过交易,你可以通过重置其职业或提升其等级来重新生成交易重置选项。
否则……就需要更激烈的手段了。
翻译
翻译工作通过 Crowdin 进行,以便社区轻松贡献。 我提供了英文、西班牙文和加泰罗尼亚文的翻译,尽管未来可能会添加其他语言。
配置
本模组的主要功能之一是其配置系统,使其不仅能适应寻求更轻松或更具挑战性体验的广大玩家群体, 还能整合到整合包中,其中可能偏好使用不同的物品来抵消重置村民交易所带来的强大优势。
对于普通玩家来说,通过模组配置 UI 在游戏内更改配置是最简单且推荐的做法。 然而,如果你是整合包创作者,你可能希望避免启动游戏的痛苦,直接编辑配置文件。 无论哪种情况,以下是两种方法的说明。
在游戏内更改配置(仅限 NeoForge)
在菜单中,进入模组窗口并打开 Villager trade reset 的配置。
在 Required item(所需物品)中,你可以选择交易重置选项中所需的物品。默认设置为 minecraft:diamond,但可以设置为任何其他原版物品:
- 要将其设置为另一个原版物品,如泥土,请使用
minecraft:dirt。物品的标识符通常可以在 wiki 的 数据值 section 部分中查看。 - 如果物品由模组添加,除了使用正确的物品标识符外,还需要将 minecraft 更改为模组的 ID。例如,要使用我们的交易重置物品,你将写入
villagertradereset:trade_reset。
Maximum uses(最大使用次数)字段设置了在耗尽并需要补货之前,该选项的最大使用次数。必须大于 0。
Cost per level...(每级成本...)字段设置了接受每个等级的交易重置选项的成本:
这些金额存储在一个从零开始的向量中,因此左侧的列是该向量中的索引。 索引 0 对应于 1 级村民的成本。一般来说,索引 i 对应于 i+1 级村民的成本。 因此,在上述示例中,成本对应于村民的等级。
你可以根据需要向向量中添加或删除正值。如果向量太短,不包含某个等级的成本, 则该等级的成本将从向量的最后一个元素中获取。如果我们看下面的例子:
交易重置选项的成本被设置为 3,适用于任何村民等级,因为它为 1 级设置,而对于任何更高的等级,它将取向量的最后一个元素,即 3。
手动更改配置
配置文件可以在你的 Minecraft 实例中的 config/villagertradereset-common.toml 中创建/找到。
NeoForge 的一个示例配置可以是:
max_uses = 4
cost_per_level = [1, 2, 3]
required_item = "minecraft:emerald"
而 Fabric 对应的配置将是(使用 Java 属性语法):
max_uses = 4
cost_per_level = [1, 2, 3]
required_item = minecraft\:emerald
- 将最大使用次数设置为 4。
- 将所需物品设置为绿宝石。
- 将交易重置选项的成本设置为:1 级商人 1,2 级商人 2,3 级及以上 3。
This mod allows to reset the villager trades at any experience level at a configurable cost to the player.
When trading with a villager, you will notice that an extra offer has been added, which we will refer to as "trade reset offer". When you accept the trade reset offer by clicking on the result slot, the merchant GUI closes and the villager will emit some particles, signaling that the trades have been redrawn. The item shown in the result slot is not obtainable, it is only there to describe the effect of the trade reset offer. The new trades are redrawn as if the villager had levelled up from level 0 to their current level. Trade modifiers like discounts or demand are retained, but the number of uses is reset because the redrawn trades are considered new.
The default configuration of the mod requires the player to submit diamonds, thus given this vanilla item an interesting new purpose.
The amount required coincides with the villager's experience level, and the trade reset offer has a maximum number of uses of 5 before restock is needed.
The material required, amount per level and maximum number of uses are configurable from within the game in the mod's configuration or directly in the generated toml file.
See the Configuration section for more information on how to change the configuration.
However, when changing the configuration any villagers already holding a trade reset offer will not see this offer updated.
If the villager has not been traded with yet, you can regenerate the trade reset offer by resetting their job or levelling them up.
Otherwise... more drastic methods are required.
Translation
Translations are handled via Crowdin for easy community contributions. I provide translations to English, Spanish and Catalan, although other languages may be added in the future.
Configuration
One of the main features of the mod is its configuration so that it can not just suit a wide variety of players looking for an easier or harder challenge, but also be integrated in modpacks where a different item might be preferred to counterbalance the power resetting a villager's offers brings.
For normal players, changing the configuration in-game throught the mod configuration UI is the easiest and recommended way to make adjustments. However, if you are a modpack creator you might want to save yourself from the pain of launching the game and edit the configuration file directly. In either case, here are the instructions for both methods.
Changing the config within the game (NeoForge only)
In the menu, go to the mods window and open the config for Villager trade reset.
In Required item, you can choose the item required in the trade reset offer. This is set to minecraft:diamond by default but can be set to any other vanilla item:
- To set it to another vanilla item, like Dirt, use
minecraft:dirt. The item's identifier can usually be checked in the wiki under the Data values section. - If the item is added by a mod, apart from using the item's correct identifier, you need to change minecraft to the mod's ID. For example, to use our trade reset item you would write
villagertradereset:trade_reset.
The Maximum uses field sets the maximum number of uses of the offer before it is exhausted and in need of restock. Must be greater than 0.
The Cost per level... field sets the cost to accept the trade reset offer for each level:
The amounts are store in a 0-indexed vector, so the column on the left are the indexes in such vector. The index 0 corresponds to the cost for a level 1 villager. In general, the index i corresponds to the cost for a level i+1 villager. Therefore, in the example shown above, the cost corresponds to the level of the villager.
You can add or remove positive values to the vector at your convenience. If the vector is so short that it doesn't contain the cost for a certain level, the cost for that level will be taken from the last element of the vector. If we take the example below:
The cost of the trade reset offer is set to 3 for any villager level, since it is set for level 1 and for any level higher it would take the last element of the vector, which is 3.
Changing the config manually
The configuration can be created/found in config/villagertradereset-common.toml within your minecraft instance.
An example configuration for NeoForge can be:
max_uses = 4
cost_per_level = [1, 2, 3]
required_item = "minecraft:emerald"
While the corresponding configuration in Fabric would be (uses Java properties syntax):
max_uses = 4
cost_per_level = [1, 2, 3]
required_item = minecraft\:emerald
- Sets the maximum number of uses to 4.
- Sets the required item to emerald.
- Sets the cost of the trade reset offer to 1 for a level 1 merchant, 2 for a level 2 merchant and 3 for level 3 and higher.
下载 Villager Trade Reset
下载 Villager Trade Reset
下载 Villager Trade Reset
下载 Villager Trade Reset
下载 Villager Trade Reset
下载 Villager Trade Reset
下载 Villager Trade Reset
下载 Villager Trade Reset
下载 Villager Trade Reset
下载 Villager Trade Reset
1.1.4 适用于 Minecraft 26.3 的发布版本。
- 447ac3e 为 26.3 提升版本号
- dfe05f5 在村民从磁盘加载时附加交易重置选项
1.1.3 适用于 Minecraft 26.4-snapshot-6 的发布版本。
- cd86598 合并拉取请求“Bump to 26.4-snapshot-6”(#53),从 bump-26.4-snapshot6 分支合并至 main
1.1.3 版本适用于 Minecraft 26.4-snapshot-4。
b77e69d 合并拉取请求「为杠杆发布添加标志」(#49),分支 add-platform-tags-to-release-script 并入 main
68779a7 合并拉取请求「升级至 26.4-snapshot-4」(#48),分支 bump-snapshot 并入 main
5a4e97a 合并拉取请求「读取日志时不跳过提交」(#47),分支 remove-skip 并入 main
fc70e1a 合并拉取请求「添加自动发布脚本」(#46),分支 auto-release 并入 main
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧