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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.14, 1.16.3 Release Candidate 1, 1.16.3, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b, 1.17, 1.17.1, 1.18.1, 1.20.1
    • None
    • Confirmed
    • Items

      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.

        1. MC-150215.mp4
          5.69 MB
        2. MC-150215.png
          MC-150215.png
          1.20 MB

            Unassigned Unassigned
            Sonicwave [Mod] Sonicwave
            Votes:
            11 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: