mojira.dev
MC-2930

Heart bar doesn't show how much damage is dealt to the player

In versions prior to the singleplayer/multiplayer merge (before 1.3), the heart bar would briefly flash faint hearts depending on how many of them were lost when taking damage. This is gone since version 1.3, with no mention in the change logs. Here's a video comparison of the health bar between 1.2.5 and 1.4.2.

What I expected to happen was...
Blinking faint bright hearts showing how much health I had before taking damage. If I had 10 hearts, and I took 2 hearts of damage, I'd expect those 2 hearts to blink briefly before dissapearing completely.

What actually happened was...
No sign of how much hearts were lost. The hearts completely dissappear just after taking any damage.

Note:
This is not about regeneration, which works as expected. User Vincent Lee has found a relevant part of the code related to the bug.

Steps to reproduce:
1. Load a world on survival mode.
2. Take damage from any source.
3. Observe the heart bar. It should flash the hearts that were lost, but it does not.

Linked issues

Attachments

Comments 27

It actually flashes on the 2nd picture

Based on your screenshots, I fail to see the problem here.

I'm uploading a video right now, but internet is slow at the moment. Expect a link in an hour or two.

Added example/comparison video.
I noticed YouTube messed up a little up with the video's "lighting", shouldn't be a problem though.

It looks the same in 1.4.2 you are gaining health from your food, I see no problem.

17 more comments

I cannot confirm if this is still in 14w31a. I can't see the heart bar fast enough.

Whatever Mojang tried in 14w32a/b does not work fully.

Test case:
Setup cactus. Hug cactus and stay there.
Expected outcome: Only the lost half heart increments flash each time.
Real outcome: All hearts lost from the cactus hug flash.
If you hug the cactus for ~10 secs about 5 of the hearts will flash.

This is incorrect as it does not show that 0.5 heart of damage was taken each time.

Please check and reopen.

Devs: Look at how it worked in 1.2.5. Replicate that.

That's part of the improvements. Did you watch the video demonstrating the new behavior?

I can see why it was done that way, because you are still receiving damage, this allows you to easily see how much damage you have received just before stopping the damage. For instance, if you are underwater with 9 hearts, if you start drowning you can clearly see you started with 9 and lost 3.

However, "saturation" hearts are the only heath that do not have these transition icons, and food points have the textures but they never worked in the first place.

Daniel Garcia

Nathan Adams

Confirmed

GUI

Minecraft 1.4.2, Minecraft 1.4.4, Minecraft 1.4.7, Minecraft 1.5, Minecraft 1.6.2, ..., Minecraft 14w21a, Minecraft 14w21b, Minecraft 1.7.10, Minecraft 14w29a, Minecraft 14w29b

Minecraft 14w32a

Retrieved