@minecraft/server
    Preparing search index...

    Interface EntityDamageSourceBeta

    Provides information about how damage has been applied to an entity.

    interface EntityDamageSource {
        cause: EntityDamageCause;
        damagingEntity?: Entity;
        damagingProjectile?: Entity;
    }
    Index

    Properties

    Cause enumeration of damage.

    damagingEntity?: Entity

    Optional entity that caused the damage.

    damagingProjectile?: Entity

    Optional projectile that may have caused damage.