Reliable Replacer

一个轻量级的实用工具,用于在世界生成期间及之后将一种方块替换为另一种。
此模组允许整合包制作者使用标准的 JSON 文件轻松禁用物品或限制其使用,无需编写复杂的脚本。
很高兴你问到了!我制作 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.
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
/reload and 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
评论 0
登录后参与评分
还没有评论,来抢沙发吧