Forge yourself

Forge yourself

Mod

Allows you use vanilla registry in Forge like Fabric!

Client and server Library

446 downloads
3 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

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. ----

Project members

MBYL-InkAndSoul

Owner

Details

Licensed ARR
Published a year ago
Updated a year ago