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

Fake death screen when using hp altering items

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Minecraft 1.14.2
    • None
    • None
    • Windows 10 64bit, Java 1.8.0_51 64bit, Minecraft 1.14.2
    • Unconfirmed
    • (Unassigned)

    Description

      When you have an item which modifies your max hp (at least by 20) and you switch to another item while fully regenerated, next damage will make death screen show up. You are not actually dead, no death message shows up, just the death screen. Your player body will be stuck in death animation (even in the inventory window). You can still take damage and die for real. If you click respawn, death screen closes and you normally continue.

      Steps to replicate:

      1. Give yourself a max health altering item, e.g.
        /give @p minecraft:stone{AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20,Operation:0,UUIDLeast:978024,UUIDMost:531064}]} 1
        

        It has to add at least 20 hp (one line), otherwise it won't work. If it adds more than 20 hp, it is not necessary to regenerate further than 20 hp.

      1. Select the item in hotbar and regenerate above 40 hp (two lines of hearts).
      2. Select another item in hotbar.
      3. Let yourself be hit by a mob - I tested it with skeletons (arrows), zombies, spiders, creepers, anvils. Fall damage doesn't show the death screen up but still instantly gets rid of your additional hp. It needs more testing for more damage types.
      4. Death screen will show up and item added hp (above normal hp - 20+ hp) will be instantly lost (even if the damage was much smaller). Your body will be stuck in death animation (also in inventory). You can still take damage and knockback.
      5. After clicking "Respawn", death screen will disappear and everything works normally, except of your body being stuck in death animation.

      I tested it on a new void world and it worked every single time. It is fixed after relog.

      Attachments

        1. dead in inventory.png
          183 kB
          Vector
        2. fake death screen.png
          285 kB
          Vector
        3. stuck in the death animation.png
          246 kB
          Vector

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Vector_SVK Vector
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: