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

    Class EntityHurtAfterEvent

    Contains information related to an entity getting hurt.

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

    Constructors

    Properties

    Constructors

    Properties

    damage: number

    Describes the amount of damage 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 was hurt.

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