Action System
This page lists all actions included in the action system.
What are they?​
Action allows you to perform various functions such as changing player game mode, executing console command, etc.
List of actions​
Commands​
| Action | Value | Description | Example |
|---|---|---|---|
| consolecommand | Command without slash prefix | Execute a command from the console | consolecommand:economy deposit %player_name% 100 |
| playercommand | Command without slash prefix | Execute a command as the player | playercommand:spawn |
Player​
| Action | Value | Description | Example |
|---|---|---|---|
| flight | true/false | Toggle player flight | flight:true |
| gamemode | GameMode | Change player's gamemode | gamemode:adventure |
| sound | sound:SOUND[;volume;pitch] | Play a sound | sound:ENTITY_PLAYER_LEVELUPsound:ENTITY_PLAYER_LEVELUP;1;2 |
| teleport | world;x;y;z[;yaw;pitch] | Teleport player | teleport:world;125;85;27.5teleport:world;125;85;27.5;180;0 |
| teleportworldspawn | World / current | Teleport player to world spawn | teleportworldspawn:world;125;85;27.5teleportworldspawn:current |
| playerhelditemslot | Slot (0-8) | Set player's held item slot | playerhelditemslot:4 |
Messages​
| Action | Value | Description | Example |
|---|---|---|---|
| actionbar | Text (colors supported) | Send action bar | actionbar:&aYou joined a game! |
| message | Text (colors supported) | Send a chat message | message:&aHello |
| title | title:TITLE[;SUBTITLE;fadeIn;stay;fadeOut] | Show title to player | title:&aTItletitle:&aTitle;&cSubTitletitle:&aTitle;&cSubTitle;10;70;20 |
Adventure MiniMessage​
warning
The value of fadeIn;stay;fadeOut are seconds, it doesn't use tick as normal title do.
| Action | Value | Description | Example |
|---|---|---|---|
| miniactionbar | Text (MiniMessage) | Send action bar | miniactionbar:<green>Hello! |
| minimessage | Text (MiniMessage) | Send a chat message | minimessage:<green>Hello! |
| minititle | title:TITLE[;SUBTITLE;fadeIn;stay;fadeOut] | Show title to player | title:<green>TItletitle:<green>Title;<red>SubTitletitle:<green>Title;<red>SubTitle;1;3;1 |
Game​
danger
When using game action, Please be caution about where you put it.
tip
Game action has no effect when the player is not in a game.
| Action | Value | Description | Example |
|---|---|---|---|
| game | In-Game Action | Perform in-game action | game:start - start the gamegame:stop - stop the gamegame:flag - flag a cellgame:chord - chord a cellgame:reveal - reveal a cell |