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
    After events

    BlockExplodeAfterEvent

    Interface in @minecraft/server

    A block an explosion broke.

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

    Subscribe to it with world.afterEvents.blockExplode.

    import { world, type BlockExplodeAfterEvent } from '@minecraft/server';
    world.afterEvents.blockExplode.subscribe((event: BlockExplodeAfterEvent) => {
    console.log('blockExplode', event.block.typeId, event.dimension.id, event.explodedBlockPermutation.typeId);
    });
    import { world } from '@minecraft/server';
    world.afterEvents.blockExplode.subscribe((event) => {
    console.log('blockExplode', event.block.typeId, event.dimension.id, event.explodedBlockPermutation.typeId);
    });

    read-only

    readonly block: Block;

    Where it was; air now.

    Types

    read-only

    readonly dimension: Dimension;

    read-only

    readonly explodedBlockPermutation: BlockPermutation;

    What it was before.

    read-only

    readonly source: Entity | undefined;

    The creeper or other thing that went off.

    Types

    WorldAfterEvents.blockExplode, BlockExplodeAfterEventSignal.subscribe, BlockExplodeAfterEventSignal.unsubscribe