/scriptevent Command

Causes an event to fire within script with the specified message ID and payload. This can be used to connect scripting with any location where commands are used.

Permission Level Game Directors
Requires Cheats? Yes

Usage

Send script event message

/scriptevent <messageId: string> <message: message>

Passes a message with the specified ID and payload.

Arguments

  • message: message Data component of the message to send. This is custom and dependent on the kinds of behavior packs and content you may have installed within the world.
  • messageId: string Identifier of the message to send. This is custom and dependent on the kinds of behavior packs and content you may have installed within the world.