mojira.dev
MC-18845

Scoreboard "Health" out of sync (rounds down)

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

Attachments

Comments

kumasasa

Confirmed.
See also MC-17571

Nathan Adams

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

kumasasa

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

Donald Granger

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.

crazyman

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.

Donald Granger

Nathan Adams

Confirmed

health, healthboost, scoreboard, sync

Snapshot 13w25c, Snapshot 13w26a

Minecraft 1.6

Retrieved