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

Reducing maxHealth can cause fake death

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 13w39b, Minecraft 14w20b, Minecraft 1.7.10, Minecraft 14w30c, Minecraft 14w31a, Minecraft 14w33c, Minecraft 14w34a, Minecraft 14w34b, Minecraft 14w34c, Minecraft 14w34d, Minecraft 1.8-pre1, Minecraft 1.8-pre2, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 15w44b, Minecraft 15w46a, Minecraft 1.8.9, Minecraft 16w02a, Minecraft 16w03a, Minecraft 16w06a, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w15b, Minecraft 1.10.2, Minecraft 16w41a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, 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, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w05a, Minecraft 18w15a, Minecraft 1.13-pre7, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 1.14.1, 1.14.4, 19w42a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
      Steps to reproduce:

      1. Prepare 2 hotbar slots. One of them should have an item which makes you have N health and the other one - 2N (or more) health. For example, you can have a slot with any item (20 health/10 hearts) and a slot with an item from the next command (40 health/20 hearts):
        /give @p dirt{AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}
        
      2. Choose the slot with 2N health and heal up (you can use the next command)
        /effect give @p minecraft:instant_health 1 3
      3. Choose the slot with N health.
      4. Update your health. These things can trigger the bug:
        • Instant health effect
        • Instant damage effect
        • Poison effect
        • Suffocation
        • Drowning
        • Starvation (Hunger)
        • Hitting a wall with elytra

        Attachments

        1. 2013-06-28_20.52.50.png
          2013-06-28_20.52.50.png
          576 kB
        2. 2013-06-28_21.29.51.png
          2013-06-28_21.29.51.png
          677 kB
        3. 2013-06-28_21.29.52_2.png
          2013-06-28_21.29.52_2.png
          739 kB
        4. 2013-06-28_21.29.52.png
          2013-06-28_21.29.52.png
          676 kB
        5. 2013-06-28_21.30.50.png
          2013-06-28_21.30.50.png
          337 kB
        6. 2016-04-01_16.05.10.png
          2016-04-01_16.05.10.png
          429 kB
        7. 2016-04-01_16.05.21.png
          2016-04-01_16.05.21.png
          284 kB
        8. 2016-04-01_16.05.27.png
          2016-04-01_16.05.27.png
          285 kB
        9. 2016-04-01_16.05.32.png
          2016-04-01_16.05.32.png
          277 kB
        10. 2016-04-01_16.05.34.png
          2016-04-01_16.05.34.png
          277 kB
        11. 2016-04-01_16.06.05.png
          2016-04-01_16.06.05.png
          395 kB
        12. 2016-04-01_16.07.50.png
          2016-04-01_16.07.50.png
          437 kB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Squirtdude Daniel Goodman
              • Votes:
                50 Vote for this issue
                Watchers:
                25 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: