samolego / HealthCare

Neat serverside mob health tags.
https://modrinth.com/mod/healthcare
MIT License
8 stars 3 forks source link

Idea: A "skyblock" `HealthBarStyle` #2

Closed James103 closed 3 years ago

James103 commented 3 years ago

Basically, the HealthBarStyle.SKYBLOCK style would format the health portion of the mob as follows:

8/20❤

where the "8" (current HP) would be shown in yellow if the mob is at less than or equal to half health or green otherwise, followed by a white slash, followed by the mob's max health in green, followed by a red heart.

Because HP values in vanilla Minecraft rarely ever exceed 1,000 (and most mobs have 100 HP or less), the current HP can be shown to two decimal places, like this:

8.25/20❤

The above example in full form would be:

Zombie 8.25/20❤

A few more examples:

Horse 25/25❤

Iron Golem 85/100❤

Cod 3/3❤

Wither 298/300❤

samolego commented 3 years ago

Thanks for the suggestion! Doesn't sound too hard to implement :)

James103 commented 3 years ago

A screenshot example of the style that I'm going for with my idea:

image

The mob on the left is the half-health example, while the mob on the right is the full-health example. Pay attention to the health counters; ignore the red coloring of the mob's name and the level counter.

samolego commented 3 years ago

Something like this?

image image

samolego commented 3 years ago

Fixed the slash & heart icon image

James103 commented 3 years ago

That's pretty much exactly what I was looking for.

samolego commented 3 years ago

I guess I can close this then :).

James103 commented 3 years ago

Do you plan on making a release for this soon so that I can test it out?

samolego commented 3 years ago

You can already test it with current sources