Reliable Replacer
一个轻量级的实用工具,用于在世界生成期间及之后将一个方块替换为另一个。 此模组允许整合包制作者使用标准的 JSON 文件轻松禁止物品或限制其 使用,而无需编写复杂的脚本。
关于 Block Swap?
很高兴你问到了!我制作 Reliable Replacer 是因为我对 Block Swap 的一些个人不满。以下是考虑切换的一些理由!
为什么选择 Reliable Replacer?
- Reliable Replacer 经常更新并支持最新版本,而截至撰写本文时,Block Swap 仍停留在 1.20.1。
- 实时配置重载!运行
/reload即可立即看到更改生效。 - Reliable Replacer 完全在服务端运行,因此兼容原版客户端!
- 高级过滤功能:
- 按生物群系、维度、已放置的结构特征、坐标或结构来过滤替换操作!
- 可针对 每条规则 开启或关闭回溯生成(retrogen)。
- 可针对 每条规则 开启或关闭玩家放置时的替换。
- 更灵活的配置,支持用户定义文件夹中的简单 JSON 配置,并与 Cloth Config 集成。
- 可针对每条规则切换持久化设置:
- 决定被替换的方块是否应继承旧方块的属性。
- 不需要任何外部库。
从 Block Swap 迁移
切换非常简单!Reliable Replacer 支持一种遗留格式,旨在与 Block Swap 的配置完全一致地工作。
首次安装 Reliable Replacer 并启动游戏时,会在 config/reliable_replacer 文件夹中自动生成一个 swapper.json 文件。该文件使用与 Block Swap 相同的简单键值对格式。
要迁移,只需将旧配置文件中的 "swapper" 块复制到此文件中即可:
{
"swapper": {
"oreganized:lead_door": "supplementaries:netherite_door",
"farmersdelight:rope": "supplementaries:rope",
"minecraft:dirt": "minecraft:stone",
...
}
}
注意:在 swapper.json 中定义的规则会自动继承默认设置(如启用回溯生成、在玩家放置时替换等)。如需更高级的控制,请使用标准规则格式。
功能
完整的功能列表可在 Modded Minecraft Wiki 上查看。
有关如何使用该模组的信息和示例,请参阅 wiki。
快速入门示例
在 config\reliable_replacer 中创建一个名为 my_replacement.json 的文件,或者你可以随意命名:
[
{
"inputs": [
"minecraft:dirt"
],
"output": "minecraft:diamond_block",
"biomes": [
"minecraft:plains"
],
"min_y": "-30",
"max_y": "64",
"player_blocks": "true",
"keep_nbt": "true"
},
{
"inputs": [
"minecraft:stone"
],
"output": "minecraft:gold_ore"
}
]
许可证
Reliable Replacer
A lightweight utility for replacing one block with another, both during worldgen and afterward. This mod allows modpack creators to effortlessly ban items or restrict their usage using standard JSON files, without the need for complex scripts.
What About Block Swap?
I'm glad you asked! I made Reliable Replacer because of some of my personal frustrations with Block Swap. Here are some reasons to consider switching!
Why Reliable Replacer?
- Reliable Replacer is frequently updated and supports the latest versions, while as of the time of writing this, Block Swap is stuck on 1.20.1.
- Live config reloading! Run
/reloadand see your changes instantly take place. - Reliable Replacer is fully server-side, so it's compatible with Vanilla clients!
- Advanced filtering:
- Filter swaps by biome, dimensions, placed feature, coordinates, or structure!
- Toggle retrogen on or off per rule.
- Toggle player placement replacing per rule.
- Much more flexible configuration, supporting simple JSON configuration in user-defined folders and integrating with Cloth Config.
- Per-rule toggleable persistence:
- Decide if replacement blocks should inherit the properties of the old block.
- Doesn't require any external libraries.
Migrating From Block Swap
Making the switch is easy! Reliable Replacer supports a legacy format designed to work exactly like Block Swap's configuration.
When you first launch the game with Reliable Replacer installed, a swapper.json file will be automatically generated
in your config/reliable_replacer folder. This file uses a simple key-value pair format identical to Block Swap.
To migrate, simply copy the "swapper" block from your old configuration into this file:
{
"swapper": {
"oreganized:lead_door": "supplementaries:netherite_door",
"farmersdelight:rope": "supplementaries:rope",
"minecraft:dirt": "minecraft:stone",
...
}
}
Note: Rules defined in swapper.json automatically inherit default settings (retrogen enabled, replace on player
placement, etc.). For more advanced control, use the standard rule format.
Features
A full feature list is available on the Modded Minecraft Wiki.
For information and examples on how to use the mod, please also refer to the wiki.
Quick-Start Example
Create a file called my_replacement.json, or whatever else you'd like, in config\reliable_replacer:
[
{
"inputs": [
"minecraft:dirt"
],
"output": "minecraft:diamond_block",
"biomes": [
"minecraft:plains"
],
"min_y": "-30",
"max_y": "64",
"player_blocks": "true",
"keep_nbt": "true"
},
{
"inputs": [
"minecraft:stone"
],
"output": "minecraft:gold_ore"
}
]
License
下载 Reliable Replacer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reliable Replacer
下载 Reliable Replacer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reliable Replacer
下载 Reliable Replacer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reliable Replacer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reliable Replacer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reliable Replacer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reliable Replacer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reliable Replacer
已修复
- 新增区块中,多方块放置(例如双层植物的上半部分)不再覆盖其他方块。
- 村民现在可以认领由世界生成过程中的替换操作所放置的工作站(及其他 POI 方块)。
修复
- 性能优化。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧