How to make right click detection with magic spells Minecraft(JAVA)
Channel:
Subscribers:
1,420
Published on ● Video Link: https://www.youtube.com/watch?v=nJ04Gcjk9mM
Today i will show you how to make a right click detection system that uses mana to activate go watch my magic spell video to watch how to set it up.
Command 1:
execute at @a[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{display:{Name:'{"text":"Name of item"}'}}}}] run particle minecraft:electric_spark ~ ~ ~ .1 .1 .1 0 10
Commadnd2:
/execute if score Yourname carrot matches 1 run particle minecraft:explosion ~ ~ ~
Command3:
/scoreboard players set Yourname carrot 0
Command4:
/execute as @a if score Yourname mana matches 10..21 run scoreboard players remove Yourname mana 1