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

    PressurePlatePopAfterEvent

    Interface in @minecraft/server

    A pressure plate came back up.

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

    Subscribe to it with world.afterEvents.pressurePlatePop.

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

    read-only

    readonly block: Block;
    Types

    read-only

    readonly dimension: Dimension;

    read-only

    readonly previousRedstonePower: number;

    read-only

    readonly redstonePower: number;

    WorldAfterEvents.pressurePlatePop, PressurePlatePopAfterEventSignal.subscribe, PressurePlatePopAfterEventSignal.unsubscribe