Minecraft Wiki

The Minecraft Wiki has moved from Fandom; see the linked discussion page for details.

READ MORE

Minecraft Wiki
Advertisement
Dark Oak Sapling
This article is a stub. 
You can help by expanding it.
Information icon
This feature is exclusive to Bedrock Edition. 
Blue Beaker BE1
The features on this page are exclusive to Experimental Gameplay in Bedrock Edition. 
These features may be properly added in a future update, but currently require enabling one or more settings in the "Beta APIs" section of the Game Settings menu.

Triggers a script event with an ID and message.

Syntax

scriptevent <messageId: string> <message: message>

Arguments

messageId: string: basic_string

Must be a string. And it must be a single word that has no space or a quoted string.

message: message: CommandMessage

Must be a plain text. Can include spaces as well as target selectors. The game replaces entity selectors in the message with the list of selected entities' names, which is formatted as "name1 and name2" for two entities, or "name1, name2, ... and namen" for n entities.@here can be used to mention all players.

Result

Output

Example

History

Bedrock Edition
Beta APIs
(Experimental)
beta 1.19.60.22Added /scriptevent behind the "Beta APIs" experimental toggle.
Upcoming Bedrock Edition
1.20.30beta 1.20.20.20/scriptevent is no longer behind "Beta APIs" experimental toggle.
Advertisement