Published on March 06, 2022 (Updated on September 29, 2023)

[1.20.30] Run Command on Item Use

With RCoTu (Run Command on Item use) you can run ANY Command if a Player use (right click/hold down/...) a specific Item.Example:If a Player uses a Compass then the Player is teleported to the Spawn.

Select version for changelog:

Changelog
  • Updated to 1.20.30                   

Installation

Downloads

Supported Minecraft versions

1
This doesn't work for 1.20.10
1
update for 1.20.31 please
im begging u
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
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
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}]
1
OMG FINNALLY y=You updated this, I can't wait to try it out and use it on my Minecraft Realm.
1
I'm stupid. I apologize for the original text of this comment. Can you add a left click detector to this addon?