Action List
Reference of all 11 typed actions supported in action: and actions: blocks.
Action Summary Table
Action Type (type) | Parameters | Description |
|---|---|---|
command | command, executor | Executes a command as player or console. |
player-command | command | Executes a command as the clicking player. |
console-command | command | Executes a command with elevated server console privileges. |
open-menu | menu | Transitions to the specified menu ID (waits for render). |
close-menu | None | Safely closes the original UI session. |
message | message | Sends a formatted chat message to the player. |
sound | sound, volume, pitch | Plays a sound effect to the player. |
title | title, subtitle, fade-in, stay, fade-out | Shows an on-screen title banner. |
teleport | world, x, y, z, yaw, pitch, safe, reset-velocity, no-fall-ticks | Teleports player to world and coordinates. |
delay | duration | Asynchronously delays subsequent action execution without thread blocking. |
potion-effect | effect, duration, amplifier, ambient, particles | Applies a status effect or buff to the player. |
input | prompt, input-type, min, max, timeout-seconds, command, actions | Prompts player for chat input before proceeding. |
Action Examples
command
type: command
command: "spawn"
executor: player # player or console
player-command
type: player-command
command: "warp survival"
console-command
type: console-command
command: "eco give {player} 1000"
open-menu
type: open-menu
menu: "shop"
close-menu
type: close-menu
message
type: message
message: "&aItem purchased successfully!"
sound
type: sound
sound: "ENTITY_PLAYER_LEVELUP"
volume: 1.0
pitch: 1.2
title
type: title
title: "&6&lQUEST COMPLETED"
subtitle: "&aReward granted"
fade-in: 10
stay: 70
fade-out: 20
teleport
type: teleport
world: "world"
x: 100.5
y: 64.0
z: -200.5
yaw: 0.0
pitch: 0.0
safe: true
reset-velocity: true
no-fall-ticks: 40
delay
type: delay
duration: 2s # 500ms, 2s, 1m
potion-effect
type: potion-effect
effect: "SPEED"
duration: 30s
amplifier: 1
ambient: true
particles: true
input
type: input
prompt: "&eEnter withdrawal amount:"
input-type: integer
min: 1
max: 50000
timeout-seconds: 30
command: "bank withdraw {player} {input}"