@minecraft/server
    Preparing search index...

    Class ScriptEventCommandMessageAfterEventBeta

    Returns additional data about a /scriptevent command invocation.

    Index

    Properties

    id: string

    Identifier of this ScriptEvent command message.

    initiator?: Entity

    If this command was initiated via an NPC, returns the entity that initiated the NPC dialogue.

    message: string

    Optional additional data passed in with the script event command.

    sourceBlock?: Block

    Source block if this command was triggered via a block (e.g., a commandblock.)

    sourceEntity?: Entity

    Source entity if this command was triggered by an entity (e.g., a NPC).

    sourceType: ScriptEventSource

    Returns the type of source that fired this command.