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