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

    Class EntityHitBlockAfterEvent

    Contains information related to an entity hitting a block.

    export class EntityHitBlockAfterEvent {
    private constructor();
    readonly blockFace: Direction;
    readonly damagingEntity: Entity;
    readonly hitBlock: Block;
    readonly hitBlockPermutation: BlockPermutation;
    }
    Index

    Constructors

    Properties

    blockFace: Direction

    Face of the block that was hit.

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

    damagingEntity: Entity

    Entity that made the attack.

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

    hitBlock: Block

    Block that was hit by the attack.

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

    hitBlockPermutation: BlockPermutation

    Block permutation that was hit by the attack.

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