Colorful Hearts

Colorful Hearts

12M Downloads

What does it do?

Colorful Hearts is a simple client side mod that replaces vanilla heart renderer which always added more rows when the player had more than 10 hearts.

Instead of vanilla behavior the mod uses colored hearts to represent each row of health. They can be configured in a config file that accepts a list of hex #RRGGBB color values.

Colorful Hearts also adds half heart background textures. This means that if there is only half a heart of absorption, it will not have a black background on the right as if there is something missing. Instead the black bordered background will only cover the left half of the heart icon.

While the mod replicates default vanilla behavior of absorption being rendered a row above health, there is a toggle that instead moves absorption to the same row as health. Absorption icons then start to render in the same way as health (just with their own configured colors).

Resource Packs

Due to user configurable heart colors, textures have to be in layers instead of a single texture like with vanilla hearts. If anyone wants to create a resource pack for this mod there are a few things that have to be known.

  • Hearts are drawn in 3 layers.
  • Heart icon by itself, fully white with little shading. Colored in code.
  • Tiny white dot. Also present in vanilla hearts.
  • Transparent in order to absorb a bit of the color from the first layer.
  • Shading. Darker area present at the bottom of vanilla hearts.
  • Also transparent in order darken the existing color from the first layer.

All textures and a more in-depth explanation of texture files can be checked out on Github.

Sponsor

Akliz Hosting