Returns additional data about a /scriptevent command invocation.

Hierarchy

  • ScriptEventCommandMessageAfterEvent

Constructors

Properties

id: string

Remarks

Identifier of this ScriptEvent command message.

initiator?: Entity

Remarks

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

message: string

Remarks

Optional additional data passed in with the script event command.

sourceBlock?: Block

Remarks

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

sourceEntity?: Entity

Remarks

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

sourceType: ScriptEventSource

Remarks

Returns the type of source that fired this command.