Entity damage source

Is there a way to get the source of entity damage if the entity has been hit off a block and takes falling damage? so for example a player hits a creeper the player is a source of the damage.

Currently falling damage cause looks like this : Cause[{Name=Source, Object={DamageSource{Name=fall, Type=fall}}}]

Depends, for fall damage the game tracks some hits, but not others. Otherwise Sponge might need to, or a plugin might need to implement something like Overcast network / PGN’s Tracker for SportBukkit.

1 Like

Okay brilliant, I’ll take a look at the tracker. Thanks

Optionally, we could write an API to expose the CombatTracker that Minecraft already keeps track of.

3 Likes