mojira.dev
MC-219150

Display bug when having an odd max health and absorption effect

First set the max health to an odd number by

/attribute @p minecraft:generic.max_health base set 23

Then give the absorption effect

/effect give @p minecraft:absorption 100000 2

The result is right: (12 hearts with 23 hp + 12 absorption)

[media]

 

But after taking a damage of 1 (half heart), there is a display bug:

[media]

Actual: 11 hearts with 22 hp + 11 absorption

Expected: 12 hearts with 23 hp + 11 absorption

 

If taking another damage, the heart will come back

(12 hearts with 23 hp + 10 absorption)

[media]

 

Attachments

Comments 3

Also confirmed in 1.16.1~1.16.4, when attribute command is available.

Can confirm for 21w10a

Thank you for your report!
We're tracking this issue in MC-203420, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

djytw

(Unassigned)

Unconfirmed

(Unassigned)

command, gui

1.16.5, 21w10a, 21w16a

Retrieved