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
    Item components

    ItemCustomComponent

    The ItemCustomComponent interface in @minecraft/server.

    Interface in @minecraft/server

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

    optional

    onBeforeDurabilityDamage?: (
    arg0: ItemComponentBeforeDurabilityDamageEvent,
    arg1: CustomComponentParameters,
    ) => void;

    optional

    onCompleteUse?: (arg0: ItemComponentCompleteUseEvent, arg1: CustomComponentParameters) => void;

    optional

    onConsume?: (arg0: ItemComponentConsumeEvent, arg1: CustomComponentParameters) => void;

    optional

    onHitEntity?: (arg0: ItemComponentHitEntityEvent, arg1: CustomComponentParameters) => void;

    optional

    onMineBlock?: (arg0: ItemComponentMineBlockEvent, arg1: CustomComponentParameters) => void;

    optional

    onUse?: (arg0: ItemComponentUseEvent, arg1: CustomComponentParameters) => void;

    optional

    onUseOn?: (arg0: ItemComponentUseOnEvent, arg1: CustomComponentParameters) => void;

    ItemComponentRegistry.registerCustomComponent