RegistryLib
RegistryLib is a fluent registration library for NeoForge that consolidates item, block, fluid, block entity, and datagen registration into a single builder chain.
REGISTRYLIB.item("copper_coin", Item::new)
.lang("Copper Coin")
.defaultModel()
.addDefaultTab()
.register();
One chain. One place. Everything registered.
Why RegistryLib?
| Without RegistryLib | With RegistryLib |
|---|---|
Separate DeferredRegister calls for each registry | One RegistryCore entry point |
Manual DataProvider registration for lang, models, loot, tags | Datagen integrated into the builder chain |
| Scattered boilerplate across multiple classes | Everything in one fluent chain |
| Easy to forget a step (missing model, lang, creative tab— | Builder guides you through all common configuration |
Pick Your Path
I'm new to RegistryLib
Start with the beginner tutorials —they'll get you from zero to a working item in 5 minutes:
- Installation & Setup —Add the dependency and create your
RegistryCore - Your First Item —Register a simple item
- Your First Block —Register a block with a BlockItem
- Understanding the Chain —How the fluent API works
I know the basics, show me more
Jump into intermediate tutorials for real-world patterns:
- Group System —Share defaults across entries
- Tooltip System —Multi-section tooltips
- Multi-Language Support —Add extra locales
- Recipes and Tags —Datagen integration
I need to do something specific
How-to guides are task-focused references:
I need API details
Reference pages provide lookup tables and method signatures:
- API Overview —Entry points and builder families
- Entry Types —What you get back from
.register() - Builder Methods —Complete method reference
Project Info
| Version | 1.0.4 |
| Minecraft | 26.1+ (NeoForge 26.1) |
| Java | 25 |
| Source | RegistryLib |
| Organization | GregTech-Odyssey |