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

Heart jittering effect doesn't take absorption into account

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 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
    • Fix Version/s: 1.17 Pre-release 1
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      UI

      Description

      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 [Helper] j_p_smith

      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 [Mod] Bemoty can be found in this comment.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              CHK: