Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-182791

You are still alive if your max health is 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 20w19a, 1.17, 1.17.1, 21w42a, 1.18.2, 22w15a, 1.19, 1.19.1 Pre-release 1, 1.19.2, 1.19.4, 23w16a, 1.20.1, 1.20.4
    • None
    • Confirmed
    • Data Packs, Player
    • Normal
    • Platform

      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

      1. /attribute @s minecraft:generic.max_health base set 0
        You are still alive, with one heart
      2. Take damage and die
      3. Click respawn
        You are resurrected at the same location as you died, now with half a heart (MC-19690)
      4. 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".

            Unassigned Unassigned
            OhnoOsiel Angel Ponce
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: