mojira.dev
MC-208951

Regeneration beyond 20 while you have Health Boost doesn't work

I was working with commands, and when I used this command: /execute as @a if data entity @s Inventory[{Slot:9b, id:"minecraft:redstone",Count:1b}] run effect give @s health_boost 1 1 true I would see the empty hearts appear (the hearts that appear when you have less health than your maximum) but I would immediately take damage and could not achieve a health higher than the normal 20. The command is supposed to give you health boost 2 when you have 1 redstone dust in slot 9b. I think this issue is linked to the attribute generic.max.health because if you change that attribute to say 6, then the same thing happens but this time you cannot regenerate your health past 6. The regeneration is coming from full hunger, and not the mob effect.

To reproduce this:

  1. place a repeating command block set to always active

  2. use the command above in bold

  3. put one redstone dust in slot 9b

  4. make sure you have full hunger.

Linked issues

Comments 2

Oh yeah, while discovering this bug, I found out that you taking damage while trying to regenerate your health beyond the default maximum still happens even if you are in creative mode.

Thank you for your report!
We're tracking this issue in MC-25088, 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
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit

Jeremy Wallace

(Unassigned)

Unconfirmed

(Unassigned)

1.16.4

Retrieved