Mojira Archive
MC-272757

Wolves refrain from targeting entities that the owner attacks with a projectile, excluding arrows and wind charges

Referring to MC-142890, tamed wolves/dogs exhibit anticipated behavior by attacking mobs when attacked with arrows or wind charges. However, when the owner throwns a trident, snowball, egg, or ender pearl, or shoots fireworks at them, the wolves still refrain from attacking.

Steps to reproduce

  1. Tame a wolf
  2. Spawn a mob
  3. Throw a trident at it
  4. Throw a snowball at it
  5. Throw an egg at it
  6. Throw an ender pearl at it
  7. give @p crossbow[charged_projectiles=[{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"small_ball"}]}}}]] 1
  8. Shoot the firework at it using a crossbow

Observed outcome: The dog refrains from attacking the mob. However, throwing a wind charge or shooting an arrow causes the wolf to attack the mob as anticipated.
Expected outcome: The dog should also attack the mob when the owner throws tridents, snowballs, eggs, ender pearls, or shoots fireworks at it.

Invalid

No User

The grandpa of minecraft

2024-05-30, 09:40 PM

2024-06-22, 10:43 AM

2024-06-22, 10:43 AM

0

0

Unconfirmed

(Unassigned)

1.20.6, 1.21 Pre-Release 1

-