一个 Minecraft 模组,用于将缺失模组的方块和物品替换为其他方块和物品。
适用于使用 Fabric 加载器的 Minecraft 1.17.1。
例如,如果你有一个仅使用 AnnoyingTechMod 的整合包,在游玩一段时间后你决定改用 FunTechMod,但不想从头开始一个新世界。
你的选择有:
- 直接添加新模组,并希望一切能正常运行
- 先移除旧模组,然后独自面对世界生成中留下的空洞
- 使用 WorldEdit 来替换方块
- 祈祷 MC Edit 突然更新
- 使用 This, Not That 将旧方块和物品替换为新内容
前两种选项可能导致你需要前往新的区块以寻找所需的世界生成内容。
如果你的世界很大,WorldEdit 可能会崩溃,或者需要非常长的时间。
This, Not That 可以在世界加载时,将 AnnoyingTechMod 的世界生成交替为 FunTechMod 中的方块和物品,因此在你游玩的过程中世界会实时更新!
添加来自 AnnoyingTechMod 的方块/物品名称(例如 "annoying_tech:tin_ore"、"annoying_tech:tin_ingot")以及来自 FunTechMod 的对应名称(例如 "fun_tech:tin_ore"、"fun_tech:tin_ingot")。你也可以替换不相似的内容,如果 AnnoyingTechMod 中有 "annoying_tech:agate" 而 FunTech 中有 "fun_tech:garnet",你可以将它们作为替换对使用。
This, Not That 包含一个命令,尝试自动生成替换配置文件,你的结果可能会有所不同。
/this_not_that generate Mod-Id [Preferred-Replacement-Mod-Id] 将在配置目录中生成名为 'this_not_that.Mod-Id.json' 的配置文件。
生成的配置中的替换项将是与给定模组中的事物最接近匹配的标签和名称。[Preferred-Replacement-Mod-Id] 参数是可选的,且不保证会被选中。
注意事项:
- 无法替换当前已安装模组(或原版)中已存在的事物。
- 仅会替换该事物的默认版本。
- 无法替换世界中的实体方块(BlockEntities),但通常可以替换它们的物品版本。
不能对 "annoying_tech:nuclear_furnace" 使用方块替换,但可以使用物品替换。
- 仅搜索原版的箱子、桶、漏斗以及类似的模组存储块,它可能在某些特定模组的存储块上有效,也可能无效。
- 当损坏的物品被替换时,按比例的伤害将被应用到新物品上(如果可能)。
如果一个 "annoying_tech:cardboard_pickaxe" 受到 13/18 的伤害并被替换为最大耐久为 23 的 "fun_tech:micarta_pickaxe",新物品的伤害值将为 17。
- 如果物品具有自定义名称,它将被应用到新物品上(如果可能)。
- 当附魔物品被替换时,仅使用适用于替换物品的附魔。
- 替换所有指定方块的 ItemBlocks 是一个配置选项。
- 替换玩家背包(及末影箱)中的物品也是一个配置选项。
- 替换发生在区块加载时,因此较大的替换列表可能会造成 noticeable 的影响(尤其是替换大量物品时)。
- 执行生成命令时需要安装要替换的模组。
- 调整/移除标签以实现更好统一/集成的整合包可能会对生成命令产生负面影响。
例如,除非禁用 Kube.js,否则 All of Fabric 不会为矿石/粉尘/锭/粒生成任何结果。
- 生成命令的输出是一种最佳猜测,这对于像矿石/粉尘/锭/粒/工具等技术性事物效果良好,但对于纯装饰性事物结果可能较差。
- 在加载你关心的世界之前,请验证生成输出的非逻辑性替换。
- 在尝试使用该模组加载世界之前,请先备份你的世界,并在游玩前先进行检查。
示例配置文件:
https:/gitlab.com/thor12022/this-not-that/-/snippets/2183686
A Minecraft mod to replace blocks and items from a missing mod with different blocks and items.
For Mincraft 1.17.1 with the Fabric loader.
For example, if you have a mod pack that uses only AnnoyingTechMod, and after playing a world for a while you decide to use FunTechMod instead, but you don't want to start a new world.
Your options are:
- Just add the new mod and hope everything plays nice
- Remove the old mod first and just deal with the holes in your world gen
- Use WorldEdit to replace blocks
- Pray that MC Edit suddenly gets an update.
- Use This, Not That to replace old blocks and items with new
The first two options may leave you having to travel to new chunks to find world gen you need.
WorldEdit will probably crash if your world is large, and/or take a very long time.
This, Not That can replace world gen from the AnnoyingTechMod with blocks and items from FunTechMod as the world gets loaded, so the world updates while you play!
Add the block/item names from AnnoyingTechMod (_e.g._ "annoying_tech:tin_ore", "annoying_tech:tin_ingot") with the corresponding names from FunTechMod (e.g. "fun_tech:tin_ore", "fun_tech:tin_ingot"). You can also replace non-similar things, if the was AnnoyingTechMod had "annoying_tech:agate" but FunTech had "fun_tech:garnet" you could use those as a replacement pair.
This, Not That includes a command to attempt to automatically generate a replacement configuration file, your results may vary.
/this_not_that generate Mod-Id [Preferred-Replacement-Mod-Id] will generate a config file 'this_not_that.Mod-Id.json in the config directory.
The replacements in the generated config will be whatever closest matched the tags and name of the thing from the given mod. The [Preferred-Replacement-Mod-Id] parameter is optional and does not guarantee selection.
Things to know:
- Cannot replace things that exist in a currently installed mod (or vanilla).
- Will only replace things with the default version of that thing.
- Cannot replace in-world BlockEntities, but can (usually) replace the item version of them.
Can't use a block replacement for "annoying_tech:nuclear_furnace", but can use an item replacement.
- Will only search vanilla Chests, Barrels, Hoppers and similar mod storages, it may or may not work with any particular mod's storage block.
- When a damaged item is replaced, proportional damage will be applied to the new item (if possible).
If a "annoying_tech:cardboard_pickaxe" had 13/18 damage was being replaced with "fun_tech:micarta_pickaxe" which has a max damage of 23, the new item would have damage of 17. * If an item has a custom name, it will be applied to the new item (if possible).
- When an enchanted item is replaced, only the enchantments valid for the replacement item are used.
- Replacing ItemBlocks of all specified blocks is a config option.
- Replacing items in the Players' inventory (and Ender Chest) is also a config option.
- Replacement happens when a chunk is loaded, so large replacement lists may be noticeable (especially if replacing lots of items).
- The generate command needs be be performed with the mod to replace installed.
- Modpacks that adjust/remove the tags for better unification/integration may have a negative affect on the generate command.
e.g. All of Fabric will not generate any results for ores/dust/ingots unless Kube.js is disabled.
- The generate command's output is a best-guess, this works well for technical things like ore/dust/ingot/nugget/tools, but may have poor results for purely decorative things.
- Verify generate's output for nonsensical replacements before loading a world you care about.
- Create a backup of you world before trying to load it with the mod, and check around first before playing with it.
Example Config:
https:/gitlab.com/thor12022/this-not-that/-/snippets/2183686
评论 0
登录后参与评分
还没有评论,来抢沙发吧