Actions System

📝 Atualizado em 10/03/2026

Actions are commands or messages that execute when a player interacts with an NPC (right-click).

Action Commands

Add an action:

/npc action <name> add <action>

Remove an action:

/npc action <name> remove <index>

Removes the action at the specified index (use /npc action <name> list to see indices).

List all actions:

/npc action <name> list

Shows all configured actions for the NPC.

Clear all actions:

/npc action <name> clear

Removes all actions from the NPC.

Action Types

Console Command:

/npc action <name> add CONSOLE:<command>

Executes a command as the server console.

Example:

/npc action Steve add CONSOLE:give %player% diamond 1

Player Command:

/npc action <name> add PLAYER:<command>

Executes a command as the player who clicked the NPC.

Example:

/npc action Steve add PLAYER:spawn

Message:

/npc action <name> add MESSAGE:<text>

Sends a message to the player who clicked the NPC.

Example:

/npc action Steve add MESSAGE:&aWelcome to the server!

Direct Command:

/npc action <name> add /<command>

Executes a server command (same as CONSOLE).

Example:

/npc action Steve add /tp %player% 0 100 0

Placeholders

Use %player% in actions to reference the player who interacted with the NPC.

Examples:

/npc action Steve add MESSAGE:Hello, %player%!
/npc action Steve add CONSOLE:give %player% diamond 5
/npc action Steve add PLAYER:say I clicked %player%