mojira.dev
MC-304809

The killed_by_arrow trigger can't detect ender dragons as victims

Steps to Reproduce:
- Spawn Ender Dragon and four other mobs
- Kill all five mobs with one piercing 4 crossbow arrow shot

Expected Result: Arbalistic is given

Actual Result: Arbalistic is not given

Linked issues

Comments 2

Can confirm, but deleted upload since it showed a modded game.

To reproduce

  1. Fly into an open area in creative mode

  2. /summon [mob] ~ ~ ~ {Health:1,NoAI:1b} 4 times, each time with a different mob type, so that they are all in a line

  3. Fly a short distance past the end of the line

  4. /tick freeze

  5. /summon ender_dragon ~ ~ ~ {Health:1}

  6. /tick step

  7. /data modify entity @n[type=minecraft:ender_dragon] NoAI set value 1b

  8. /give @s crossbow[enchantments={"piercing":4},charged_projectiles=[{id:"arrow"}]]

  9. Kill all 5 mobs with the same arrow from the crossbow

Arbalistic checks for 5 unique mobs, so make sure to test with that instead of 4 cows and 1 ender dragon

Elag422

(Unassigned)

Confirmed

Platform

Normal

Advancements

1.21.10, 26.2, 26.3 Snapshot 8

Retrieved