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

    Class ProjectileHitBlockAfterEvent

    Contains information related to a projectile hitting a block.

    export class ProjectileHitBlockAfterEvent {
    private constructor();
    readonly dimension: Dimension;
    readonly hitVector: Vector3;
    readonly location: Vector3;
    readonly projectile: Entity;
    readonly source?: Entity;
    getBlockHit(): BlockHitInformation;
    }
    Index

    Constructors

    Properties

    dimension: Dimension

    Dimension where this projectile hit took place.

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

    hitVector: Vector3

    Direction vector of the projectile as it hit a block.

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

    location: Vector3

    Location where the projectile hit occurred.

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

    projectile: Entity

    Entity for the projectile that hit a block.

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

    source?: Entity

    Optional source entity that fired the projectile.

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

    Methods