@minecraft/server
    Preparing search index...

    Interface EntityApplyDamageOptionsBeta

    Additional descriptions and metadata for a damage event.

    interface EntityApplyDamageOptions {
        cause: EntityDamageCause;
        damagingEntity?: Entity;
    }
    Index

    Properties

    Underlying cause of the damage.

    damagingEntity?: Entity

    Optional entity that caused the damage.