Mojira Archive
MC-195660

Arrow behavior inconsistency: damage:0.0d arrows hit mobs but not players

Arrows with the nbt damage:0.0d hit mobs while they bounce off of players.

Expected behaviour:

The arrows would hit both players and mobs, even if they do no damage.

Actual behaviour:

The arrow bounces off of the player but is able to hit the mob, still not dealing any damage.

Steps to reproduce

  1. Place a repeating command block with the following command:
    /execute as @e[type=arrow] run data modify entity @s damage set value 0
  1. Shoot a mob
    The mob gets hit but doesn't lose any health
  2. Now shoot a player or get your own arrow to hit you
     It will bounce off of the player

Unresolved

sofia

user-16d15

2020-07-21, 11:02 AM

2024-12-08, 10:30 AM

3

4

Confirmed

(Unassigned)

NBT, arrow, damage, inconsistency, mob, player

20w29a - 1.21.420w29a, 20w30a, 1.17.1, 24w39a, 1.21.3, 1.21.4

-