Minecraft - Right Click Detection For Any Item

Channel:
Subscribers:
104,000
Published on ● Video Link: https://www.youtube.com/watch?v=0Mt4-N1cTQM



Minecraft
Game:
Minecraft (2011)
Duration: 10:21
86,696 views
1,546


In this video I will show you how to detect right clicks for any item in java minecraft 1.16.
If you liked this video, please be sure to hit the like button and let me know in the comments why you liked it! If you really love my content, please consider subscribing!

**********************************
Go Check Out My Tier 2 Members!
Xobot: https://www.youtube.com/channel/UCFshYLIZjee0LDUmq-nFXGA

The commands used in this video:
Create scoreboard: /scoreboard objectives add Test minecraft.used:minecraft.carrot_on_a_stick
Show scoreboard: /scoreboard objectives setdisplay sidebar Test
Right click detection: /execute as @r at @s if entity @s[scores={Test=1..}] run tp @s ~ ~10 ~
Give carrot on a stick: /replaceitem entity @p weapon.offhand carrot_on_a_stick 1
Reset scoreboard: /scoreboard players reset @a Test


Test for right clicking netherite sword: /execute as @r at @s if entity @s[scores={Test=1..},nbt={SelectedItem:{id:"minecraft:netherite_sword",Count:1b}}] run say Right clicked netherite sword!


Give wand of levitation: /give @p stick{display:{Name:'{"text":"Wand Of Levitation","color":"gold","bold":true}',Lore:['{"text":"Fly through the skies with this wand!","color":"red","bold":true}']}} 1
Check for right clicking wand of levitation: /execute as @r at @s if entity @s[scores={Test=1..},nbt={SelectedItem:{id:"minecraft:stick",Count:1b,tag:{display:{Name:'{"text":"Wand Of Levitation","color":"gold","bold":true}',Lore:['{"text":"Fly through the skies with this wand!","color":"red","bold":true}']}}}}] run effect give @s minecraft:levitation 1 1


Check for wand of levitation in hand: /execute as @r at @s if entity @s[nbt={SelectedItem:{id:"minecraft:stick",Count:1b,tag:{display:{Name:'{"text":"Wand Of Levitation","color":"gold","bold":true}',Lore:['{"text":"Fly through the skies with this wand!","color":"red","bold":true}']}}}}]
Check for right clicking wand of levitation: /execute as @r at @s if entity @s[scores={Test=1},nbt={SelectedItem:{id:"minecraft:stick",Count:1b,tag:{display:{Name:'{"text":"Wand Of Levitation","color":"gold","bold":true}',Lore:['{"text":"Fly through the skies with this wand!","color":"red","bold":true}']}}}}]
Give levitation effect: effect give @p minecraft:levitation 2 1
Reset scoreboard: /scoreboard players reset @a Test



👕Buy My Mug or Merch 🡆 https://teespring.com/stores/maxstuff
🧡Become a member 🡆 https://www.youtube.com/channel/UCzkqOdzxj4wY7BmWdXWueoA/join
👍Subscribe to my channel 🡆 http://www.youtube.com/channel/UCzkqOdzxj4wY7BmWdXWueoA?sub_confirmation=1

***********************************

💻Youtube 🡆 https://www.youtube.com/c/maxstuff
🎮Discord 🡆 https://discord.gg/SWUu3dr
🔷Twitter 🡆 https://twitter.com/Mario_Hierio
📷Instagram 🡆 https://www.instagram.com/maxstuff_insta/

***********************************
#minecraft #rightclick #detection







Tags:
Minecraft
Mariohieriomariodario
Maximiliaande5de
Max
MaxMakesMusic
Makes
Music
Stuff
MaxStuff
java
1.16
right
click
clicking
detection
detect
check
test
for
player
how
to
command
commands
carrot
on
stick
carrot on a stick
any
item
all
every
items
use
button



Other Statistics

Minecraft Statistics For MaxStuff

MaxStuff currently has 18,028,806 views spread across 1,183 videos for Minecraft. This game accounts for over 16 days of watchable video on his channel, roughly 79.87% of Minecraft content that MaxStuff has uploaded to YouTube.