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

    BlockPistonComponent

    Interface in @minecraft/server

    A piston as its activation found it. Basalt gives its state as plain values: Mojang’s getAttachedBlocks and getAttachedBlocksLocations aren’t bound.

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

    read-only

    readonly isExpanded: boolean;

    read-only

    readonly isExpanding: boolean;

    read-only

    readonly isMoving: boolean;

    read-only

    readonly isRetracted: boolean;

    read-only

    readonly isRetracting: boolean;

    read-only

    readonly state: BlockPistonState;

    PistonActivateAfterEvent.piston