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

Shields do not block damage while the player faces straight up

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w40a
    • Minecraft 16w41a, Minecraft 16w42a, Minecraft 1.12.2, Minecraft 1.13-pre1, Minecraft 1.13.2, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 1.14, 1.15.2, 1.16 Pre-release 1, 1.16.1, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.3, 1.16.4 Release Candidate 1, 1.16.4, 20w46a, 20w51a, 21w06a, 21w08b, 21w15a, 1.17, 1.17.1, 21w42a, 1.18, 1.19.1 Release Candidate 2, 1.19.2, 1.19.3, 1.19.4 Release Candidate 2, 1.19.4, 1.20 Release Candidate 1, 1.20, 23w35a, 1.20.2 Release Candidate 1, 1.20.2 Release Candidate 2, 23w40a
    • Confirmed
    • Combat, Player
    • Normal
    • Gameplay

      The bug

      The shield does not block attacks when the player faces straight up, even if the enemy is above the player.

      How to reproduce

      1. Ensure you are in Survival or Adventure mode
      2. Hold a shield:
        /item replace entity @s weapon with shield
        
      3. Face directly upwards
      4. Summon an arrow directly above you:
        /summon arrow ~ ~20 ~
        
      5. Attempt to block the arrow with the shield
        The shield does not block the arrow

      Code analysis and fix

      Code analysis by Maity can be found in this comment.

            timurn [Mojang] Timur Nazarov
            gaspoweredpick [Helper] gaspoweredpick
            Votes:
            22 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: