Shifting-Wares: VillagerConfig 附加模组
兼容附加模组,使 ShiftingWares 的重新投掷功能能够使用由 VillagerConfig 定义的自定义交易和布局。
Shifting Wares v2
为了使 Shifting Ware 的地图缓存正常工作,探索地图交易必须使用与原版交易相同的物品命名约定。 否则行为未定义。
Shifting Wares v3
通过此附加模组,可以在交易本身中(连同成本和结果一起)定义地图持久性:
shiftingwares:isPersistent: (布尔值) 强制将该交易标记为持久化。该交易的重新投掷能力将受到与地图交易相同的条件限制。shiftingwares:tradeId: (标识符) 当定义时,这允许 ShiftingWares 将现有交易与其在数据包中的源关联起来,并防止生成该交易的重复项。
示例:
{
"shiftingwares:isPersistent": true,
"shiftingwares:tradeId": "minecraft:on_ocean_explorer_maps",
"cost_a": { "type": "minecraft:item", "name": "minecraft:emerald" },
"cost_b": { "type": "minecraft:item", "name": "minecraft:compass" },
"result": {
"type": "minecraft:item",
"name": "minecraft:map",
"functions": [
{
"decoration": "minecraft:monument",
"destination": "minecraft:on_ocean_explorer_maps",
"function": "minecraft:exploration_map",
"search_radius": 100
}
],
}
}
当 VillagerConfig 从原版交易生成数据时,这些数据默认情况下不会存在,但即使没有这些数据,地图交易仍会被设置为持久化。建议设置交易 ID 以避免重复项。 交易 ID 不需要与地图的目标地点匹配;此示例仅展示在没有 VillagerConfig 的情况下 ShiftingWares 的处理方式。
版本覆盖范围
| Minecraft | VC | SW | Addon |
|---|---|---|---|
| 1.21.11 1.21.4 |
v4.4 | v3 | v2.1 |
| 1.21.3 1.21.2 |
v4.3 | v3 | v2.0 |
| 1.21.1 1.21.0 |
v4.4 | v3 | v2.1 |
| 1.20.6 1.20.0 |
v4.1 | v2 | v1.0 |
Shifting-Wares: VillagerConfig Addon
Compatibility addon that enables ShiftingWares rerolls to use the custom trades and layouts defined by VillagerConfig.
Shifting Wares v2
In order for Shifting Ware's map caching to work properly, Exploration Map trades must use the same item-naming convention as vanilla trades. Behaviour is undefined otherwise.
Shifting Wares v3
With this addon, map persistence can be defined in the trade themselves, alongside to the costs and result:
shiftingwares:isPersistent: (boolean) Forcibly marks the trade as persistent. This trade's rerollability will be limited to the same conditions as for map trades.shiftingwares:tradeId: (Identifier) When defined, this allows ShiftingWares to associate an existing trade to its source in the datapack, and prevent duplicates of that trade from being generated.
Example:
{
"shiftingwares:isPersistent": true,
"shiftingwares:tradeId": "minecraft:on_ocean_explorer_maps",
"cost_a": { "type": "minecraft:item", "name": "minecraft:emerald" },
"cost_b": { "type": "minecraft:item", "name": "minecraft:compass" },
"result": {
"type": "minecraft:item",
"name": "minecraft:map",
"functions": [
{
"decoration": "minecraft:monument",
"destination": "minecraft:on_ocean_explorer_maps",
"function": "minecraft:exploration_map",
"search_radius": 100
}
],
}
}
This data will not be present by default when VillagerConfig generates data from vanilla trades, but map trades will still be made persistent even without it. Setting the trade Id is still recommended to avoid duplicatas. The trade Id is not required to match the map's destination; this example is just how ShiftingWares handles them without villager config.
Versions Coverage
| Minecraft | VC | SW | Addon |
|---|---|---|---|
| 1.21.11 1.21.4 |
v4.4 | v3 | v2.1 |
| 1.21.3 1.21.2 |
v4.3 | v3 | v2.0 |
| 1.21.1 1.21.0 |
v4.4 | v3 | v2.1 |
| 1.20.6 1.20.0 |
v4.1 | v2 | v1.0 |
下载 Shifting-Wares: VillagerConfig Addon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Shifting-Wares: VillagerConfig Addon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Shifting-Wares: VillagerConfig Addon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Shifting-Wares: VillagerConfig Addon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Shifting-Wares: VillagerConfig Addon
下载 Shifting-Wares: VillagerConfig Addon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Shifting-Wares: VillagerConfig Addon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Shifting-Wares: VillagerConfig Addon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Shifting-Wares: VillagerConfig Addon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Shifting-Wares: VillagerConfig Addon
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 已更新以兼容 VC 4.4
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
让你能够在世界中的任何位置定位结构。
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
模组
一堆修复
模组
如果游戏能告知重要的刷新点,会怎样?
模组
一款适用于你选择的加载器的 Minecraft VR 模组!
模组
为盔甲架添加图形用户界面,允许你配置其姿势和其他属性
评论 0
登录后参与评分
还没有评论,来抢沙发吧