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

Crossbow piercing arrow damage is randomized every time it passes through a mob

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.14, 1.16.3 Release Candidate 1, 1.16.3, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Items

      Description

      The damage from a Piercing arrow is randomized every time it passes through a mob, instead of remaining the same after being shot from the crossbow.

      To reproduce

      • Obtain a Piercing IV crossbow
      • Summon 5 or less 20-health mobs (e.g. creepers) lined up with {NoAI:1b}
      • Shoot the crossbow so that the arrow hits all of the mobs
      • Repeat several times

      As shown in this video, some mobs will die after taking two hits, while others take three; the mobs that die change every time this is repeated. The remaining health of the mobs that survive two hits also changes every time, usually between 1-4 HP. This could make advancements such as "Two Birds, One Arrow" and "Arbalistic" trickier to get, since the mobs could take a different number of hits to kill despite starting out with the same health and being damaged by the same arrow.

      Code analysis

      Crossbow arrows shot by players always do critical damage; the random critical damage bonus is calculated on every hit instead of once when the arrow is spawned.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Sonicwave [Mod] Sonicwave
            Votes:
            8 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: