Script API - v1.26.10
    Preparing search index...

    Class EntityHurtBeforeEvent

    Contains information related to an entity that will be hurt.

    export class EntityHurtBeforeEvent {
    private constructor();
    cancel: boolean;
    damage: number;
    readonly damageSource: EntityDamageSource;
    readonly hurtEntity: Entity;
    }
    Index

    Constructors

    Properties

    cancel: boolean
    damage: number

    Describes the amount of damage that will be caused.

    This property can't be read in early-execution mode.

    damageSource: EntityDamageSource

    Source information on the entity that may have applied this damage.

    This property can't be read in early-execution mode.

    hurtEntity: Entity

    Entity that will be hurt.

    This property can't be read in early-execution mode.