The EntityApplyDamageOptions interface in @minecraft/server.
Interface in @minecraft/server
import type { EntityApplyDamageOptions } from '@minecraft/server';Properties
Section titled “Properties”cause: EntityDamageCause;Types
damagingEntity
Section titled “damagingEntity”optional
damagingEntity?: Entity;Types