on entity_damage_by_entityorg.bukkit.event.entity.EntityDamageByEntityEventEntity1.0.0
Description
Fires when an entity takes damage from another entity.
Variables
entityEntity
NullableNo
The entity that took damage
damagerEntity
NullableNo
The entity that dealt the damage
damagerPlayerPlayer
NullableYes
The player who dealt the damage, or null if the damager is not a player
damagedouble
NullableNo
The amount of damage dealt
itemItemStack
NullableYes
The weapon the damager used, or null if the damager is not a player or has an empty hand
Examples
on entity_damage_by_entity: