The Bug:
Arrows with no shooters bounce off squids and glow squids despite damaging them.
When an arrow damages a mob, the arrow is removed. However, when an arrow with no shooter, such as one fired by a dispenser, damages a squid or a glow squid, it bounces back off it instead, therefore introducing an inconsistency.
Steps to Reproduce:
Summon a squid that can't move by using the command provided below.
/summon minecraft:squid ~ ~ ~4 {NoAI:1b}Summon an arrow with no shooter flying toward the squid by using the command provided below.
/summon minecraft:arrow ~ ~0.4 ~1 {Motion:[0.0d,0.0d,1.5d]}Observe if the arrow is removed after damaging the squid.
Observed Behavior:
The squid takes damage, but the arrow bounces back off it instead of being removed.
Expected Behavior:
The arrow would be removed after damaging the squid, just like with other mobs.