mojira.dev
MC-313399

Arrows with no shooters bounce off squids and glow squids despite damaging them

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:

  1. Summon a squid that can't move by using the command provided below.

    /summon minecraft:squid ~ ~ ~4 {NoAI:1b}
  2. 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]}
  3. 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.

Attachments

Comments 1

Avoma

(Unassigned)

Unconfirmed

Entities

26.3, 26.4 Snapshot 10

Retrieved