HeartDev

Disclaimer: This library takes inspiration form the Colorful Hearts mod, from which I used the rendering system to understand the rendering of the hearts, after that a revisited the rendering system to match my needs. Even though there was no collaboration, i respect the license system and therefore i want to credit the amazing job of other developers that let their mod open source and that made this one possible. Here is an insight of the Colorful Hearts:

  • Mod name: Colorful Hearts [-> Link to the MOD]
  • Mod License: MIT license (on 16/06/2025 for 1.21.1)
  • Mod author: Terrails [-> Link to his PROFILE]

----------------------------------------------------------------------------------------------------------------------------

This Library allows developers to easily access the render health bar system, overriding textures and hearts behavours.

It is possible to change the behavior and textures of hearts and the health bar, dynamically and, with a little setup, also simply.
The library provides some effects that can be activated, thus changing the appearance of the hearts, so that you can easily test them.
Finally, textures are provided that can be used for testing or to create your desired heart bar.

 --- The full wiki is available! (Needs a re-check, to know more read heartdev-1.0.5 changelog)

!Wiki error: to know more scroll to the bottom!

|| For any bug or concerns, please post a comment on the CurseForge comments page, describing the bug,    || the Minecraft version and the NeoForge version (if possible). I'll be fixing the bug as soon as possible!!     

|| If you want this library to be available on multiple versions, pls write a comment asking that particular          || verion, since i will probably only update the mod for the main versions availble, by default.

HeartDev Trailer

----------------------------------------------------------------------------------------------------------------------------

-> Wiki error <-

I unfortunatly lost access to the wiki page, so, to keep the project going, i will write here new feture and bug fixes. This mean that i will accumulate changes untill i'll get my wiki access back. Once the problem will be resolved, i will inform you in here. Sorry for the unexpected.


Version heartdev-1.1.3-x

  • setHideEmptyHearts(...): choose whether damaged hearts, those that leave the container completely visible, should disappear or not. This means that if a player has 3 full hearts, only these will be rendered, and the empty container hearts will be invisible.

Vanilla value: false (all hearts are always rendered).

  • setCollapseDifferentLifeTypes(...): Allows different life types to collapse into one rendering health bar. This means that, for instance, the absorption vanilla life type will be rendered right next to the normal red health type. Scenarios were a single heart is filled by 2 different life types are possible.

Vanilla value: false (every life type is separated).

----------------------------------------------------------------------------------------------------------------------------