LG's Command Items - Easy Custom Items
ModThis 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!
Type
Mod
Modrinth Downloads
1,501
Modrinth ID
OpFJU5ef
Last Updated
Jun 4, 2026
Description
🔀 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
Compatibility
Mod Loaders
Game Versions
Screenshots
Similar Mods
Cave Additions
A Cave improvement mod
Ancient Iron
A bare-bones compat between the two mods, "Apotheosis x Iron's Spells" and "Ancient Reforging"
Create Aeronautics: Boat Propellers
This mod adds an boat propeller bearing that works more efficient with less su and rpm its great for early game and late...
Heat And Climate Patch
Minor patch(es) for defeatedcrow/HeatAndClimateMod.
Ledger for Forge
Block logging for server moderation, logs blocks placed and changes by players, see who and what they took out of chest...
Pet Home
Add some pet collar to make your pets engaging, improves upon and compliments tameable mobs