All Mods Resource Packs Data Packs Shaders Modpacks Plugins
HZLib

HZLib

by Unknown • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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


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:

  1. Click the Download button above and select your Minecraft version (1.21.1) and platform (Fabric, Forge, Neoforge).
  2. Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge.
  3. Move the downloaded HZLib file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.1
Neoforge
5mo ago 1
1.21.1
Forge
5mo ago 1
1.21.1
Fabric
5mo ago 1
1.21.1
Neoforge
5mo ago 1
1.21.1
Forge
5mo ago 1
1.21.1
Fabric
5mo ago 1
## 1.0.0 — 2026-07-04

  • 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**: Internal had 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 interface
  • nativeEntity field on NativeEntity — 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-specific DataCompound implementation. Registered once at mod init.
  • CompoundTagDataCompound** — the 1.21.1 CompoundTag implementation of DataCompound.
  • 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 of DataField<?> 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
...
## 1.0.0 — 2026-07-04

  • 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**: Internal had 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 interface
  • nativeEntity field on NativeEntity — 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-specific DataCompound implementation. Registered once at mod init.
  • CompoundTagDataCompound** — the 1.21.1 CompoundTag implementation of DataCompound.
  • 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 of DataField<?> 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
...
## 1.0.0 — 2026-07-04

  • 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**: Internal had 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 interface
  • nativeEntity field on NativeEntity — 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-specific DataCompound implementation. Registered once at mod init.
  • CompoundTagDataCompound** — the 1.21.1 CompoundTag implementation of DataCompound.
  • 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 of DataField<?> 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
...
## 0.1.0-alpha — 2026-06-24

  • 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 management
  • NativeEntity — base entity class with finalizeSpawn() lifecycle hook and initializeSpawnVariants()
  • EntityFeature base class with feature composition via withFeature(Class, Feature)

### Variant System
  • TextureVariantFeature, ModelVariantFeature, AnimatorVariantFeature — data-driven variant registration
  • SizeVariantFeature with SizeConfig — dynamic hitbox management, per-pose EntityDimensions, stat multipliers, O(1) lookup
  • AnimatorVariantFeature supports optional AnimationProfile per variant (backward compatible)

### Animation Profile System
  • AnimationPool, WeightedAnimation, SelectionStrategy (RANDOM, WEIGHTED_RANDOM, SEQUENTIAL), LoopBehavior
  • AnimationProfile with full builder API — named slots (idle, walk, rest, sit, ride, attack, hurt), null-safe fallback via getAnimationForState()
  • AnimationSequence, SequenceStep, SequenceState — pull-model exit conditions via Predicate<LivingEntity>
  • ISpecialAnimation marker interface
  • Zero GeckoLib/Minecraft imports in core profile classes — pure Java

### Progression and Combat Features
  • LevelFeature, CombatLevelFeature — entity levelling with attribute scaling
  • LinearAttributeStrategy, ExponentialAttributeStrategy — pluggable scaling curves
  • ProtectionFeature, 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
## 0.1.0-alpha — 2026-06-24

  • 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 management
  • NativeEntity — base entity class with finalizeSpawn() lifecycle hook and initializeSpawnVariants()
  • EntityFeature base class with feature composition via withFeature(Class, Feature)

### Variant System
  • TextureVariantFeature, ModelVariantFeature, AnimatorVariantFeature — data-driven variant registration
  • SizeVariantFeature with SizeConfig — dynamic hitbox management, per-pose EntityDimensions, stat multipliers, O(1) lookup
  • AnimatorVariantFeature supports optional AnimationProfile per variant (backward compatible)

### Animation Profile System
  • AnimationPool, WeightedAnimation, SelectionStrategy (RANDOM, WEIGHTED_RANDOM, SEQUENTIAL), LoopBehavior
  • AnimationProfile with full builder API — named slots (idle, walk, rest, sit, ride, attack, hurt), null-safe fallback via getAnimationForState()
  • AnimationSequence, SequenceStep, SequenceState — pull-model exit conditions via Predicate<LivingEntity>
  • ISpecialAnimation marker interface
  • Zero GeckoLib/Minecraft imports in core profile classes — pure Java

### Progression and Combat Features
  • LevelFeature, CombatLevelFeature — entity levelling with attribute scaling
  • LinearAttributeStrategy, ExponentialAttributeStrategy — pluggable scaling curves
  • ProtectionFeature, 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
## 0.1.0-alpha — 2026-06-24

  • 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 management
  • NativeEntity — base entity class with finalizeSpawn() lifecycle hook and initializeSpawnVariants()
  • EntityFeature base class with feature composition via withFeature(Class, Feature)

### Variant System
  • TextureVariantFeature, ModelVariantFeature, AnimatorVariantFeature — data-driven variant registration
  • SizeVariantFeature with SizeConfig — dynamic hitbox management, per-pose EntityDimensions, stat multipliers, O(1) lookup
  • AnimatorVariantFeature supports optional AnimationProfile per variant (backward compatible)

### Animation Profile System
  • AnimationPool, WeightedAnimation, SelectionStrategy (RANDOM, WEIGHTED_RANDOM, SEQUENTIAL), LoopBehavior
  • AnimationProfile with full builder API — named slots (idle, walk, rest, sit, ride, attack, hurt), null-safe fallback via getAnimationForState()
  • AnimationSequence, SequenceStep, SequenceState — pull-model exit conditions via Predicate<LivingEntity>
  • ISpecialAnimation marker interface
  • Zero GeckoLib/Minecraft imports in core profile classes — pure Java

### Progression and Combat Features
  • LevelFeature, CombatLevelFeature — entity levelling with attribute scaling
  • LinearAttributeStrategy, ExponentialAttributeStrategy — pluggable scaling curves
  • ProtectionFeature, 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
HZLib Icon
Download HZLib
Select game version
Select platform