Appearance
types.player_attack_entity_event
Called when when the player attacks an entity
Properties
| Name | Description |
|---|---|
entity | type: userdata The entity being attacked (Minecraft's Java Entity object) |
combatEntity | type: userdata The opponent owning a server-provided hitbox copy, otherwise the attacked entity |
type | type: string The attack type ("pre" or "post") |
