@minecraft/server
    Preparing search index...

    Class PlayerPlaceBlockBeforeEventBeta

    Contains information regarding an event before a player places a block.

    Hierarchy (View Summary)

    Index

    Properties

    block: Block

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

    cancel: boolean

    If set to true, cancels the block place event.

    dimension: Dimension

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

    face: Direction

    The face of the block that the new block is being placed on.

    faceLocation: Vector3

    Location relative to the bottom north-west corner of the block where the new block is being placed onto.

    permutationBeingPlaced: BlockPermutation

    The block permutation that is being placed.

    player: Player

    Player that is placing the block for this event.