CommandItems

Command Items (or item commands) allows you to generate items with commands linked to them using NBT data.

775

Quick challenge

How far can you run before the mobs catch you?

CommandItems

🪄 CommandItems

Create custom items that execute commands when right-clicked — perfect for mapmakers, admins, or creative setups!

---

📹 Showcase

---

🔧 Features

- Make items that permission control when used - Run commands as permission control or permission control (`c:<command>`) - Create, edit, or inspect command-bound items - Includes simple permission control like `%player%`, `%world%`, `%x%`, and more - permission control for all item names - Full permission control for creation and usage

---

📜 Commands

| Command | Description | |----------|--------------| | `/createitem <item> <command>` | Creates an item that runs the specified command | | `/applycommand <command>` | Applies a command to the item in your hand | | `/info` | Displays any commands linked to the held item |

---

🧩 Placeholders

Use these placeholders inside your command strings:

| Placeholder | Replaced With | |----------------|----------------------------------------| | `%player%` | Player's name | | `%uuid%` | Player's UUID | | `%world%` | Player's current world | | `%x%` | Player's X coordinate (block) | | `%y%` | Player's Y coordinate (block) | | `%z%` | Player's Z coordinate (block) | | `%location%` | Combined XYZ: `x y z` | | `%health%` | Player's current health (rounded) | | `%food%` | Player's current food level | | `%gamemode%` | Player's gamemode (`survival`, etc.) | | `%exp%` | Player's total experience |

---

✅ Permissions

| Node | Description | |------|--------------| | `command.item.create` | Lets you generate and edit command items | | `command.item.use` | Allows using command items as a player | | `command.item.use.console` | Allows running commands from items as console (dangerous!) |

---

🧱 Works with: Paper, Spigot, and Bukkit (1.13+) 📂 Just drop the plugin in your `plugins/` folder — no setup required!

ADS