类 ScriptEventCommandMessageAfterEvent实验性

Returns additional data about a /scriptevent command invocation.

属性

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.