You are still alive if your max health is 0
The Bug
When your max health is set to 0, you don't die directly. This is caused by MC-16345.
Additionally, when you take damage, you die twice. This is MC-19690.
How to Reproduce
- /attribute @s minecraft:generic.max_health base set 0
→
You are still alive, with one heart - Take damage and die
- Click respawn
→
You are resurrected at the same location as you died, now with half a heart (MC-19690) - Die again
→
You now respawn properly
Observed Behavior
Players remain alive when their "minecraft:generic.max_health" attribute is set to "0".
Expected Behavior
Players would die and not remain alive when their "minecraft:generic.max_health" attribute is set to "0".