Introduction
If you hate the modern Forge registry. You can try to use this.
Allow direct call forge registry and vanilla registry.
------------------Warning! It's still experimental now.------------------
I just want to develop my mod. I don't want to forge myself in the anvil.
Let's register quickly. No pain.
How to use
// Either way, register is only valid on loading.
// Original Forge registry don't allow you direct call Forge registry.
// You must register using DeferredRegister and RegisterHelper:
// But it break this rule .
// Register when register event is fired:
ForgeRegistries.OBJECTS.register(<ID>, <OBJECT>);
// And after version 3.1.
// A packaged method was added.
FGRegistry(ForgeRegistries.OBJECTS, <ID>, <OBJECT>);
// Or you like...
// Use vanilla registry like register on Fabric/Quilt.
Registry.register(BuiltInRegistries.OBJECT, <ID>, <OBJECT>);
// As you know, the vanilla registry doesn't protect data when the mod is disabled.
// ---- Use your own risks. ----
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Compatibility
Minecraft: Java Edition
1.20–1.20.1
1.19.4
Platforms
Forge
Supported environments
Links
Creators
Details
Licensed ARR
Published last year
Updated last year