Was messing around with the new effects on a server, and after quite a bit of randomly playing with, adjusting my max health and eating golden apples, I caused my health indicated on the scoreboard to fall out of sync with the displayed number of hearts in game.
The scoreboard created was /scoreboard objectives add CurHP health Health
Used the /effect Vandesdelca32 21 9999 19
to give myself 100 health.
Note the screenshot health says -1, when it should say 0 for a dead player.
Linked issues
relates to
testing discovered
Attachments
Comments


Can't reproduce. Please provide some instructions for me to try.

Steps to reproduce:
Issue
/effect dinnerbone 21 300 2
(don't know if important, was playing around with the effects)Eat a golden apple (enchanted)
Run into a cactus and wait
I can confirm that it does infact happen in the latest snapshot, and following those steps exactly can cause the scoreboard to fall out of sync with the player's actual health.
I think "Health" uses "HealF" called tag, not "Heath". Health is health shown in HUD, and HealF is real health of the player, like Health tag is 9, but HealF is 8.9657923 or so 😃 That is my theory why health rounds down in scoreboard.
Confirmed.
See also MC-17571