[SPIGOT-321] EntityDamageEvent not working for item entities Created: 30/Dec/14  Updated: 06/Jan/15  Resolved: 06/Jan/15

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

Type: Bug Priority: Major
Reporter: möhre Assignee: md_5
Resolution: Fixed Votes: 0
Labels: Craftbukkit, cactus, event
Environment:

git-Spigot-9b45d9f-6b061e2



 Description   

Problem:
EntityDamageEvent and EntityDamageByBlockEvent don't trigger when item entities / dropped items get damaged, for example by cactus.

It seems there is just a craftbukkit event handler for that in the LivingEntity class, but EntityItem doesn't trigger that event (or any own event to handle this)

Reproduce:
Watch events and drop some stuff on cactus.

Possible Solution:
Call CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f) in net.minecraft.server.EntityItem.damageEntity method, as already used in some other non-living entity classes (ArmorStand or ItemFrame).



 Comments   
Comment by Paul Sauve [ 06/Jan/15 ]

In the latest, I'm having this issue with EnderCrystals.

Comment by SpigotMC [ 30/Dec/14 ]

Your build is not the latest and therefore may be the reason you are having this issue. Spigot is 15 version(s) behind. CraftBukkit is 38 version(s) behind. This message was automatically generated and is not guaranteed to be a solution to your issue.

Generated at Sat Dec 13 15:19:20 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.