Overview
LovelyLib is the robot-specific library layer for the Lovely Robot mod family. It sits between HZLib and the three Lovely Robot variants — handling everything that is common to robot companions specifically, so that Legacy, Tribute, and Reboot all share the same foundation without duplicating it.
If you're installing any Lovely Robot mod, you need this.
What It Provides
- Robot type system —
LovelyRobotTypewith composable features (levelling, combat, protection, animation) - Animation Profile System — shared animation profile for all robot types (idle, walk, rest, sit, attack), built on HZLib's profile infrastructure
- Feature composition —
LevelFeature,CombatLevelFeature,ProtectionFeaturewired together per robot type - Robot profile migration — version-aware NBT data migration so saves stay compatible across updates
Who Needs This
This is a library — it does nothing on its own. Install it alongside any Lovely Robot variant.
Required by:
- Lovely Robot: Legacy
- Lovely Robot: Tribute
- Lovely Robot: Reboot
Also requires:
Compatibility
| Minecraft | Fabric | Forge | NeoForge |
|---|---|---|---|
| 1.21.1 | ✅ | ✅ | ✅ |
Links
- Source: GitHub — heria-zone
- Issues: GitHub Issues
Credits
Developed by MSymbios / Heria Zone. Originally inspired by the robot companion framework from lilacx02's Lovely Robot.
How to Install LovelyLib (Mod)
LovelyLib by Unknown is verified for Fabric, Forge, Neoforge across Minecraft versions 1.21.1 (latest release: 1.21.1-1.0.0, file size: 833 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 LovelyLib file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Minecraft 1.21.1**
> ⚠️ **Breaking changes.** Several classes were renamed as part of the ADR_018 ecosystem terminology rename. Any mod built against 0.1.0-alpha must update its imports. See below.
First stable release. Introduces the full NBT data pipeline, complete AI goal set, save migration chain, the Tribute variant with isolated animation profile, config-driven stat system, and the animation missing-wire fix that activates the profile-aware animation path for all robots.
### Breaking: Class Renames (ADR_018)
| Old name | New name |
|---|---|
|
LovelyRobotType | RobotFamilyRegistry ||
NativeEntityType (lovelylib) | RobotFamily ||
LegacyRobotType | LegacyRobotFamilies ||
TributeRobotType | TributeRobotFamilies ||
EntityVariant | RobotVariant ||
InternalAnimation (lovelylib loaders) | RobotAnimation |These renames align with the Family / Variant / Appearance three-tier vocabulary established in HZLib 1.0.0.
Robot* = LovelyLib tier. *Families = registry/collection class. *Family = single family descriptor.### NBT Data Pipeline
Robot entity data is now fully managed through the HZLib
EntityDataSchema / DataField<T> pipeline. All robot NBT fields are declared in RobotFields — the single source of truth. No string literals appear at call sites.RobotFields— typed field handles:**
| Field constant | NBT key | Default | Validation |
|---|---|---|---|
|
LEVEL | Level | 1 | ≥ 1 ||
EXP | Exp | 0 | ≥ 0 ||
MAX_LEVEL | MaxLevel | 0 | ≥ 0 ||
FIRE_PROT | FireProtection | 0 | 0–100 ||
FALL_PROT | FallProtection | 0 | 0–100 ||
BLAST_PROT | BlastProtection | 0 | 0–100 ||
PROJ_PROT | ProjectileProtection | 0 | 0–100 ||
AUTO_ATTACK | AutoAttack | true | — ||
BASE_X/Y/Z | BaseX/Y/Z | 0 | — ||
SITTING | IsInSittingPose | false | — ||
HEALTH | CurrentHealth | 20.0 | > 0 ||
IDLE_STATIONARY_TICKS | IdleStationaryTicks | 0 | ≥ 0 ||
STANDBY_TICKS *(deprecated)* | StandbyTicks | 0 | load-only ||
STANDBY_TARGET_TICKS *(deprecated)* | StandbyTargetTicks | 0 | load-only |IDLE_STATIONARY_TICKS is persisted so the idle animation state (rest vs sit) is restored correctly on world reload without resetting the delay threshold. STANDBY_TICKS and STANDBY_TARGET_TICKS are retained as load-only fields for save compatibility — they are read on migration but never written.- Schema version:**
1.0.0
- Migration chain (three steps, registered in
RobotFamily.configureSchema()):**
MigrationStep_V0_Fabric— Gen1-Fabric locale strings (entity.rlovelyr.bunny) → stable variant keys. Hardcoded lookup table. Must be maintained as append-only.MigrationStep_V0_Forge— Gen1-Forge / Gen2 flat PascalCase format →EntityDatacompound. WritesSchemaVersionandMcVersion.MigrationStep_V1_1204— 1.20.4 flat int-ID format (includingTextureIDinteger → string variant key) →EntityDatacompound.
Each
...
- Minecraft 1.21.1**
> ⚠️ **Breaking changes.** Several classes were renamed as part of the ADR_018 ecosystem terminology rename. Any mod built against 0.1.0-alpha must update its imports. See below.
First stable release. Introduces the full NBT data pipeline, complete AI goal set, save migration chain, the Tribute variant with isolated animation profile, config-driven stat system, and the animation missing-wire fix that activates the profile-aware animation path for all robots.
### Breaking: Class Renames (ADR_018)
| Old name | New name |
|---|---|
|
LovelyRobotType | RobotFamilyRegistry ||
NativeEntityType (lovelylib) | RobotFamily ||
LegacyRobotType | LegacyRobotFamilies ||
TributeRobotType | TributeRobotFamilies ||
EntityVariant | RobotVariant ||
InternalAnimation (lovelylib loaders) | RobotAnimation |These renames align with the Family / Variant / Appearance three-tier vocabulary established in HZLib 1.0.0.
Robot* = LovelyLib tier. *Families = registry/collection class. *Family = single family descriptor.### NBT Data Pipeline
Robot entity data is now fully managed through the HZLib
EntityDataSchema / DataField<T> pipeline. All robot NBT fields are declared in RobotFields — the single source of truth. No string literals appear at call sites.RobotFields— typed field handles:**
| Field constant | NBT key | Default | Validation |
|---|---|---|---|
|
LEVEL | Level | 1 | ≥ 1 ||
EXP | Exp | 0 | ≥ 0 ||
MAX_LEVEL | MaxLevel | 0 | ≥ 0 ||
FIRE_PROT | FireProtection | 0 | 0–100 ||
FALL_PROT | FallProtection | 0 | 0–100 ||
BLAST_PROT | BlastProtection | 0 | 0–100 ||
PROJ_PROT | ProjectileProtection | 0 | 0–100 ||
AUTO_ATTACK | AutoAttack | true | — ||
BASE_X/Y/Z | BaseX/Y/Z | 0 | — ||
SITTING | IsInSittingPose | false | — ||
HEALTH | CurrentHealth | 20.0 | > 0 ||
IDLE_STATIONARY_TICKS | IdleStationaryTicks | 0 | ≥ 0 ||
STANDBY_TICKS *(deprecated)* | StandbyTicks | 0 | load-only ||
STANDBY_TARGET_TICKS *(deprecated)* | StandbyTargetTicks | 0 | load-only |IDLE_STATIONARY_TICKS is persisted so the idle animation state (rest vs sit) is restored correctly on world reload without resetting the delay threshold. STANDBY_TICKS and STANDBY_TARGET_TICKS are retained as load-only fields for save compatibility — they are read on migration but never written.- Schema version:**
1.0.0
- Migration chain (three steps, registered in
RobotFamily.configureSchema()):**
MigrationStep_V0_Fabric— Gen1-Fabric locale strings (entity.rlovelyr.bunny) → stable variant keys. Hardcoded lookup table. Must be maintained as append-only.MigrationStep_V0_Forge— Gen1-Forge / Gen2 flat PascalCase format →EntityDatacompound. WritesSchemaVersionandMcVersion.MigrationStep_V1_1204— 1.20.4 flat int-ID format (includingTextureIDinteger → string variant key) →EntityDatacompound.
Each
...
- Minecraft 1.21.1**
> ⚠️ **Breaking changes.** Several classes were renamed as part of the ADR_018 ecosystem terminology rename. Any mod built against 0.1.0-alpha must update its imports. See below.
First stable release. Introduces the full NBT data pipeline, complete AI goal set, save migration chain, the Tribute variant with isolated animation profile, config-driven stat system, and the animation missing-wire fix that activates the profile-aware animation path for all robots.
### Breaking: Class Renames (ADR_018)
| Old name | New name |
|---|---|
|
LovelyRobotType | RobotFamilyRegistry ||
NativeEntityType (lovelylib) | RobotFamily ||
LegacyRobotType | LegacyRobotFamilies ||
TributeRobotType | TributeRobotFamilies ||
EntityVariant | RobotVariant ||
InternalAnimation (lovelylib loaders) | RobotAnimation |These renames align with the Family / Variant / Appearance three-tier vocabulary established in HZLib 1.0.0.
Robot* = LovelyLib tier. *Families = registry/collection class. *Family = single family descriptor.### NBT Data Pipeline
Robot entity data is now fully managed through the HZLib
EntityDataSchema / DataField<T> pipeline. All robot NBT fields are declared in RobotFields — the single source of truth. No string literals appear at call sites.RobotFields— typed field handles:**
| Field constant | NBT key | Default | Validation |
|---|---|---|---|
|
LEVEL | Level | 1 | ≥ 1 ||
EXP | Exp | 0 | ≥ 0 ||
MAX_LEVEL | MaxLevel | 0 | ≥ 0 ||
FIRE_PROT | FireProtection | 0 | 0–100 ||
FALL_PROT | FallProtection | 0 | 0–100 ||
BLAST_PROT | BlastProtection | 0 | 0–100 ||
PROJ_PROT | ProjectileProtection | 0 | 0–100 ||
AUTO_ATTACK | AutoAttack | true | — ||
BASE_X/Y/Z | BaseX/Y/Z | 0 | — ||
SITTING | IsInSittingPose | false | — ||
HEALTH | CurrentHealth | 20.0 | > 0 ||
IDLE_STATIONARY_TICKS | IdleStationaryTicks | 0 | ≥ 0 ||
STANDBY_TICKS *(deprecated)* | StandbyTicks | 0 | load-only ||
STANDBY_TARGET_TICKS *(deprecated)* | StandbyTargetTicks | 0 | load-only |IDLE_STATIONARY_TICKS is persisted so the idle animation state (rest vs sit) is restored correctly on world reload without resetting the delay threshold. STANDBY_TICKS and STANDBY_TARGET_TICKS are retained as load-only fields for save compatibility — they are read on migration but never written.- Schema version:**
1.0.0
- Migration chain (three steps, registered in
RobotFamily.configureSchema()):**
MigrationStep_V0_Fabric— Gen1-Fabric locale strings (entity.rlovelyr.bunny) → stable variant keys. Hardcoded lookup table. Must be maintained as append-only.MigrationStep_V0_Forge— Gen1-Forge / Gen2 flat PascalCase format →EntityDatacompound. WritesSchemaVersionandMcVersion.MigrationStep_V1_1204— 1.20.4 flat int-ID format (includingTextureIDinteger → string variant key) →EntityDatacompound.
Each
...
- Minecraft 1.21.1**
Initial alpha release. LovelyLib is the robot-specific library layer shared by all Lovely Robot variants.
### Robot Family System
LovelyRobotFamilywith composable feature support (LevelFeature,CombatLevelFeature,ProtectionFeature,AnimationProfile)- Family registration shared across Lovely Legacy, Tribute, and Reboot
### Shared Animation Profile
ROBOT_ANIMATION_PROFILE— unified animation profile for all 7 robot Families covering idle, walk, rest, sit, and attack statesInternalAnimationrewritten across all three loaders to read fromAnimationProfile— no per-loader animation logic duplicationAnimationStateManagerandAnimationDefinitionsremoved (replaced by the profile system)
### Data Persistence
- Robot profile migration system — version-aware NBT data migration for save compatibility across updates
### Notes
- Requires HZLib 0.1.0-alpha or later