Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    Block components

    BlockCustomComponent

    The BlockCustomComponent interface in @minecraft/server.

    Interface in @minecraft/server

    import type { BlockCustomComponent } from '@minecraft/server';

    optional

    beforeOnPlayerPlace?: (arg0: BlockComponentPlayerPlaceBeforeEvent, arg1: CustomComponentParameters) => void;

    optional

    onBlockStateChange?: (arg0: BlockComponentBlockStateChangeEvent, arg1: CustomComponentParameters) => void;

    optional

    onBreak?: (arg0: BlockComponentBlockBreakEvent, arg1: CustomComponentParameters) => void;

    optional

    onEntity?: (arg0: BlockComponentEntityEvent, arg1: CustomComponentParameters) => void;

    optional

    onEntityFallOn?: (arg0: BlockComponentEntityFallOnEvent, arg1: CustomComponentParameters) => void;

    optional

    onPlace?: (arg0: BlockComponentOnPlaceEvent, arg1: CustomComponentParameters) => void;

    optional

    onPlayerBreak?: (arg0: BlockComponentPlayerBreakEvent, arg1: CustomComponentParameters) => void;

    optional

    onPlayerInteract?: (arg0: BlockComponentPlayerInteractEvent, arg1: CustomComponentParameters) => void;

    optional

    onRandomTick?: (arg0: BlockComponentRandomTickEvent, arg1: CustomComponentParameters) => void;

    optional

    onRedstoneUpdate?: (arg0: BlockComponentRedstoneUpdateEvent, arg1: CustomComponentParameters) => void;

    optional

    onStepOff?: (arg0: BlockComponentStepOffEvent, arg1: CustomComponentParameters) => void;

    optional

    onStepOn?: (arg0: BlockComponentStepOnEvent, arg1: CustomComponentParameters) => void;

    optional

    onTick?: (arg0: BlockComponentTickEvent, arg1: CustomComponentParameters) => void;

    BlockComponentRegistry.registerCustomComponent