Commands

Actions support some custom commands. Note that these are not actual commands that can be executed in chat and they only work inside actions.

Commands

Regular

  • sound - send a sound to a player

  • message - send a message to a player

  • delay - send multiple commands to player after a delay

Variables

Animations

  • skip - skip animations

Regular

sound

Send a sound to the player viewing the tooltip.

Arguments

  1. sound name

    • used exactly the same way as in the /playsound command.

    • list of vanilla sounds can be found here

  2. sound category

    • used exactly the same way as in the /playsound command.

    • list of sound categories can be found here (on the right)

  3. volume (float)

  4. pitch (float)

Examples

message

Send a message to the player viewing the tooltip. Supports hex, PAPI placeholders and local placeholders.

Arguments

Message

Examples

delay

Send an array of commands to the player viewing the tooltip after a specific given delay. Commands are separated with a ; and support both local commands (on this page) and outside commands. Supports all placeholders.

Arguments

Time (ticks, 1 second = 20 minecraft ticks)

Commands (separated with a ; )

Examples

Variables

setvar

Set a non-persistent variable for the given player or globally. Supports PAPI placeholders and local placeholders.

Arguments

Scope [ player / global / insert players name ]

Variable name (supports placeholders)

Value (supports mathematical evaluation)

Examples

setpersistentvar

Set a persistent variable for the given player or globally. Supports PAPI placeholders and local placeholders.

Arguments

Scope [ player / global / insert players name ]

Variable name (supports placeholders)

Value (supports mathematical evaluation)

Examples

clearvar

Clear a non-persistent variable for the given player or globally. Supports PAPI placeholders and local placeholders.

Arguments

Scope [ player / global / insert players name ]

Variable name (supports placeholders)

Examples

clearpersistentvar

Clear a persistent variable for the given player or globally. Supports PAPI placeholders and local placeholders.

Arguments

Scope [ player / global / insert players name ]

Variable name (supports placeholders)

Examples

clearvars

Clear all non-persistent variables for either a given player or globally.

Arguments

Scope [ player / global / insert players name ]

Examples

clearpersistentvars

Clear all persistent variables for either a given player or globally.

Arguments

Scope [ player / global / insert players name ]

Examples

savepersistentvars

Save all persistent variables.

Examples

Animations

skip

Skips animations depending on given arguments. Note that the animations have to have an ID to be able to be skipped.

Arguments

Skipped [ current / all ]

Examples

Last updated