mojira.dev
MC-305933

Extra added hearths can't be taken

Steps to reduce:

  1. Enter /attribute <Player> minecraft:max_health base set 100000000000000000000000000000000000000000000

  2. Enter /attribute <Player> minecraft:max_absoruption base set 100000000000000000000000000000000000000000000,

  3. Give <Player> Absoruption, regeneraiton and health boost

  4. Switch to survival gamemode

  5. You now have a ton of hearts

  6. Take the effects off with /effect clear <Player>

  7. Set <Player>'s max_absoruption to 0.0 and max_health value to 2.0

Expected Result: <Player> will have just 10 hearts

Actual Result <Player>'s doen’t go back to 10

Comments 4

I wasn’t able to reproduce this in 1.21.11
One thing I noticed with this report is that at the end it says set the max health value to 2.0. Max health is measured in half hearts. Setting it to 2.0, as described, gives a result of 1 heart, not 10. This is the expected result.
Assuming you made a typo, I tried the same steps but set max_health back to 20.0 at the end instead, and in that case the player’s health returned to 10 hearts as expected.

If I am misunderstanding the report please let me know.

Hi!
Thank you for your report!
However, this issue is Invalid.
Your report does not describe a bug.

Quick Links
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki 

kyleisNOTmyname

I wanted to say 20.0

Even with entering 20 I still could not reproduce the issue you described. I recommend attaching a video if you fully believe it is a bug.

MeteMinecraft

(Unassigned)

Unconfirmed

(Unassigned)

1.21.11

Retrieved