跳到正文

Configurable Data Fixers

作者:EthanStokes

Allows to create custom data fixers through a config

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

THIS MOD IS DEPRECATED, PLEASE VISIT THE NEW MOD HERE

This mod provides a config in which one can convert registered IDs.

This mod works with vanilla registries as well as modded registries added through Fabric’s registry API.
Can be useful for modpacks as mods are often changed.

A more advanced “schema” format is available with the types block, biome, entity, and item, however it is recommended to use registry fixers for items. Using the item schema fixer can result in items being removed from containers.

Here is the config format:

{
  "dataVersion": 0,
  "schemas": [
    {
      "version": 1,
      "fixers": [
        {
          "type": "biome",
          "fixers": [
            {
              "old_id": "examplemod:example_biome",
              "new_id": "newmod:new_biome"
            }
          ]
        }
      ]
    }
  ],
  "registryFixers": [
    {
      "registry_key": "minecraft:block",
      "fixers": [
        {
          "old_id": "examplemod:example_block",
          "new_id": "newmod:new_block"
        }
      ]
    },
    {
      "registry_key": "minecraft:item",
      "fixers": [
        {
          "old_id": "examplemod:example_item",
          "new_id": "newmod:new_item"
        }
      ]
    }
  ]
}

The config file can be found at ./config/configurabledatafixers.json
The config file will have examples set up for you.

Note: Entries in the config will only convert if the old_id is not found in the game. Ex: If you have old_id set to minecraft:grass_block and new_id set to minecraft:stone, grass blocks will stay the same.

This mod was made possible by FrozenLib‘s config library.

常见问题

Configurable Data Fixers 支持哪些 Minecraft 版本?

Configurable Data Fixers 支持 Minecraft Java 版 1.19.2–1.20.1,共 4 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

Configurable Data Fixers 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

EthanStokes 的其他作品

查看全部 →