https://github.com/team-enderio/regilite
Registration and Data Generation Utility for NeoForge.
https://github.com/team-enderio/regilite
data-generation minecraft minecraft-mod minecraft-neoforge
Last synced: 2 months ago
JSON representation
Registration and Data Generation Utility for NeoForge.
- Host: GitHub
- URL: https://github.com/team-enderio/regilite
- Owner: Team-EnderIO
- License: lgpl-3.0
- Created: 2023-12-26T16:56:00.000Z (over 1 year ago)
- Default Branch: dev/1.21.1
- Last Pushed: 2024-09-30T16:53:40.000Z (9 months ago)
- Last Synced: 2025-03-24T19:39:25.339Z (3 months ago)
- Topics: data-generation, minecraft, minecraft-mod, minecraft-neoforge
- Language: Java
- Homepage:
- Size: 317 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Regilite
A lightweight library helping with registration and data generation.> Note this Usage guide is now outdated. It will be updated at some point, but the best way to get started is to look at the code :)
## Usage
This library provides helper functions and wrappers around for various Holders and registries. To be able to use
Regilite, you firstly create and register a `Regilite`-object. This object will do the actual registring data to events
and doing DataGen.Below you can find a list of Holder objects Regilite supports. You can see not every Holder has a Regilite alternative,
and this is intentional. We've only provided our wrappers when the Holder could benefit from it in our eyes.### RegiliteBlock
Besides the block itself, there are also functions to automatically register the following:
- Loot tables
- Blockstates and model
- Block color (tint)
- Block Tags
- Translation
- Block item
- See `Items`### RegiliteItem
Besides the item itself, there are also functions to automatically register the following:
- Item model
- Item color (tint)
- Item Tags
- Creative tabs
- Translation
- Capabilities### RegiliteFluid
Besides the fluid(type) itself, there are also functions to automatically register the following:
- Flowing fluid
- Source fluid
- Fluid tag
- Translation
- Liquid block
- See `Block`
- Bucket Item
- See `Item`### RegiliteBlockEntity
Besides the block entity(type) itself, it automatically registers the following:- Block entity renderer
- Block entity tags
- Capabilities### RegiliteEntity
Besides the entity(type) itself, it automatically registers the following:- Entity model
- Entity tags
- Translation
- Capabilities (TODO)
- Model layer (TODO)### RegiliteMenu
Besides the menu(type) itself, it automatically registers the following:- Screen factory
- Translation (TODO)### Translations
We provide automatic translations for holders where the `ResourceLocation` gives enough context. This can always
be changed using the `setTranslation` method.For other translations, the `Regilite`-object provides methods for registering a translation. In case a translation is
added multiple times, only the last one will be used.