Closed James103 closed 3 years ago
Thanks for the suggestion! Doesn't sound too hard to implement :)
A screenshot example of the style that I'm going for with my idea:
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.
Something like this?
Fixed the slash & heart icon
That's pretty much exactly what I was looking for.
I guess I can close this then :).
Do you plan on making a release for this soon so that I can test it out?
You can already test it with current sources
Basically, the
HealthBarStyle.SKYBLOCK
style would format the health portion of the mob as follows: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:
The above example in full form would be:
A few more examples: