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

    Class TargetBlockHitAfterEvent

    Contains information related to changes to a target block hit.

    export class TargetBlockHitAfterEvent extends BlockEvent {
    private constructor();
    readonly hitVector: Vector3;
    readonly previousRedstonePower: number;
    readonly redstonePower: number;
    readonly source: Entity;
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    block: Block

    Block currently in the world at the location of this event.

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

    dimension: Dimension

    Dimension that contains the block that is the subject of this event.

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

    hitVector: Vector3

    The position where the source hit the block.

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

    previousRedstonePower: number

    The redstone power before the block is hit.

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

    redstonePower: number

    The redstone power at the time the block is hit.

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

    source: Entity

    Optional source that hit the target block.

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