HZLib
Shared multi-loader library for Heria Zone mods — Fabric, Forge, and NeoForge
Issues · What It Provides · Version Support · For Mod Developers
⚠️ In Development HZLib is in active development and has not reached a stable API release. Breaking changes may occur between alpha versions. Not recommended for third-party mods until the API is frozen.
HZLib is the shared foundation that all Heria Zone mods are built on. It provides a loader-agnostic entity framework, variant system, animation profiles, and platform abstractions — written once, working across Forge, NeoForge, and Fabric without duplication.
If you're playing a Heria Zone mod, this is the engine underneath it. It does nothing on its own.
InternalEntityType<T>— base entity type with feature composition, stat configuration, and variant managementInternalEntity— base entity class withfinalizeSpawn()lifecycle hookEntityFeature— composable feature system viawithFeature(Class, Feature)
TextureVariantFeature,ModelVariantFeature,AnimatorVariantFeature— data-driven variant registrationSizeVariantFeaturewithSizeConfig— dynamic hitbox management, per-poseEntityDimensions, stat multipliers, O(1) lookupAnimatorVariantFeaturesupports optionalAnimationProfileper variant
AnimationProfile— named animation slots (idle, walk, rest, sit, ride, attack, hurt) with full builder API and null-safe fallbackAnimationPool,WeightedAnimation,SelectionStrategy(RANDOM, WEIGHTED_RANDOM, SEQUENTIAL),LoopBehaviorAnimationSequence— pull-model exit conditions viaPredicate<LivingEntity>- Pure Java core — zero GeckoLib or Minecraft imports in profile classes
LevelFeature,CombatLevelFeature— entity levelling with attribute scalingLinearAttributeStrategy,ExponentialAttributeStrategy— pluggable scaling curvesProtectionFeature,LevelBasedProtectionStrategy,EnchantmentProtectionCalculator
IPlatformServices— cross-loader abstraction for entity/item/recipe/command registration, config, events, and networking- Service locator pattern (
Services.java) for clean loader-agnostic access
- Math, NBT, validation, and config bounds utilities in the Common module
HZLib ← LovelyLib ← Lovely Robot (Legacy, Tribute, Reboot)
HZLib ← Monsters & Girls
HZLib ← [future Heria Zone mods]
HZLib is the lowest layer. Mod-specific libraries like LovelyLib build on it. Content mods build on those — or directly on HZLib for mods that don't need a mid-layer library.
| Minecraft | Fabric | Forge | NeoForge |
|---|---|---|---|
| 1.21.1 | ✅ | ✅ | ✅ |
| 1.20.1 | Planned | Planned | — |
| 1.19.4 | Planned | Planned | — |
| 1.19.2 | Planned | Planned | — |
| 1.18.2 | Planned | Planned | — |
| 1.17.1 | Planned | Planned | — |
| 1.16.5 | Planned | Planned | — |
| 1.12.2 | — | Planned | — |
| 1.7.10 | — | Planned | — |
Backport priority follows the dependent mods. 1.21.1 is the reference implementation. Backports down to 1.16.5 come first, then 1.12.2 and 1.7.10 as long-term targets.
HZLib is not yet published as a standalone Maven artifact. The API is not frozen — do not build third-party mods against it until a stable release is announced.
Once stable, HZLib will be:
- Extracted to its own GitHub repository
- Published to a public Maven repository
- Documented with developer guides and API references
Follow the Heria Zone Discord or Patreon for updates.
Report bugs or issues via GitHub Issues (hosted in the reboot-lovely-robot repo until HZLib has its own).
© Heria Zone. All Rights Reserved.
Developed by MSymbios / Heria Zone.