The BlockEvent class in @minecraft/server.
Class in @minecraft/server
Extended by BlockComponentBlockBreakEvent, BlockComponentBlockStateChangeEvent, BlockComponentEntityEvent, BlockComponentEntityFallOnEvent, BlockComponentOnPlaceEvent, BlockComponentPlayerBreakEvent, BlockComponentPlayerInteractEvent, BlockComponentPlayerPlaceBeforeEvent, BlockComponentRandomTickEvent, BlockComponentRedstoneUpdateEvent, BlockComponentStepOffEvent, BlockComponentStepOnEvent, BlockComponentTickEvent, BlockContainerClosedAfterEvent, BlockContainerOpenedAfterEvent, PlayerCancelBreakingBlockAfterEvent, PlayerStartBreakingBlockAfterEvent
import { BlockEvent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”read-only
readonly block: Block;Types
dimension
Section titled “dimension”read-only
readonly dimension: Dimension;Types