
LG's Command Items - Easy Custom Items
This datapack adds a way to add commands directly as a component to items! Great way to add custom items with some additional features like cooldowns!
Обновлён 9 апреля 2026 г. · опубликован 16 октября 2025 г.
🔀 LG's Command Items datapack
This datapack adds a way to add commands directly to items when triggering a specific event, events stacks meaning you can have a command for Right-Click as well as a command when attacking a mob or getting attacked!
Usage Tutorial
Use /function a:open_menu command, then click Add Commands button, select your input and slot, then confirm with the red "Confirm" button, it will add the command to your selected input + slot combination
Current Triggers & Slots
Triggers
- Tick (20 times per second)
- Use Item (on right-click, requires the item to be consumable, the Item Modifier makes it easy to turn an item into consumable, check commands)
- Using Item (Triggers whenever you're using the item)
- Player Hurt Entity (whenever player attacks an entity)
- Player Killed Entity (whenever player kills an entity)
- Entity Hurt Player (whenever the player gets damaged)
- Inventory Changed (whenever players' inventory changes)
Slots
- Mainhand
- Offhand
- Head
- Chest
- Legs
- Feet
Limitations
You can only put one command into each trigger + slot combo, to use several commands, it is recommended to use functions
For any ticking trigger, I recommend not using cooldowns simply for optimization purposes, it won't fry your ticks if you don't do so, but with several players using those, it may very likely affect your performance negatively
Other Additions
- Cooldowns - You can easily add cooldowns to your commands, they generate no scoreboards and are bound directly to items
- Swap Hand Items - Simply swaps your mainhand and offhand items
- Show Cooldown - When on cooldown, displays the cooldown on the chat, not recommended to use on ticking triggers so not to flood your chat
- Consume On Trigger - Once triggered, consumes 1 of the used items
⚠️ Important commands!
/function a:open_menu
/function a:copy_item
/function ci:reset_cds
🔴 YouTube Showcase
Версии
| Версия | Канал | Игра | Загрузчики | Дата | Скачать |
|---|---|---|---|---|---|
| 1.0.3+mod | Релиз | 1.21.11, 26.1, 26.1.1, 26.1.2 | fabric, forge, neoforge, quilt | 9 апреля 2026 г. | Скачать (225 КБ) |
| 1.0.3+mod | Релиз | 1.21.8, 1.21.9, 1.21.10, 1.21.11 | fabric, forge, neoforge, quilt | 6 апреля 2026 г. | Скачать (225 КБ) |
| 1.0.3+mod | Релиз | 1.21.8, 1.21.9, 1.21.10, 1.21.11 | fabric, forge, neoforge, quilt | 14 декабря 2025 г. | Скачать (225 КБ) |
| 1.0.3+mod | Релиз | 1.21.7, 1.21.8, 1.21.9, 1.21.10 | fabric, forge, neoforge, quilt | 9 ноября 2025 г. | Скачать (225 КБ) |
| 1.0.3 | Релиз | 1.21.11, 26.1, 26.1.1, 26.1.2 | datapack | 9 ноября 2025 г. | Скачать (107 КБ) |
| 1.0.2+mod | Релиз | 1.21.7, 1.21.8, 1.21.9, 1.21.10 | fabric, forge, neoforge, quilt | 9 ноября 2025 г. | Скачать (225 КБ) |
| 1.0.2 | Релиз | 1.21.7, 1.21.8, 1.21.9, 1.21.10 | datapack | 9 ноября 2025 г. | Скачать (106 КБ) |
| 1.0.1+mod | Релиз | 1.21.7, 1.21.8, 1.21.9, 1.21.10 | fabric, forge, neoforge, quilt | 22 октября 2025 г. | Скачать (225 КБ) |
| 1.0.1 | Релиз | 1.21.7, 1.21.8, 1.21.9, 1.21.10 | datapack | 22 октября 2025 г. | Скачать (106 КБ) |
| 1.0+mod | Релиз | 1.21.7, 1.21.8, 1.21.9, 1.21.10 | fabric, forge, neoforge, quilt | 18 октября 2025 г. | Скачать (224 КБ) |
| 1.0 | Релиз | 1.21.7, 1.21.8, 1.21.9, 1.21.10 | datapack | 16 октября 2025 г. | Скачать (106 КБ) |
Ченджлог
1.0.3+modРелиз26.1, 26.1.1, 26.1.2 · 9 апреля 2026 г.
Fixed cooldowns not working if the cooldown is increased by the run command
1.0.3+modРелиз1.21.9, 1.21.10, 1.21.11 · 6 апреля 2026 г.
Fixed cooldowns not working if the cooldown is increased by the run command
1.0.3+modРелиз1.21.9, 1.21.10, 1.21.11 · 14 декабря 2025 г.
Fixed cooldowns not working if the cooldown is increased by the run command
1.0.3+modРелиз1.21.8, 1.21.9, 1.21.10 · 9 ноября 2025 г.
Fixed cooldowns not working if the cooldown is increased by the run command
1.0.3Релиз26.1, 26.1.1, 26.1.2 · 9 ноября 2025 г.
Fixed cooldowns not working if the cooldown is increased by the run command
1.0.2+modРелиз1.21.8, 1.21.9, 1.21.10 · 9 ноября 2025 г.
Fixed swapping hands with tick input
1.0.2Релиз1.21.8, 1.21.9, 1.21.10 · 9 ноября 2025 г.
Fixed swapping hands with tick input
1.0.1+modРелиз1.21.8, 1.21.9, 1.21.10 · 22 октября 2025 г.
Added a server message when pack is installed with an open world (which doesn't let function a:open_menu to be available)
Комментарии
Загружаем…


