Tooltips
Discord
  • Tooltips
  • Start here
  • Support
  • Plugin
    • Features
    • Commands
    • FAQ
    • Guides
      • Clearing cache
      • Furniture shop
      • BetonQuest Dialogue
      • Languages
      • Manual width
  • Configuration
    • Theme
      • Theme textures
      • Making a custom theme
    • Icon
    • Preset
      • Conditions
      • Condition list
      • Show
      • Actions
        • Commands
      • Functions
      • Animations
      • Argument Types
  • Extra
    • Notable 2.0 Changes
    • Integrations
    • Variables
    • API
      • Custom Conditions
Powered by GitBook
On this page
  • Commands
  • Regular
  • sound
  • message
  • delay
  • Variables
  • setvar
  • setpersistentvar
  • clearvar
  • clearpersistentvar
  • clearvars
  • clearpersistentvars
  • savepersistentvars
  • Animations
  • skip
  1. Configuration
  2. Preset
  3. Actions

Commands

PreviousActionsNextFunctions

Last updated 4 months ago

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

  • - send a sound to a player

  • - send a message to a player

  • - send multiple commands to player after a delay

Variables

  • - set a global or player variable

  • - set a global or player persistent variable

  • - clear a global or player variable

  • - clear a global or player persistent variable

  • - clear all global or player variables

  • - clear all global or player persistent variables

  • - save all persistent variables to the file

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.

  2. sound category

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

  3. volume (float)

  4. pitch (float)

Examples

actions:
  on-show:
  - sound minecraft:block.amethyst_block.break master 1 1
  right-click:
  - sound custom:mysoundname master 1 1

message

Arguments

Message

Examples

actions:
  on-show:
  - message Welcome traveller!
  left-click:
  - message &cOuch!

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

actions:
  on-stop-showing:
  # After 1 second, message hello and kill the player
  - delay 20 message Hello!; kill %player%
  # After 5 seconds, set variable meow to false
  - delay 100 setvar player meow false

Variables

setvar

Arguments

Variable name (supports placeholders)

Examples

actions:
  on-stop-showing:
  # Scope here is global,
  # variable name is meow 
  # and value is 1
  - setvar global meow 1

setpersistentvar

Arguments

Scope [ player / global / insert players name ]

Variable name (supports placeholders)

Value (supports mathematical evaluation)

Examples

actions:
  on-stop-showing:
  # Add 1 for each time the player looks at this tooltip
  - setpersistentvar player looked %persistentvar_looked% + 1

clearvar

Arguments

Variable name (supports placeholders)

Examples

actions:
  on-stop-showing:
  # Clears the "meow" variable, effectively removing it
  - clearvar player meow 

clearpersistentvar

Arguments

Variable name (supports placeholders)

Examples

actions:
  on-stop-showing:
  # Clears the "meow" variable, effectively removing it
  - clearpersistentvar player looked 

clearvars

Arguments

Examples

actions:
  on-stop-showing:
  # Clear all global variables
  - clearvars global
  # Clear all players variables
  - clearvars player

clearpersistentvars

Arguments

Examples

actions:
  on-stop-showing:
  # Clear all persistent global variables
  - clearpersistentvars global
  # Clear all persistent players variables
  - clearpersistentvars player

savepersistentvars

Examples

actions:
  on-stop-showing:
  - savepersistentvars

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

actions:
    left-click:
    # Skips the current running animation
    - skip current
    # Skips ALL animations in the preset
    - skip all

list of vanilla sounds can be found

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

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

Set a variable for the given . Supports PAPI placeholders and .

[ player / global / insert players name ]

Value ()

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

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

[ player / global / insert players name ]

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

[ player / global / insert players name ]

Clear all variables for either a given player or globally.

[ player / global / insert players name ]

Clear all variables for either a given player or globally.

[ player / global / insert players name ]

Save all variables.

here
here
local placeholders
sound
message
delay
setvar
setpersistentvar
clearvar
clearpersistentvar
clearvars
clearpersistentvars
savepersistentvars
local placeholders
local placeholders
local placeholders
local placeholders
non-persistent
player or globally
Scope
supports mathematical evaluation
persistent
non-persistent
Scope
persistent
Scope
non-persistent
Scope
persistent
Scope
persistent