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

Entities' health is capped at their base max health upon reload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Minecraft 1.6, Minecraft 1.8
    • Snapshot 13w24b, Snapshot 13w25a, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w42b, Minecraft 13w43a, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 1.7.5, Minecraft 14w10c, Minecraft 1.9.2, Minecraft 1.9.3 Pre-Release 1, Minecraft 1.10.2, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.1, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13b, Minecraft 17w15a, Minecraft 17w16b, Minecraft 17w17a, Minecraft 17w18b, Minecraft 1.12 Pre-Release 2, Minecraft 1.12.2, Minecraft 18w20c, Minecraft 1.13-pre6, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w08b, Minecraft 19w09a, 1.14.4, 19w34a, 19w35a, 19w45b, 1.15.2, 20w14a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Release Candidate 1, 1.16.2, 20w46a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b, 21w11a, 21w15a, 1.17, 1.17.1, 21w39a, 1.18.2, 1.19, 1.19.2, 23w03a, 23w18a, 1.20.1, 23w31a, 23w32a, 23w33a, 1.20.4, 24w13a, 24w19b, 24w20a, 1.21 Pre-Release 4, 1.21
    • Confirmed
    • Survival
    • Commands, Player
    • Normal
    • Platform

      The bug

      When I give myself extra max health with an attribute, then gain health, log out and log back in there are empty hearts but not the health.

      Steps to Reproduce:

      • Give yourself a diamond sword that grants double health and hold it in your main hand.
      • /give @s diamond_sword[attribute_modifiers={modifiers:[{type:"generic.max_health",amount:20.0,slot:mainhand,id:"extra_max_hp_from_sword",operation:add_value}]}]
      • Give yourself some regeneration.
      • /effect give @s minecraft:regeneration 3 3 false
      • Take note of the health you currently have.
      • Reload into the world and once again, take note of the health that you now have.

      Observed Behavior:
      Additional health granted with items that have attributes is lost upon reloading the world.

      Expected Behavior:
      Additional health granted with items that have attributes would not be lost upon reloading the world.

        1. MC-17876.mp4
          7.68 MB
        2. MC-17876.png
          MC-17876.png
          1.26 MB

            Unassigned Unassigned
            downunderit Pete Frisky
            Votes:
            36 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              CHK: