The BlockCustomComponent interface in @minecraft/server.
Interface in @minecraft/server
import type { BlockCustomComponent } from '@minecraft/server';Properties
Section titled “Properties”beforeOnPlayerPlace
Section titled “beforeOnPlayerPlace”optional
beforeOnPlayerPlace?: (arg0: BlockComponentPlayerPlaceBeforeEvent, arg1: CustomComponentParameters) => void;onBlockStateChange
Section titled “onBlockStateChange”optional
onBlockStateChange?: (arg0: BlockComponentBlockStateChangeEvent, arg1: CustomComponentParameters) => void;onBreak
Section titled “onBreak”optional
onBreak?: (arg0: BlockComponentBlockBreakEvent, arg1: CustomComponentParameters) => void;onEntity
Section titled “onEntity”optional
onEntity?: (arg0: BlockComponentEntityEvent, arg1: CustomComponentParameters) => void;onEntityFallOn
Section titled “onEntityFallOn”optional
onEntityFallOn?: (arg0: BlockComponentEntityFallOnEvent, arg1: CustomComponentParameters) => void;onPlace
Section titled “onPlace”optional
onPlace?: (arg0: BlockComponentOnPlaceEvent, arg1: CustomComponentParameters) => void;onPlayerBreak
Section titled “onPlayerBreak”optional
onPlayerBreak?: (arg0: BlockComponentPlayerBreakEvent, arg1: CustomComponentParameters) => void;onPlayerInteract
Section titled “onPlayerInteract”optional
onPlayerInteract?: (arg0: BlockComponentPlayerInteractEvent, arg1: CustomComponentParameters) => void;onRandomTick
Section titled “onRandomTick”optional
onRandomTick?: (arg0: BlockComponentRandomTickEvent, arg1: CustomComponentParameters) => void;onRedstoneUpdate
Section titled “onRedstoneUpdate”optional
onRedstoneUpdate?: (arg0: BlockComponentRedstoneUpdateEvent, arg1: CustomComponentParameters) => void;onStepOff
Section titled “onStepOff”optional
onStepOff?: (arg0: BlockComponentStepOffEvent, arg1: CustomComponentParameters) => void;onStepOn
Section titled “onStepOn”optional
onStepOn?: (arg0: BlockComponentStepOnEvent, arg1: CustomComponentParameters) => void;onTick
Section titled “onTick”optional
onTick?: (arg0: BlockComponentTickEvent, arg1: CustomComponentParameters) => void;