mojira.dev
MC-233017

Frozen, poison, wither, and hardcore hearts are displayed as normal red hearts on the tab list

The Bug:

Frozen, poison, wither, and hardcore hearts are displayed as normal red hearts on the tab list.

This issue can only be seen with frozen, poison, wither, and hardcore hearts. Absorption hearts and normal red hearts are displayed correctly on the tab list. This may be considered as a feature request but since absorption hearts are displayed correctly on the tab list, I'd expect the same behavior for all of the other heart textures.

Steps to Reproduce:

  1. Create a scoreboard objective for tracking your health and set it to display on the tab list by using the commands provided below. 

    /scoreboard objectives add health health
    /scoreboard objectives setdisplay list health
  2. Give yourself the poison effect by using the command provided below.

    /effect give @s minecraft:poison
  3. Hit TAB and look at your health on the tab list.

  4. Take note as to whether or not frozen, poison, wither, and hardcore hearts are displayed as normal red hearts on the tab list.

Observed Behavior:

Frozen, poison, wither, and hardcore hearts are displayed as normal red hearts on the tab list.

Expected Behavior:

Frozen, poison, wither, and hardcore hearts would not be displayed as normal red hearts on the tab list. Instead, they should be displayed accordingly. For example, if you are poisoned, poison hearts would be displayed on the tab list.

Attachments

Comments 2

This is an issue that have bad effect on players' gaming experience, however it's a scoreboard that is used to record players' health number value, rather than a thing to tracks the players' all states.
So it's difficult to fix unless a new command is added to show players' health states, since scoreboard is only used to store numbers.
Absorption hearts are also displayed INcorrectly if the max health is less than or more than 20. Because it just mechanically displays values greater than 20 in yellow, even when the score objective doesn't use the "health" criterion.

Confirmed, but agreed with the above.
The objective gets the amount of health, that's all it tracks. The health objective just has displaytype set to hearts by default. (Setting a dummy objective to hearts should not have different hearts show)
I'd rather call the absorption hearts the issue.

Avoma

(Unassigned)

Community Consensus

UI

1.17.1, 21w37a, 1.18.1, 1.19, 1.19.2, ..., 1.20.1, 1.21, 1.21.4, 1.21.7, 1.21.8

Retrieved