Contains a set of events that are available across the scope of the World.

Implements

Constructors

Accessors

  • get blockExplode(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.blockExplode",
            BlockExplodeAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.blockExplode">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.blockExplode">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.blockExplode",
            BlockExplodeAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.blockExplode">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.blockExplode">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.blockExplode">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.blockExplode event.

    This event fires for each BlockLocation destroyed by an explosion. It is fired after the blocks have already been destroyed.

    This property can be read in early-execution mode.

  • get buttonPush(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.buttonPush",
            ButtonPushAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.buttonPush">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.buttonPush">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.buttonPush",
            ButtonPushAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.buttonPush">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.buttonPush">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.buttonPush">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.buttonPush event.

    This event fires when a button is pushed.

    This property can be read in early-execution mode.

  • get chatSend(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.chatSend",
            ChatSendAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.chatSend">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.chatSend">,
        ): void;
    }
    Beta

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.chatSend",
            ChatSendAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.chatSend">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.chatSend">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.chatSend">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.chatSend event.

    This event is triggered after a chat message has been broadcast or sent to players.

    This property can be read in early-execution mode.

  • get dataDrivenEntityTrigger(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.dataDrivenEntityTrigger",
            DataDrivenEntityTriggerAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.dataDrivenEntityTrigger">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.dataDrivenEntityTrigger",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.dataDrivenEntityTrigger",
            DataDrivenEntityTriggerAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.dataDrivenEntityTrigger">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.dataDrivenEntityTrigger",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.dataDrivenEntityTrigger">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.dataDrivenEntityTrigger event.

    This event is fired when an entity event has been triggered that will update the component definition state of an entity.

    This property can be read in early-execution mode.

  • get effectAdd(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.effectAdd",
            EffectAddAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.effectAdd">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.effectAdd">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.effectAdd",
            EffectAddAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.effectAdd">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.effectAdd">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.effectAdd">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.effectAdd event.

    This event fires when an effect, like poisoning, is added to an entity.

    This property can be read in early-execution mode.

  • get entityDie(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityDie",
            EntityDieAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityDie">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.entityDie">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityDie",
            EntityDieAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityDie">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.entityDie">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.entityDie">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.entityDie event.

    This event fires when an entity dies.

    This property can be read in early-execution mode.

  • get entityHealthChanged(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityHealthChanged",
            EntityHealthChangedAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityHealthChanged">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.entityHealthChanged",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityHealthChanged",
            EntityHealthChangedAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityHealthChanged">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.entityHealthChanged",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.entityHealthChanged">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.entityHealthChanged event.

    This event fires when entity health changes in any degree.

    This property can be read in early-execution mode.

  • get entityHitBlock(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityHitBlock",
            EntityHitBlockAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityHitBlock">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.entityHitBlock",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityHitBlock",
            EntityHitBlockAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityHitBlock">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.entityHitBlock",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.entityHitBlock">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.entityHitBlock event.

    This event fires when an entity hits (that is, melee attacks) a block.

    This property can be read in early-execution mode.

  • get entityHitEntity(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityHitEntity",
            EntityHitEntityAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityHitEntity">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.entityHitEntity",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityHitEntity",
            EntityHitEntityAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityHitEntity">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.entityHitEntity",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.entityHitEntity">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.entityHitEntity event.

    This event fires when an entity hits (that is, melee attacks) another entity.

    This property can be read in early-execution mode.

  • get entityHurt(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityHurt",
            EntityHurtAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityHurt">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.entityHurt">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityHurt",
            EntityHurtAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityHurt">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.entityHurt">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.entityHurt">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.entityHurt event.

    This event fires when an entity is hurt (takes damage).

    This property can be read in early-execution mode.

  • get entityLoad(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityLoad",
            EntityLoadAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityLoad">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.entityLoad">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityLoad",
            EntityLoadAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityLoad">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.entityLoad">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.entityLoad">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.entityLoad event.

    Fires when an entity is loaded.

    This property can be read in early-execution mode.

  • get entityRemove(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityRemove",
            EntityRemoveAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityRemove">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.entityRemove">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entityRemove",
            EntityRemoveAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entityRemove">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.entityRemove">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.entityRemove">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.entityRemove event.

    Fires when an entity is removed (for example, potentially unloaded, or removed after being killed).

    This property can be read in early-execution mode.

  • get entitySpawn(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entitySpawn",
            EntitySpawnAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entitySpawn">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.entitySpawn">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.entitySpawn",
            EntitySpawnAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.entitySpawn">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.entitySpawn">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.entitySpawn">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.entitySpawn event.

    This event fires when an entity is spawned.

    This property can be read in early-execution mode.

  • get explosion(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.explosion",
            ExplosionAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.explosion">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.explosion">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.explosion",
            ExplosionAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.explosion">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.explosion">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.explosion">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.explosion event.

    This event is fired after an explosion occurs.

    This property can be read in early-execution mode.

  • get gameRuleChange(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.gameRuleChange",
            GameRuleChangeAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.gameRuleChange">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.gameRuleChange",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.gameRuleChange",
            GameRuleChangeAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.gameRuleChange">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.gameRuleChange",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.gameRuleChange">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.gameRuleChange event.

    This event fires when a world.gameRules property has changed.

    This property can be read in early-execution mode.

  • get itemCompleteUse(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemCompleteUse",
            ItemCompleteUseAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemCompleteUse">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.itemCompleteUse",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemCompleteUse",
            ItemCompleteUseAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemCompleteUse">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.itemCompleteUse",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.itemCompleteUse">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.itemCompleteUse event.

    This event fires when a chargeable item completes charging.

    This property can be read in early-execution mode.

  • get itemReleaseUse(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemReleaseUse",
            ItemReleaseUseAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemReleaseUse">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.itemReleaseUse",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemReleaseUse",
            ItemReleaseUseAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemReleaseUse">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.itemReleaseUse",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.itemReleaseUse">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.itemReleaseUse event.

    This event fires when a chargeable item is released from charging.

    This property can be read in early-execution mode.

  • get itemStartUse(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemStartUse",
            ItemStartUseAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemStartUse">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.itemStartUse">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemStartUse",
            ItemStartUseAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemStartUse">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.itemStartUse">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.itemStartUse">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.itemStartUse event.

    This event fires when a chargeable item starts charging.

    This property can be read in early-execution mode.

  • get itemStartUseOn(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemStartUseOn",
            ItemStartUseOnAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemStartUseOn">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.itemStartUseOn",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemStartUseOn",
            ItemStartUseOnAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemStartUseOn">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.itemStartUseOn",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.itemStartUseOn">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.itemStartUseOn event.

    This event fires when a player successfully uses an item or places a block by pressing the Use Item / Place Block button. If multiple blocks are placed, this event will only occur once at the beginning of the block placement. Note: This event cannot be used with Hoe or Axe items.

    This property can be read in early-execution mode.

  • get itemStopUse(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemStopUse",
            ItemStopUseAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemStopUse">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.itemStopUse">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemStopUse",
            ItemStopUseAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemStopUse">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.itemStopUse">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.itemStopUse">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.itemStopUse event.

    This event fires when a chargeable item stops charging.

    This property can be read in early-execution mode.

  • get itemStopUseOn(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemStopUseOn",
            ItemStopUseOnAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemStopUseOn">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.itemStopUseOn",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemStopUseOn",
            ItemStopUseOnAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemStopUseOn">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.itemStopUseOn",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.itemStopUseOn">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.itemStopUseOn event.

    This event fires when a player releases the Use Item / Place Block button after successfully using an item. Note: This event cannot be used with Hoe or Axe items.

    This property can be read in early-execution mode.

  • get itemUse(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemUse",
            ItemUseAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemUse">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.itemUse">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.itemUse",
            ItemUseAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.itemUse">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.itemUse">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.itemUse">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.itemUse event.

    This event fires when an item is successfully used by a player.

    This property can be read in early-execution mode.

  • get leverAction(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.leverAction",
            LeverActionAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.leverAction">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.leverAction">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.leverAction",
            LeverActionAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.leverAction">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.leverAction">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.leverAction">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.leverAction event.

    A lever has been pulled.

    This property can be read in early-execution mode.

  • get messageReceive(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.messageReceive",
            ServerMessageAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.messageReceive">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.messageReceive",
            >,
        ): void;
    }
    Beta

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.messageReceive",
            ServerMessageAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.messageReceive">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.messageReceive",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.messageReceive">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.messageReceive event.

    This event is an internal implementation detail, and is otherwise not currently functional.

    This property can be read in early-execution mode.

  • get pistonActivate(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.pistonActivate",
            PistonActivateAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.pistonActivate">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.pistonActivate",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.pistonActivate",
            PistonActivateAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.pistonActivate">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.pistonActivate",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.pistonActivate">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.pistonActivate event.

    This event fires when a piston expands or retracts.

    This property can be read in early-execution mode.

  • get playerBreakBlock(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerBreakBlock",
            PlayerBreakBlockAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerBreakBlock">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerBreakBlock",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerBreakBlock",
            PlayerBreakBlockAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerBreakBlock">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerBreakBlock",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.playerBreakBlock">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.playerBreakBlock event.

    This event fires for a block that is broken by a player.

    This property can be read in early-execution mode.

  • get playerButtonInput(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerButtonInput",
            PlayerButtonInputAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerButtonInput">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerButtonInput",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerButtonInput",
            PlayerButtonInputAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerButtonInput">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerButtonInput",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.playerButtonInput">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.playerButtonInput event.

    This event fires when an InputButton state is changed.

    This property can be read in early-execution mode.

  • get playerDimensionChange(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerDimensionChange",
            PlayerDimensionChangeAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerDimensionChange">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerDimensionChange",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerDimensionChange",
            PlayerDimensionChangeAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerDimensionChange">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerDimensionChange",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.playerDimensionChange">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.playerDimensionChange event.

    Fires when a player moved to a different dimension.

    This property can be read in early-execution mode.

  • get playerEmote(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerEmote",
            PlayerEmoteAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerEmote">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.playerEmote">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerEmote",
            PlayerEmoteAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerEmote">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.playerEmote">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.playerEmote">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.playerEmote event.

    This property can be read in early-execution mode.

  • get playerGameModeChange(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerGameModeChange",
            PlayerGameModeChangeAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerGameModeChange">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerGameModeChange",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerGameModeChange",
            PlayerGameModeChangeAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerGameModeChange">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerGameModeChange",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.playerGameModeChange">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.playerGameModeChange event.

    This property can be read in early-execution mode.

  • get playerInputModeChange(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerInputModeChange",
            PlayerInputModeChangeAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerInputModeChange">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerInputModeChange",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerInputModeChange",
            PlayerInputModeChangeAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerInputModeChange">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerInputModeChange",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.playerInputModeChange">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.playerInputModeChange event.

    This event fires when a player's InputMode changes.

    This property can be read in early-execution mode.

  • get playerInputPermissionCategoryChange(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerInputPermissionCategoryChange",
            PlayerInputPermissionCategoryChangeAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<
            "world.afterEvents.playerInputPermissionCategoryChange",
        >;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerInputPermissionCategoryChange",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerInputPermissionCategoryChange",
            PlayerInputPermissionCategoryChangeAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<
            "world.afterEvents.playerInputPermissionCategoryChange",
        >;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerInputPermissionCategoryChange",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.playerInputPermissionCategoryChange">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.playerInputPermissionCategoryChange event.

    This event fires when a players input permissions change.

    This property can be read in early-execution mode.

  • get playerInteractWithBlock(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerInteractWithBlock",
            PlayerInteractWithBlockAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerInteractWithBlock">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerInteractWithBlock",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerInteractWithBlock",
            PlayerInteractWithBlockAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerInteractWithBlock">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerInteractWithBlock",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.playerInteractWithBlock">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.playerInteractWithBlock event.

    An event for when a player interacts with a block.

    This property can be read in early-execution mode.

  • get playerInteractWithEntity(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerInteractWithEntity",
            PlayerInteractWithEntityAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerInteractWithEntity">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerInteractWithEntity",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerInteractWithEntity",
            PlayerInteractWithEntityAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerInteractWithEntity">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerInteractWithEntity",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.playerInteractWithEntity">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.playerInteractWithEntity event.

    This event fires when a player interacts with an entity.

    This property can be read in early-execution mode.

  • get playerJoin(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerJoin",
            PlayerJoinAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerJoin">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.playerJoin">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerJoin",
            PlayerJoinAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerJoin">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.playerJoin">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.playerJoin">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.playerJoin event.

    This event fires when a player joins a world. See also playerSpawn for another related event you can trap for when a player is spawned the first time within a world.

    This property can be read in early-execution mode.

  • get playerLeave(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerLeave",
            PlayerLeaveAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerLeave">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.playerLeave">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerLeave",
            PlayerLeaveAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerLeave">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.playerLeave">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.playerLeave">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.playerLeave event.

    This event fires when a player leaves a world.

    This property can be read in early-execution mode.

  • get playerPlaceBlock(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerPlaceBlock",
            PlayerPlaceBlockAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerPlaceBlock">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerPlaceBlock",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerPlaceBlock",
            PlayerPlaceBlockAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerPlaceBlock">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.playerPlaceBlock",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.playerPlaceBlock">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.playerPlaceBlock event.

    This event fires for a block that is placed by a player.

    This property can be read in early-execution mode.

  • get playerSpawn(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerSpawn",
            PlayerSpawnAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerSpawn">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.playerSpawn">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.playerSpawn",
            PlayerSpawnAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.playerSpawn">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.playerSpawn">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.playerSpawn">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.playerSpawn event.

    This event fires when a player spawns or respawns. Note that an additional flag within this event will tell you whether the player is spawning right after join vs. a respawn.

    This property can be read in early-execution mode.

  • get pressurePlatePop(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.pressurePlatePop",
            PressurePlatePopAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.pressurePlatePop">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.pressurePlatePop",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.pressurePlatePop",
            PressurePlatePopAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.pressurePlatePop">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.pressurePlatePop",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.pressurePlatePop">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.pressurePlatePop event.

    A pressure plate has popped back up (i.e., there are no entities on the pressure plate.)

    This property can be read in early-execution mode.

  • get pressurePlatePush(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.pressurePlatePush",
            PressurePlatePushAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.pressurePlatePush">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.pressurePlatePush",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.pressurePlatePush",
            PressurePlatePushAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.pressurePlatePush">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.pressurePlatePush",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.pressurePlatePush">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.pressurePlatePush event.

    A pressure plate has pushed (at least one entity has moved onto a pressure plate.)

    This property can be read in early-execution mode.

  • get projectileHitBlock(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.projectileHitBlock",
            ProjectileHitBlockAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.projectileHitBlock">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.projectileHitBlock",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.projectileHitBlock",
            ProjectileHitBlockAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.projectileHitBlock">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.projectileHitBlock",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.projectileHitBlock">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.projectileHitBlock event.

    This event fires when a projectile hits a block.

    This property can be read in early-execution mode.

  • get projectileHitEntity(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.projectileHitEntity",
            ProjectileHitEntityAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.projectileHitEntity">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.projectileHitEntity",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.projectileHitEntity",
            ProjectileHitEntityAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.projectileHitEntity">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.projectileHitEntity",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.projectileHitEntity">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.projectileHitEntity event.

    This event fires when a projectile hits an entity.

    This property can be read in early-execution mode.

  • get targetBlockHit(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.targetBlockHit",
            TargetBlockHitAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.targetBlockHit">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.targetBlockHit",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.targetBlockHit",
            TargetBlockHitAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.targetBlockHit">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.afterEvents.targetBlockHit",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.targetBlockHit">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.targetBlockHit event.

    A target block was hit.

    This property can be read in early-execution mode.

  • get tripWireTrip(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.tripWireTrip",
            TripWireTripAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.tripWireTrip">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.tripWireTrip">,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.tripWireTrip",
            TripWireTripAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.tripWireTrip">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.tripWireTrip">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.tripWireTrip">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.tripWireTrip event.

    A trip wire was tripped.

    This property can be read in early-execution mode.

  • get weatherChange(): {
        getAll(): Globals.SubscribedEvent<
            "world.beforeEvents.weatherChange",
            WeatherChangeBeforeEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.beforeEvents.weatherChange">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.beforeEvents.weatherChange",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.beforeEvents.weatherChange",
            WeatherChangeBeforeEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.beforeEvents.weatherChange">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "world.beforeEvents.weatherChange",
            >,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.beforeEvents.weatherChange">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.beforeEvents.weatherChange event.

    This event will be triggered when the weather changes within Minecraft.

    This property can be read in early-execution mode.

  • get worldLoad(): {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.worldLoad",
            WorldLoadAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.worldLoad">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.worldLoad">,
        ): void;
    }
    Beta

    Returns {
        getAll(): Globals.SubscribedEvent<
            "world.afterEvents.worldLoad",
            WorldLoadAfterEventSignal,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"world.afterEvents.worldLoad">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<"world.afterEvents.worldLoad">,
        ): void;
    }

    • getAll:function
    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"world.afterEvents.worldLoad">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the world.afterEvents.worldLoad event.

    This property can be read in early-execution mode.