Click Commands
🧭 Overview
Items can run commands when clicked. Commands can be executed either as the player or via the server console.
🛠 How to Add
Open the menu or item file you want to modify.
Find the item and locate the
commandssection underitem-settings.If it doesn’t exist, you can add it.
Add commands using one of these formats:
Execution Type
Format
Description
Player
player->[COMMAND]
The command will run as the clicking player.
Console
console->[COMMAND]
The command will run from the server console.
💡 Example
item-builder:
my-item:
item-settings:
commands:
- "player->say this command is being executed as {PLAYER}"
- "console->say this command is being executed by the console"Placeholders like {PLAYER} or {GAME_ID} can be used in commands and will automatically resolve to the correct values during execution.
Last updated