[SPIGOT-6861] Spigot has no way to detect if an Arrow entity dies Created: 22/Dec/21  Updated: 21/Feb/24  Resolved: 21/Feb/24

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Henry Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Version: 1.17.1
Guidelines Read: Yes

 Description   

There are no methods to detect if an Arrow entity dies in Spigot. EntityDeathEvent does not fire for arrow deaths.

 

An arrow can be killed, for example, by: /minecraft:kill @e[type=minecraft:arrow]

 

If I'm not mistaken, no events are fired when an arrow is killed in a manner like this.



 Comments   
Comment by Henry [ 22/Dec/21 ]

@Black Hole, could you list what entities don't have a death event? Item frame has HangingBreakByEntityEvent, boats & minecarts have VehicleDestroyEvent, etc.

Comment by Black Hole [ 22/Dec/21 ]

EntityDeathEvent is called for living entities only. So there are many entity types besides arrows where no event is called.

Generated at Tue Apr 22 04:30:17 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.