Skip to content

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!

FabricNeoForgeForgeQuilt
Loaders
FabricNeoForgeForgeQuilt
Downloads on Modrinth
2.8K
Followers on Modrinth
13
versions
11
Updated
April 9, 2026Apr 9
Published
in 2025
Item Modifier section · swipe

At a glance

Runs on Fabric, NeoForge, Forge and Quilt
For Minecraft 1.21.6–26.1.2
Needed on the server; optional in the game
Latest version — 1.0.3+mod from April 9, 2026
License MIT — free
Where it's needed
In gameoptionalOn serverrequired

Needed on the server; optional in the game

Game versions1.21.6–26.1.2

🔀 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

FAQ

How to install LG's Command Items - Easy Custom Items?

Install Fabric for your Minecraft version, download LG's Command Items - Easy Custom Items for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does LG's Command Items - Easy Custom Items support?

LG's Command Items - Easy Custom Items has builds for Minecraft 1.21.6–26.1.2.

Is LG's Command Items - Easy Custom Items needed on the server?

Needed on the server; optional in the game

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More