Overview
HZLib is the shared library powering Heria Zone's mod ecosystem. It provides the loader-agnostic foundation that all Heria Zone mods are built on — so that common logic is written once, maintained once, and works across Forge, NeoForge, and Fabric without duplication.
If you're playing a Heria Zone mod, this is the engine underneath it.
What It Provides
- Multi-loader architecture — one codebase, three loaders. Forge, NeoForge, and Fabric are all first-class targets.
- Entity framework — base entity types with feature composition, stat configuration, and variant management
- Animation Profile System — data-driven animation definitions shared across all entity types
- Variant system — texture, model, size, and animation variants with clean registration
- Level and protection features — attribute scaling, combat level progression, enchantment integration
- Platform services — registration, config, events, and networking abstracted per loader
Who Needs This
This mod is a library — it does nothing on its own. You only need it if another mod requires it.
Required by:
- Lovely Robot (Legacy, Tribute, Reboot)
- Monsters & Girls
- LovelyLib
Compatibility
| Minecraft | Fabric | Forge | NeoForge |
|---|---|---|---|
| 1.21.1 | ✅ | ✅ | ✅ |
Links
- Source: GitHub — heria-zone
- Issues: GitHub Issues
Credits
Developed by MSymbios / Heria Zone.
How to Install HZLib (Mod)
HZLib by Unknown is verified for Fabric, Forge, Neoforge across Minecraft versions 1.21.1 (latest release: 1.21.1-1.0.0, file size: 320 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.1) and platform (Fabric, Forge, Neoforge).
- Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge.
- Move the downloaded HZLib file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Minecraft 1.21.1**
> ⚠️ **Breaking changes.** This release renames the core API classes across the entire framework. Any mod built against 0.1.0-alpha must update its imports. See the rename table below.
First stable release. Establishes the canonical **Family / Variant / Appearance** three-tier terminology across HZLib, adds the full NBT data pipeline, declarative bone visibility, and idle slot animation system.
### Breaking: API Rename (ADR_018)
The
Internal* prefix has been removed from all public API classes. Every name now reflects its tier and role directly.| Old name | New name |
|---|---|
|
InternalEntity | NativeEntity ||
InternalEntityType<T> | NativeEntityFamily<T> ||
InternalLogic | EntityLogic ||
InternalParticle | EntityParticles ||
InternalLayerRenderer<T> (Common) | LayerRenderPipeline<T> ||
InternalAnimation (Fabric / Forge / NeoForge) | NativeAnimation ||
InternalModel<T> (Fabric / Forge / NeoForge) | NativeModel<T> ||
InternalLayerRenderer<T> (Fabric / Forge / NeoForge) | NativeRenderer<T> |- Why**:
Internalhad accumulated three unrelated meanings — entity base class, family descriptor, GeckoLib integration layer, and utility helpers. The new names encode both tier (Native*= HZLib root layer) and role (*Family= family descriptor,*Pipeline= render coordinator) so a class's responsibility is readable from its name alone.
- Not yet renamed** (deferred to a future release):
IInternalRenderLayer— render layer interfacenativeEntityfield onNativeEntity— field rename is a higher blast-radius operation
### New: NBT Data Pipeline (ADR_019)
A version-agnostic, type-safe entity data pipeline. All HZLib pipeline code now operates on
DataCompound — a pure-Java wrapper — never directly on MC-native tag types. This is what makes HZLib backportable to 1.12.2 and 1.7.10 without rewriting the save/load layer.DataCompound** — pure-Java version-agnostic NBT wrapper interface. The only point of contact with the MC NBT API is the adapter implementation, which lives in the version-specific source set.NbtAdapterFactory** — registration point for the MC-version-specificDataCompoundimplementation. Registered once at mod init.CompoundTagDataCompound** — the 1.21.1CompoundTagimplementation ofDataCompound.DataType<T>** —INT,FLOAT,BOOLEAN,STRING,UUID. UUID handling is version-safe — the adapter selects the correct storage strategy per MC version automatically.DataField<T>** — typed field handles. The NBT string key is encapsulated inside the handle — zero string literals at call sites. A typo in a field reference is a compile error, not a silent default value.EntityDataSchema** — declares the ordered set ofDataField<?>handles that define an entity family's saved data. Write and read go through the schema — no field names appear in save/load methods.MigrationStep/ `Migration
- Minecraft 1.21.1**
> ⚠️ **Breaking changes.** This release renames the core API classes across the entire framework. Any mod built against 0.1.0-alpha must update its imports. See the rename table below.
First stable release. Establishes the canonical **Family / Variant / Appearance** three-tier terminology across HZLib, adds the full NBT data pipeline, declarative bone visibility, and idle slot animation system.
### Breaking: API Rename (ADR_018)
The
Internal* prefix has been removed from all public API classes. Every name now reflects its tier and role directly.| Old name | New name |
|---|---|
|
InternalEntity | NativeEntity ||
InternalEntityType<T> | NativeEntityFamily<T> ||
InternalLogic | EntityLogic ||
InternalParticle | EntityParticles ||
InternalLayerRenderer<T> (Common) | LayerRenderPipeline<T> ||
InternalAnimation (Fabric / Forge / NeoForge) | NativeAnimation ||
InternalModel<T> (Fabric / Forge / NeoForge) | NativeModel<T> ||
InternalLayerRenderer<T> (Fabric / Forge / NeoForge) | NativeRenderer<T> |- Why**:
Internalhad accumulated three unrelated meanings — entity base class, family descriptor, GeckoLib integration layer, and utility helpers. The new names encode both tier (Native*= HZLib root layer) and role (*Family= family descriptor,*Pipeline= render coordinator) so a class's responsibility is readable from its name alone.
- Not yet renamed** (deferred to a future release):
IInternalRenderLayer— render layer interfacenativeEntityfield onNativeEntity— field rename is a higher blast-radius operation
### New: NBT Data Pipeline (ADR_019)
A version-agnostic, type-safe entity data pipeline. All HZLib pipeline code now operates on
DataCompound — a pure-Java wrapper — never directly on MC-native tag types. This is what makes HZLib backportable to 1.12.2 and 1.7.10 without rewriting the save/load layer.DataCompound** — pure-Java version-agnostic NBT wrapper interface. The only point of contact with the MC NBT API is the adapter implementation, which lives in the version-specific source set.NbtAdapterFactory** — registration point for the MC-version-specificDataCompoundimplementation. Registered once at mod init.CompoundTagDataCompound** — the 1.21.1CompoundTagimplementation ofDataCompound.DataType<T>** —INT,FLOAT,BOOLEAN,STRING,UUID. UUID handling is version-safe — the adapter selects the correct storage strategy per MC version automatically.DataField<T>** — typed field handles. The NBT string key is encapsulated inside the handle — zero string literals at call sites. A typo in a field reference is a compile error, not a silent default value.EntityDataSchema** — declares the ordered set ofDataField<?>handles that define an entity family's saved data. Write and read go through the schema — no field names appear in save/load methods.MigrationStep/ `Migration
- Minecraft 1.21.1**
> ⚠️ **Breaking changes.** This release renames the core API classes across the entire framework. Any mod built against 0.1.0-alpha must update its imports. See the rename table below.
First stable release. Establishes the canonical **Family / Variant / Appearance** three-tier terminology across HZLib, adds the full NBT data pipeline, declarative bone visibility, and idle slot animation system.
### Breaking: API Rename (ADR_018)
The
Internal* prefix has been removed from all public API classes. Every name now reflects its tier and role directly.| Old name | New name |
|---|---|
|
InternalEntity | NativeEntity ||
InternalEntityType<T> | NativeEntityFamily<T> ||
InternalLogic | EntityLogic ||
InternalParticle | EntityParticles ||
InternalLayerRenderer<T> (Common) | LayerRenderPipeline<T> ||
InternalAnimation (Fabric / Forge / NeoForge) | NativeAnimation ||
InternalModel<T> (Fabric / Forge / NeoForge) | NativeModel<T> ||
InternalLayerRenderer<T> (Fabric / Forge / NeoForge) | NativeRenderer<T> |- Why**:
Internalhad accumulated three unrelated meanings — entity base class, family descriptor, GeckoLib integration layer, and utility helpers. The new names encode both tier (Native*= HZLib root layer) and role (*Family= family descriptor,*Pipeline= render coordinator) so a class's responsibility is readable from its name alone.
- Not yet renamed** (deferred to a future release):
IInternalRenderLayer— render layer interfacenativeEntityfield onNativeEntity— field rename is a higher blast-radius operation
### New: NBT Data Pipeline (ADR_019)
A version-agnostic, type-safe entity data pipeline. All HZLib pipeline code now operates on
DataCompound — a pure-Java wrapper — never directly on MC-native tag types. This is what makes HZLib backportable to 1.12.2 and 1.7.10 without rewriting the save/load layer.DataCompound** — pure-Java version-agnostic NBT wrapper interface. The only point of contact with the MC NBT API is the adapter implementation, which lives in the version-specific source set.NbtAdapterFactory** — registration point for the MC-version-specificDataCompoundimplementation. Registered once at mod init.CompoundTagDataCompound** — the 1.21.1CompoundTagimplementation ofDataCompound.DataType<T>** —INT,FLOAT,BOOLEAN,STRING,UUID. UUID handling is version-safe — the adapter selects the correct storage strategy per MC version automatically.DataField<T>** — typed field handles. The NBT string key is encapsulated inside the handle — zero string literals at call sites. A typo in a field reference is a compile error, not a silent default value.EntityDataSchema** — declares the ordered set ofDataField<?>handles that define an entity family's saved data. Write and read go through the schema — no field names appear in save/load methods.MigrationStep/ `Migration
- Minecraft 1.21.1**
Initial alpha release. This is the first public build of HZLib — the shared library foundation for all Heria Zone mods.
### Entity Framework
NativeEntityType<T>— base entity type with feature composition, stat configuration, and variant managementNativeEntity— base entity class withfinalizeSpawn()lifecycle hook andinitializeSpawnVariants()EntityFeaturebase class with feature composition viawithFeature(Class, Feature)
### Variant System
TextureVariantFeature,ModelVariantFeature,AnimatorVariantFeature— data-driven variant registrationSizeVariantFeaturewithSizeConfig— dynamic hitbox management, per-poseEntityDimensions, stat multipliers, O(1) lookupAnimatorVariantFeaturesupports optionalAnimationProfileper variant (backward compatible)
### Animation Profile System
AnimationPool,WeightedAnimation,SelectionStrategy(RANDOM, WEIGHTED_RANDOM, SEQUENTIAL),LoopBehaviorAnimationProfilewith full builder API — named slots (idle, walk, rest, sit, ride, attack, hurt), null-safe fallback viagetAnimationForState()AnimationSequence,SequenceStep,SequenceState— pull-model exit conditions viaPredicate<LivingEntity>ISpecialAnimationmarker interface- Zero GeckoLib/Minecraft imports in core profile classes — pure Java
### Progression and Combat Features
LevelFeature,CombatLevelFeature— entity levelling with attribute scalingLinearAttributeStrategy,ExponentialAttributeStrategy— pluggable scaling curvesProtectionFeature,LevelBasedProtectionStrategy,EnchantmentProtectionCalculator— damage type resistance with enchantment integration
### Platform Services
IPlatformServices— cross-loader abstraction for creative tabs, entity/item/recipe/command registration, config, and networking- Service locator pattern (
Services.java) for clean loader-agnostic access
### Utilities
- Math, NBT, validation, and config bounds utilities in the Common module
- Minecraft 1.21.1**
Initial alpha release. This is the first public build of HZLib — the shared library foundation for all Heria Zone mods.
### Entity Framework
NativeEntityType<T>— base entity type with feature composition, stat configuration, and variant managementNativeEntity— base entity class withfinalizeSpawn()lifecycle hook andinitializeSpawnVariants()EntityFeaturebase class with feature composition viawithFeature(Class, Feature)
### Variant System
TextureVariantFeature,ModelVariantFeature,AnimatorVariantFeature— data-driven variant registrationSizeVariantFeaturewithSizeConfig— dynamic hitbox management, per-poseEntityDimensions, stat multipliers, O(1) lookupAnimatorVariantFeaturesupports optionalAnimationProfileper variant (backward compatible)
### Animation Profile System
AnimationPool,WeightedAnimation,SelectionStrategy(RANDOM, WEIGHTED_RANDOM, SEQUENTIAL),LoopBehaviorAnimationProfilewith full builder API — named slots (idle, walk, rest, sit, ride, attack, hurt), null-safe fallback viagetAnimationForState()AnimationSequence,SequenceStep,SequenceState— pull-model exit conditions viaPredicate<LivingEntity>ISpecialAnimationmarker interface- Zero GeckoLib/Minecraft imports in core profile classes — pure Java
### Progression and Combat Features
LevelFeature,CombatLevelFeature— entity levelling with attribute scalingLinearAttributeStrategy,ExponentialAttributeStrategy— pluggable scaling curvesProtectionFeature,LevelBasedProtectionStrategy,EnchantmentProtectionCalculator— damage type resistance with enchantment integration
### Platform Services
IPlatformServices— cross-loader abstraction for creative tabs, entity/item/recipe/command registration, config, and networking- Service locator pattern (
Services.java) for clean loader-agnostic access
### Utilities
- Math, NBT, validation, and config bounds utilities in the Common module
- Minecraft 1.21.1**
Initial alpha release. This is the first public build of HZLib — the shared library foundation for all Heria Zone mods.
### Entity Framework
NativeEntityType<T>— base entity type with feature composition, stat configuration, and variant managementNativeEntity— base entity class withfinalizeSpawn()lifecycle hook andinitializeSpawnVariants()EntityFeaturebase class with feature composition viawithFeature(Class, Feature)
### Variant System
TextureVariantFeature,ModelVariantFeature,AnimatorVariantFeature— data-driven variant registrationSizeVariantFeaturewithSizeConfig— dynamic hitbox management, per-poseEntityDimensions, stat multipliers, O(1) lookupAnimatorVariantFeaturesupports optionalAnimationProfileper variant (backward compatible)
### Animation Profile System
AnimationPool,WeightedAnimation,SelectionStrategy(RANDOM, WEIGHTED_RANDOM, SEQUENTIAL),LoopBehaviorAnimationProfilewith full builder API — named slots (idle, walk, rest, sit, ride, attack, hurt), null-safe fallback viagetAnimationForState()AnimationSequence,SequenceStep,SequenceState— pull-model exit conditions viaPredicate<LivingEntity>ISpecialAnimationmarker interface- Zero GeckoLib/Minecraft imports in core profile classes — pure Java
### Progression and Combat Features
LevelFeature,CombatLevelFeature— entity levelling with attribute scalingLinearAttributeStrategy,ExponentialAttributeStrategy— pluggable scaling curvesProtectionFeature,LevelBasedProtectionStrategy,EnchantmentProtectionCalculator— damage type resistance with enchantment integration
### Platform Services
IPlatformServices— cross-loader abstraction for creative tabs, entity/item/recipe/command registration, config, and networking- Service locator pattern (
Services.java) for clean loader-agnostic access
### Utilities
- Math, NBT, validation, and config bounds utilities in the Common module