Minecraft Right Click Detection [1.19] Several Ways @Legitimoose
Minecraft Right Click Detection [1.19] Several Ways  @Legitimoose
Uploaded September 2021 | Updated November 2026, 3 hours ago
Learn all about right click detection in vanilla Minecraft 1.17/1.18/1.19! I'll show you several methods (carrot on a stick, armor stand, villager, eye of ender, and more!*) Detecting right clicks is very useful for basically any project, ranging from custom guns/weapons, interactive menus, or... literally anything you want to be able to click. A must know! ;^)

Advancement Generator:
misode.github.io/advancement

Chapters:
0:00 - Intro
0:44 - 10,000 IQ Method
1:02 - Carrot on a Stick vs. Warped Fungus on a Stick
2:38 - How to Code Carrot/Warped Fungus Detection
5:19 - Detecting Any Item (w/ Carrot on a Stick)
5:49 - subscribe :)
6:17 - Villager Method
7:24 - Armor Stand Method
8:50 - BEST Method?!?! (Eye of Ender Method)

CARROT/WARPED FUNGUS ON A STICK COMMANDS:
scoreboard objectives add carrot minecraft.used:minecraft.carrot_on_a_stick
OR
scoreboard objectives add carrot minecraft.used:minecraft.warped_fungus_on_a_stick
^ you should probably change this to "fungus" or something

execute as @a if score @s carrot matches 1.. at @s run function tutorial:carrot
(Make sure to change "tutorial:carrot" to your function name!)

scoreboard players reset @s carrot


PUT CARROT IN OFFHAND WHEN HOLDING ITEM (in this case, a diamond):
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond"}}] run item replace entity @s weapon.offhand with carrot_on_a_stick
execute as @a[nbt=!{SelectedItem:{id:"minecraft:diamond"}}] run item replace entity @s weapon.offhand with air

ARMOR STAND METHOD:
execute as @e[type=armor_stand,nbt={HandItems:[{id:"minecraft:poppy"},{}]}] at @s run say detect!
(Replace "say detect!" with running a function that does whatever you want!)

My eye.json file (don't forget to change the function at the bottom):
{
"criteria": {
"eye": {
"trigger": "minecraft:using_item",
"conditions": {
"item": {
"items": [
"minecraft:ender_eye"
]
}
}
}
},
"rewards": {
"function": "tutorial:eye"
}
}

=== l o n k s ===
Discord Server [ discord.gg/n7z4sVG ]
Twitter [ twitter.com/Legitimoose​ ]
Twitch [ twitch.tv/legitimoose​ ]
My Editor [ youtube.com/channel/UC09ZSJRaKiM4cHQmqu27osA ]

*that is actually how many i'll show you yes**
**but don't forget warped fungus on a stick
Minecraft Right Click Detection [1.19] Several WaysParticle Image Generator [SMOOTH DOORS/FAIRY LIGHTS/ALCHEMY CIRCLES] || 1.19 Minecraft TutorialMinecraft - Secret Mob Update Video!?!?!?breadmillMORE ✨Magic Spells✨ (Noita in Minecraft Part 2)How to do a Triple Neo/3 Block Neo TUTORIALmoose playing bedwarMinecraft Resource Pack Tutorial [1.20-1.16] (READ DESCRIPTION!)Minecraft Plugin Tutorial (in Kotlin) | Project SetupGood (Bad) Minecraft Horror Maps [feat. Boolin_Brennan]Minecraft Trigger Command [1.19] TutorialWhy I Made My OWN Minecraft Server Fork
Legitimoose |

Minecraft Right Click Detection [1.19] Several Ways

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER