mojira.dev
MC-196591

Abnormal behavior related to the generic.max_health attribute

After reducing the attribute generic.max_health of a player, the player's HP will not be capped automatically until taking damage. If the value of generic.max_health is lower than half of the original HP, "client-side fake death" will happen.

Steps to reproduce:

1. Reset the player's state

/attribute @s minecraft:generic.max_health base set 20
/effect give @s minecraft:instant_health 1 3

2. Modify the attribute

/attribute @s minecraft:generic.max_health base set 6

3. Check current HP

/data get entity @s Health

    The result is 20, not 6

4. Take any damage
    For example, step onto a magma block. After taking damage, the player's HP will be 5 and the "You Died" UI will pop up.

Linked issues

Comments 2

galaxy_2alex

Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-180001, which is a report that has not been resolved yet.

If you want, you can upvote the parent ticket, and enable watching to receive any updates about it - if you believe you have any information that may be important for this issue, please leave a comment on the parent. Please also use the search function in the future to prevent duplicate reports.

Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord

Arisa Bot

Thank you for your report!
We're tracking this issue in MC-16345, 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! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

Yui

(Unassigned)

Unconfirmed

(Unassigned)

1.16.1, 1.16.2 Pre-release 1

Retrieved