mojira.dev
MC-200102

Last half heart is not showing in ridden mob's health bar

Summary:
Mobs with an odd amount of health show 1 half heart less when riding them (e.g. small slime (does not show health at all), rabbit, tropical fish).

Steps to reproduce:

  1. Summon a mob with an odd amount of health (like a rabbit).

/ride @s mount @e[type=minecraft:rabbit, limit=1]
/data get entity @e[type=minecraft:rabbit, limit=1] Health

Check how much health a mob has.

Observed results:
When riding a mob with an odd amount of health, it shows half a heart less than the mob actually has.

Expected results:
When riding a mob with an odd amount of health, the mob will show the correct amount of health.

Screenshots:

[media]

Linked issues

Attachments

Comments 4

I tried doing /summon horse ~ ~ ~ {Health:23} and it displayed 12 full hearts and a further 14 empty heart icons. I can't tell if this is the same issue or something entirely different.

Well, I can rename the issue so all horse's health issues go here. But I don't know if should I do that.

Can confirm in 20w51a.

Can confirm in 21w03a.

ItsTinay

(Unassigned)

Confirmed

Mob behaviour, UI

1.16.3, 1.16.4, 20w51a, 21w03a, 21w08a, 21w11a, 21w15a, 23w03a, 1.20.4, 1.21

Retrieved