If you set your max health to 1 with the attribute command, your current health is only lowered to 2 (a full heart) while your max health is set to 1 (a half heart). If you take half a heart of damage from falling 4 blocks, you will be at half a heart and will not regenerate to a full heart. The next part might be a different bug: if you apply poison to yourself after setting your max health to 1, you are shown the death screen but you don't "die." Your health displays as half a heart, you do not drop any items even if keepInventory is off, and clicking respawn only removes the death screen and does not do anything else it normally does when respawning. For instance, it doesn't set your health back to normal and it doesn't teleport back to your spawn point.
Steps to reproduce (Note: for the second part, you have to type /kill before doing steps 2-4):
Create a new survival world with cheats enabled
Run this command: /attribute @s minecraft:generic.max_health base set 1
Your health will be at 2 (a full heart)
(The second part) Run this command: /effect give @s minecraft:poison 1 3
(After examining the death screen) Click the "Respawn" button
Linked issues
duplicates 1
Attachments
Comments 2


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.
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