Simple Registry Aliases
Exposing Fabric API's registry aliasing in a simple, config driven way.
介绍
Simple Registry Aliases
This mod allows you to define registry entry aliases, by exposing Fabric API’s registry alias
system in simple, config-driven way.
It supports both static (blocks, items, etc.) and dynamic (biomes, enchantments, etc.) registries.
Configuration.
All alias definitions are stored in ./config/registry_aliases/ as a json map.
For vanilla registries, the file should be named as <registry_path>.json,
so for example item registry aliases will be located it item.json, block as block.json,
biomes at worldgen/biome.json (worldgen is a folder) and so on.
For modded registries (through it also works in vanilla), the file should be named <registry_namespace>/<registry_path>.json,
for example for registry magic_mod:spells the name is magic_mod/spells.json.
The file itself is just a json map, with keys being the original entry id and value being the replacement.
For example, a file at ./config/registry_aliases/item.json with content
{
"toomanymetals:enderite_pickaxe": "minecraft:netherite_pickaxe",
"toomanymetals:enderite_axe": "minecraft:netherite_axe"
}
will make all item (as they are sourced from item registry) toomanymetals:enderite_pickaxe get replaced with
minecraft:netherite_pickaxe once it’s loaded.
Worth noting this only works if the registry entry you want to replace doesn’t exist. If it does, this won’t work and
the original entry will be used instead.
常见问题
Simple Registry Aliases 支持哪些 Minecraft 版本?
Simple Registry Aliases 支持 Minecraft Java 版 1.21.4–26.3,共 13 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Simple Registry Aliases 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
Patbox 的其他作品
查看全部 →Text Placeholder API
用于 Minecraft 模组的占位符与文本处理前置库。
Universal Graves
可自定义的 Fabric 死亡墓碑模组!
Polymer
用于创建更好的服务端内容的前置库!
Better Nether Map
让地图在下界和其他洞穴维度中运行得更好。
评论
登录后评论和评分