The EntityHurtAfterEventOptions interface in @minecraft/server.
Interface in @minecraft/server
import type { EntityHurtAfterEventOptions } from '@minecraft/server';Properties
Section titled “Properties”allowedDamageCauses
Section titled “allowedDamageCauses”optional
allowedDamageCauses?: EntityDamageCause[];Types
entities
Section titled “entities”optional
entities?: Entity[];Types
entityFilter
Section titled “entityFilter”optional
entityFilter?: EntityFilter;Types
entityTypes
Section titled “entityTypes”optional
entityTypes?: string[];