
Modrinth · Minecraft mod
RegistryEdit
Very small library to modify and replace assets in Registries
Quick answer
Which RegistryEdit release should I use?
RegistryEdit 1.0.4 targets 1.20.4 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is RegistryEdit required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does RegistryEdit 1.0.4 need?
1.0.4. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add RegistryEdit without breaking your instance.
Built for RegistryEdit 1.0.4. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.4. It targets 1.20.4 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.4. It opens that exact file at the source.
About this project
What does RegistryEdit add?
A often unneeded, yet sometimes required feature, put into a library: Modifying registry elements at runtime. Not much explanation is needed for this library, other than if used improperly it can cause errors.
How to use:
void Initialize() {
...
//Note: do NOT use Registry.register(...) on the custom assets!
RegistryEditEvent.EVENT.register(manipulator -> {
// For native Minecraft elements (Item/Block)
var myCustomItem1 = new Item(new Item.Settings());
manipulator.Redirect(Registries.ITEM, Items.STICK, myCustomItem1);
// ++ Items.STICK = myCustomItem1
// -- Items.STICK = EXISTING_ITEM
// other elements (Any, so long as the field holding it is static final)
var myCustomItem2 = new Item(new Item.Settings());
manipulator.Redirect(MyItems.class, Registries.ITEM, MyItems.CUSTOM_ITEM, myCustomItem2);
// ++ MyItems.CUSTOM_ITEM = myCustomItem2
// -- MyItems.CUSTOM_ITEM = EXISTING_ITEM
// For removing elements entirely (VERY DANGEROUS UNLESS YOU KNOW WHAT YOU ARE DOING!)
manipulator.Unregister(Registries.ITEM, Items.ENDER_PEARL);
// If you are removing a block, ensure you replace the BlockItem associated with it!
manipulator.Unregister(Registries.BLOCK, Blocks.COBBLESTONE);
manipulator.Redirect(Registries.Item, Items.COBBLESTONE, new Item(new Item.Settings()));
});
...
}
Assuming you are overriding an item in the Items / Blocks class (ie, where Items.STICK would be located) the registry edit will apply to that variable as well. If you need to modify an element that isn't in the Items / Blocks class, you can provide your holder class.
Project description from Modrinth.
Pick your setup
RegistryEdit by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.20.3
1 loader build1.20.2
2 loader builds1.20.1
1 loader build1.20
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
RegistryEdit versions and loaders
1.0.4
regedit-1.0.4.jar
1 Apr 2024
1.0.2+1.20.2-quilt
regedit-1.0.2+1.20.2-quilt+1.20.2.jar
26 Mar 2024
1.0.2+1.20.2
regedit-1.0.2+1.20.2.jar
26 Mar 2024
1.0.2
regedit-1.0.2.jar
25 Mar 2024
1.0.1
regedit-1.0.1.jar
25 Mar 2024
1.0
regedit-1.0.jar
13 Mar 2024
Looking for an older file? The official Modrinth project page is in Resources.