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

    EventSignal

    Class in @minecraft/server

    An event to subscribe to. Callbacks run in the order they subscribed.

    import { EventSignal } from '@minecraft/server';
    subscribe(callback: (arg0: T) => void, options?: O): (arg0: T) => void;

    Calls the callback each time the event fires.

    Parameters
    callback
    (arg0: T) => void
    optionsoptional
    OFor the packet events, which packets it hears.
    Returns
    (arg0: T) => voidThe callback, to unsubscribe it with.
    unsubscribe(callback: (arg0: T) => void): void;

    Stops calling a callback.

    Parameters
    callback
    (arg0: T) => void

    WorldBeforeEvents.chatSend, WorldBeforeEvents.effectAdd, WorldBeforeEvents.entityHurt, WorldBeforeEvents.entityRemove, WorldBeforeEvents.explosion, WorldBeforeEvents.itemUse, WorldBeforeEvents.playerBreakBlock, WorldBeforeEvents.playerChangeSkin, WorldBeforeEvents.playerDropItem, WorldBeforeEvents.playerEmote, WorldBeforeEvents.playerGameModeChange, WorldBeforeEvents.playerHurt, WorldBeforeEvents.playerInteractWithBlock, WorldBeforeEvents.playerInteractWithEntity, WorldBeforeEvents.playerLeave, WorldBeforeEvents.playerMove, WorldBeforeEvents.playerPickupItem, WorldBeforeEvents.playerPlaceBlock, WorldBeforeEvents.playerRespawn, WorldBeforeEvents.playerTeleport, WorldBeforeEvents.playerViolation, WorldBeforeEvents.weatherChange, WorldAfterEvents.entityHitEntity, WorldAfterEvents.blockExplode and 57 more