@minecraft/server
    Preparing search index...

    Class BlockComponentPlayerPlaceBeforeEventBeta

    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 block face that was placed onto.

    permutationToPlace: BlockPermutation

    The block permutation that will be placed if the event is not cancelled. If set to a different block permutation, that permutation will be placed instead.

    player?: Player

    The player that is placing this block.