The BlockComponentPlayerPlaceBeforeEvent class in @minecraft/server.
Class in @minecraft/server
Extends BlockEvent
import { BlockComponentPlayerPlaceBeforeEvent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”cancel
Section titled “cancel”cancel: boolean;read-only
readonly face: Direction;Types
permutationToPlace
Section titled “permutationToPlace”permutationToPlace: BlockPermutation;Types
player
Section titled “player”read-only optional
readonly player?: Player;Types
Used by
Section titled “Used by”BlockCustomComponent.beforeOnPlayerPlace
Inherited
Section titled “Inherited”From BlockEvent: block, dimension