Download Simple Registry Aliases — Minecraft Mods — MetaMods

Simple Registry Aliases

Active

Downloads

0

Last update

8 months ago

Versions

1.21.4 — 1.21.9
Server
Fabric
Utils

Simple Registry Aliases

The modification provides access to Fabric API's alias system through a convenient configuration approach. You can assign alternative identifiers for Minecraft registry elements in any convenient way.

Functionality covers both static registries (items, blocks) and dynamic ones (crafts, biomes).

Configuration Setup

All alias definitions are stored in the ./config/registry_aliases/ directory as JSON objects. For standard registries, files are named by the path <registry_path>.json - for example, item aliases are located in item.json, blocks in block.json, and biomes in worldgen/biome.json (where worldgen is created as a separate folder).

For custom registries (also works for standard ones) the name format includes the namespace: <namespace>/<path>.json. For example, the magic_mod:spells registry requires the file magic_mod/spells.json.

The file structure is extremely simple - a JSON array where keys contain source identifiers and values contain replacements. Consider this example from ./config/registry_aliases/item.json:

{
  "toomanymetals:enderite_pickaxe": "minecraft:netherite_pickaxe",
  "toomanymetals:enderite_axe": "minecraft:netherite_axe"
}

After loading such configuration, all toomanymetals:enderite_pickaxe items are automatically converted to minecraft:netherite_pickaxe when accessing the item registry.

Important limitation: replacement occurs only when the target registry element doesn't exist in the system. If the element is already registered, the module uses the original version regardless of settings.

Project members
Patbox

Patbox

Developer

Created: 11 Feb 2025

ID: 71323