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

    SystemBeforeEvents

    The SystemBeforeEvents interface in @minecraft/server.

    Interface in @minecraft/server

    import type { SystemBeforeEvents } from '@minecraft/server';
    import { system, type StartupEvent } from '@minecraft/server';
    system.beforeEvents.startup.subscribe((event: StartupEvent) => {
    console.log('startup');
    });
    import { system } from '@minecraft/server';
    system.beforeEvents.startup.subscribe((event) => {
    console.log('startup');
    });

    read-only

    readonly startup: EventSignal<StartupEvent>;

    Fires once, after the plugin’s main module has run.

    read-only

    readonly shutdown: EventSignal<ShutdownEvent>;

    Fires before the plugin is unloaded.

    System.beforeEvents