ScriptEventCommandMessageAfterEvent Class
Returns additional data about a /scriptevent command invocation.
Properties
id
read-only id: string;
Identifier of this ScriptEvent command message.
Type: string
initiator
read-only initiator?: Entity;
If this command was initiated via an NPC, returns the entity that initiated the NPC dialogue.
Type: Entity
message
read-only message: string;
Optional additional data passed in with the script event command.
Type: string
sourceBlock
read-only sourceBlock?: Block;
Source block if this command was triggered via a block (e.g., a commandblock.)
Type: Block
sourceEntity
read-only sourceEntity?: Entity;
Source entity if this command was triggered by an entity (e.g., a NPC).
Type: Entity
sourceType
read-only sourceType: ScriptEventSource;
Returns the type of source that fired this command.
Type: ScriptEventSource
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for