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