@minecraft/server
    Preparing search index...

    Class EntityHurtBeforeEventBeta

    Contains information related to an entity that will be hurt.

    Index

    Properties

    cancel: boolean
    damage: number

    Describes the amount of damage that will be caused.

    damageSource: EntityDamageSource

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

    hurtEntity: Entity

    Entity that will be hurt.