-
-
Notifications
You must be signed in to change notification settings - Fork 1
Trigger Command
MoSadie edited this page Nov 12, 2024
·
1 revision
Introduced in v3.1, the trigger subcommand allows you to trigger effects using in-game chat. This is good for quickly testing effects, but is limited by the maximum chat message length.
Like any other way of triggering effects, you will need to trust the world/server first before any effects work.
The formatting for the json is as follows:
{
"effectId": "<effectId>",
"args": {
"<key>": "<value>",
//...
}
}An example of a command that would trigger the Show Title effect with the title Hello and subtitle World:
/effectmc trigger {"effectId":"showtitle","args":{"subtitle":"World","title":"Hello"}}To save you the hassle of writing the json yourself simply run /effectmc exporteffect then trigger the desired effect in any way. You will find the json in the log file prefixed with Exported Effect Request JSON:.
- Join Server
- Show Title
- Show Action Message
- Set Skin Layer
- Sent Chat Message
- Receive Chat Message
- Trigger Disconnect
- Play Sound
- Stop Sound
- Show Toast
- Open Book
- Narrate
- Load World
- Set Skin
- Open Screen
- Set FOV
- Show Chat
- Set POV
- Set GUI Scale
- Set Brightness/Gamma
- Set Gamemode
- Set Render Distance
- Rejoin
- Show Item Toast
- Set Volume