mojira.dev
MC-183423

max_health attribute sets value but doesn't update health

The command I've used isΒ /attribute @p minecraft:generic.max_health base set <value>

This command does update the max_health attribute but it does not update the player's health such that it matches the specified max. In other words, I'm able to have a health of 20 while having a max health of 5. Damage is required to update your health value to the correct value. All regeneration heals up to the max_health value.

Linked issues

Comments 2

Finnegan O'Donnell

That's because it's MAX health, not Health, they are two different things, Max Health is an attribute, Health is an NBT tag.

Arisa Bot

Thank you for your report!
We're tracking this issue in MC-180001, 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 in Discord or Reddit

Lizzy Givens

(Unassigned)

Unconfirmed

(Unassigned)

20w19a

Retrieved