All Mods Resource Packs Data Packs Shaders Modpacks Plugins
LG's Command Items - Easy Custom Items

LG's Command Items - Easy Custom Items

by LordGacie • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

🔀 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

How to Install LG's Command Items - Easy Custom Items (Datapack)

LG's Command Items - Easy Custom Items by LordGacie is verified for Datapack, Fabric, Forge, Neoforge, Quilt across Minecraft versions 1.21.10, 1.21.11, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1 (latest release: 1.0.4+mod, file size: 216 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.21.10, 1.21.11, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1) and platform (Datapack, Fabric, Forge, Neoforge, Quilt).
  2. Make sure you have the compatible loader or environment installed for Datapack, Fabric, Forge, Neoforge, Quilt.
  3. Move the downloaded LG's Command Items - Easy Custom Items file into your Minecraft .minecraft/saves/<world>/datapacks folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3
Fabric Forge Neoforge Quilt
7d ago 1
26.3
Datapack
7d ago 1
26.1.x 1.21.x
Fabric Forge Neoforge Quilt
8mo ago 1
1.21.x
Fabric Forge Neoforge Quilt
8mo ago 1
1.21.x
Fabric Forge Neoforge Quilt
last yr. 1
1.21.x
Fabric Forge Neoforge Quilt
last yr. 1
26.1.x 1.21.x
Datapack
last yr. 1
1.21.x
Fabric Forge Neoforge Quilt
last yr. 1
1.21.x
Datapack
last yr. 1
1.21.x
Fabric Forge Neoforge Quilt
last yr. 1
1.21.x
Datapack
last yr. 1
1.21.x
Fabric Forge Neoforge Quilt
last yr. 1
1.21.x
Datapack
last yr. 1
updated to 26.3
[1.0.3+mod] 1.0.3 by LordGacie on Apr 09, 2026
Download
Fixed cooldowns not working if the cooldown is increased by the run command
[1.0.3+mod] 1.0.3 by LordGacie on Apr 06, 2026
Download
Fixed cooldowns not working if the cooldown is increased by the run command
[1.0.3+mod] 1.0.3 by LordGacie on Dec 14, 2025
Download
Fixed cooldowns not working if the cooldown is increased by the run command
[1.0.3+mod] 1.0.3 by LordGacie on Nov 09, 2025
Download
Fixed cooldowns not working if the cooldown is increased by the run command
[1.0.3] 1.0.3 by LordGacie on Nov 09, 2025
Download
Fixed cooldowns not working if the cooldown is increased by the run command
[1.0.2+mod] 1.0.2 by LordGacie on Nov 09, 2025
Download
Fixed swapping hands with tick input
[1.0.2] 1.0.2 by LordGacie on Nov 09, 2025
Download
Fixed swapping hands with tick input
[1.0.1+mod] 1.0.1 by LordGacie on Oct 22, 2025
Download
Added a server message when pack is installed with an open world (which doesn't let function a:open_menu to be available)
[1.0.1] 1.0.1 by LordGacie on Oct 22, 2025
Download
Added a server message when pack is installed with an open world (which doesn't let function a:open_menu to be available)
LG's Command Items - Easy Custom Items Icon
Download LG's Command Items - Easy Custom Items
Select game version
Select platform