Interface in @minecraft/server
What hurt or killed an entity.
import type { EntityDamageSource } from '@minecraft/server';Properties
Section titled “Properties”read-only
readonly cause: EntityDamageCause | string;The cause, an EntityDamageCause value: fall, entity_attack, lava, …
Types
damagingEntity
Section titled “damagingEntity”read-only optional
readonly damagingEntity?: Entity;The player or mob that did it, if one did.
Types
Used by
Section titled “Used by”EntityHurtAfterEvent.damageSource, EntityHurtBeforeEvent.damageSource, PlayerHurtBeforeEvent.damageSource, EntityDieAfterEvent.damageSource, PlayerDieBeforeEvent.damageSource, EntityDieBeforeEvent.damageSource