Skip to content

types.player_attack_entity_event ​

Called when when the player attacks an entity

Properties ​

NameDescription
entitytype: userdata The entity being attacked (Minecraft's Java Entity object)
combatEntitytype: userdata The opponent owning a server-provided hitbox copy, otherwise the attacked entity
typetype: string The attack type ("pre" or "post")