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

Heart jittering effect doesn't take absorption into account

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.17 Pre-release 1
    • Minecraft 1.9.1 Pre-Release 3, Minecraft 1.10.2, Minecraft 16w42a, Minecraft 16w43a, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w07c, Minecraft 1.13.1, 1.16.1, 20w46a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b, 21w11a
    • None
    • Confirmed
    • UI

      The bug

      The check to see if the player's hearts should shake only takes into account the actual health bar, not any health granted by the absorption status effect.

      Steps to Reproduce by Darth Cobby

      1. Ensure you are in survival or adventure mode:
        /gamemode survival
      2. Disable natural regeneration:
        /gamerule naturalRegeneration false
      3. Damage yourself by running the following command three times:
        /effect give @s instant_damage

        Your health bar begins to shake

      4. Give yourself the absorption status effect:
        /effect give @s absorption

        Your health bar continues to shake, despite your total health being greater than 4

      Code analysis

      Code analysis by bemoty can be found in this comment.

        1. 2016-03-17_23.09.36.png
          147 kB
          KingSupernova
        2. MC-99680.mp4
          7.67 MB
          [Mod] Avoma

            Unassigned Unassigned
            KingSupernova KingSupernova
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: