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

Player's max health attribute resets back to 20 upon death

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 20w17a, 20w18a, 20w19a, 20w20b, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w28a, 20w29a, 1.16.2, 20w46a, 20w51a, 21w03a, 1.16.5, 21w06a, 21w08b, 21w15a, 21w16a, 1.17, 1.17.1
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      Commands
    • Mojang Priority:
      Low

      Description

      The Bug

      When you modify your max health attribute and then die, your max health resets back.

      How to reproduce

      1. Set your max health to something other than 20
        /attribute @s generic.max_health base set 10
      1. Kill yourself
        /kill @s
      1. Respawn
      2. Check your max health
        /attribute @s generic.max_health base get

        It says 20 when it should match the max health value

        Attachments

        1. MC-179940.mp4
          3.52 MB
        2. MC-179940.png
          MC-179940.png
          1.01 MB
        3. MC-179940-1.png
          MC-179940-1.png
          206 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              DuJello Jello
              Votes:
              41 Vote for this issue
              Watchers:
              23 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: