Skip to main content

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​

ActionValueDescriptionExample
consolecommandCommand without slash prefixExecute a command from the consoleconsolecommand:economy deposit %player_name% 100
playercommandCommand without slash prefixExecute a command as the playerplayercommand:spawn

Player​

ActionValueDescriptionExample
flighttrue/falseToggle player flightflight:true
gamemodeGameModeChange player's gamemodegamemode:adventure
soundsound:SOUND[;volume;pitch]Play a soundsound:ENTITY_PLAYER_LEVELUP
sound:ENTITY_PLAYER_LEVELUP;1;2
teleportworld;x;y;z[;yaw;pitch]Teleport playerteleport:world;125;85;27.5
teleport:world;125;85;27.5;180;0
teleportworldspawnWorld / currentTeleport player to world spawnteleportworldspawn:world;125;85;27.5
teleportworldspawn:current
playerhelditemslotSlot (0-8)Set player's held item slotplayerhelditemslot:4

Messages​

ActionValueDescriptionExample
actionbarText (colors supported)Send action baractionbar:&aYou joined a game!
messageText (colors supported)Send a chat messagemessage:&aHello
titletitle:TITLE[;SUBTITLE;fadeIn;stay;fadeOut]Show title to playertitle:&aTItle
title:&aTitle;&cSubTitle
title:&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.

ActionValueDescriptionExample
miniactionbarText (MiniMessage)Send action barminiactionbar:<green>Hello!
minimessageText (MiniMessage)Send a chat messageminimessage:<green>Hello!
minititletitle:TITLE[;SUBTITLE;fadeIn;stay;fadeOut]Show title to playertitle:<green>TItle
title:<green>Title;<red>SubTitle
title:<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.

ActionValueDescriptionExample
gameIn-Game ActionPerform in-game actiongame:start - start the game
game:stop - stop the game
game:flag - flag a cell
game:chord - chord a cell
game:reveal - reveal a cell