MoonlightCore 26.1.2.5-beta
Curse Maven Snippet
What's new
MoonlightCore 26.1.2.5-beta
Fixes
- Fixed events not being all invoked on fabric
- Fixed valid configurations requests task not being completed (only caused problems on fabric apparently???), preventing world load
Fluid Registration API
The previous version Fluid Registration API was BAD, I had already noticed that when I made the first version but IDK why I even released it. HOWEVER, here is the new (still experimental) fluid registration api.
Common
FluidRegistrar
A registrar for fluids, moving from the Platform#registerFluid methods to its own interface. Fluids need their properties, attribute handler, tag and behavior. Example:
TagKey<Fluid> TAG = TagKey.create(Registries.FLUID, Identifier.parse("moonlightcore:slime"));
FluidRegistrar.init("examplemod",registrar -> {
registrar.register(
"slime",
TAG,
FluidProperties.DEFAULT,
FluidAttributesHandler.DEFAULT,
FluidBehavior.WATER_LIKE
);
});
FluidBehavior
FluidBehavior handles how the entity interacts with the fluid, how the entity will move, if it can swim, drown, supports boats, sprinting, etc. Anyways, not everyone will have some hyper mega advanced fluid physics applied to the entities so there is a builder for simple fluids :p
FluidAttributesHandler
Handle some properties that are used on Neoforge and on Fabric:
- Display name and it's color
- Bucket fill/empty sound
- Fall distance modifier
- Light emission level
- Temperature
- Viscosity
Client
FluidRendererRegistrar
A registrar for fluids rendering, used to register fluid models and FluidRenderHandlers
FluidRenderHandler
Handles the tooltip used with the tooltip and the color of the fluid
This mod has no additional files

