Actions
On this page you will learn how to create and configure actions that will be executed upon certain events, such as a player teleporting.
Last updated
Was this helpful?
On this page you will learn how to create and configure actions that will be executed upon certain events, such as a player teleporting.
Last updated
Was this helpful?
These values ​​apply to all actions and some are required for it to work.
type
The type of action to perform.
enabled
Yes, this action will be enabled (default true
)
when
When is this action performed?
whom
This indicates who the actions are executed on (for tpa only).
conditions
when
Esto indica cuándo se ejecuta la acción.
none
Plays when the player is teleported, whether or not they have delay.
before_delay
It is executed when the delay starts.
during_delay
It runs every second during the delay.
after_delay
It is executed when the delay ends (when the player is teleported).
cancel_delay
It is executed when the teleport has been cancelled (usually by movement).
whom
This indicates who the actions are executed on (for tpa only).
player
This is the player who sends the teleport request.
target_player
This is the player who receives the teleport request.
both
This indicates both players.
Sends a command as if it were executed by the player.
Example:
Send a command from the console.
Example:
Sends a sound to the player.
Example:
Send a message to the player in chat.
Example:
Send a chat centered message to the player.
Example:
Send a message to all online players.
Example:
Sends a title to the player's screen.
Example:
Switches the player to game mode (gamemode:
SURVIVAL, ADVENTURE, CREATIVE, SPECTATOR).
Example:
Grants a potion effect to the player.
Example:
Sends a message in the player's action bar.
Example:
Conditions for executing the action. See the documentation .