Run Command on Item use

Run Command on Item use

By Hajsori Published 14 Aug 2025 · Updated 14 Aug 2025
1.3k
4.1

Select version for changelog:

Changelog
  • Updated pack icon

Downloads

  • Run_Command_on_Item_use_v1.1.6.mcpack (628.32 KB)

1
FatalFantasyGaming53YT November 10, 2024 at 1:54 am
ok yall i fixed his code completly works for the newest bedrock version i will not post the code untill he saids it ok tho
1
FatalFantasyGaming53YT November 10, 2024 at 1:56 am
@DerCoderJo
1
Can you send me the fix? I don't think the owner is going to respond.
1
what's the difference between itemUseOn and itemUse ?
1
FatalFantasyGaming53YT November 10, 2024 at 2:00 am
itemuseon is holding down and itemuse is just using the item
1
This doesn't work for 1.20.10
1
update for 1.20.31 please
im begging u
1
FatalFantasyGaming53YT November 10, 2024 at 2:01 am
i did im waiting on the owner
to let me know if i can give it to yall
1
pls add left click detection
1
why when i change the name of an item and put it in the itemUse tag it doesnt work but when i use it normally it works
1
If you're renaming an item then you still have to put the original name of the item in the command, for example of I renamed a compass to Spawn, I sti have to put "itemUse:minecraft:compass" in the command, but not itemUse:spawn or minecraft:spawn
1
Why isn't the add-on working
1
Update to 1.20.10
When I typed the command that when right clicking using a netherite sword the player will dash but it just dash everytime even if in not holding the sword or rightclicking
1
I don't think the 1.20 version is working properly :(
1
Update this addon to 1.20, in 1.20 nothing works pls update
1
This comment has been removed
1
Well, actually works (kinda of) because it can remove tags and still can detect item name, but requires extra command blocks, the problem i found is that the addon cant add tags like "itemUse:minecraft:paper" to the player, so to fix it you need to make the addon adds the tags again, one of my world have this addon, it worked normally before 1.20 but i had to change some of the command blocks and add extra command block, so please update this addon
1
in version 1.20.0 there is a bug that is when we use an item we don't get the tag but only remove the tag
1
did you download it on github? maybe it's an old version
1
I've downloaded it on github and that's the result, even I've tried all versions
1
Can you PLEASE also make it give you a tag with the items data value, like for example if the date value is 10 then the tag could be called itemUseData:10, just like Red Raindrop had said.
1
You can use the hasitem to fix that, example: execute at @a [tag="itemUse:minecraft:diamond",hasitem={item=diamond,data=1}]