144
Hey Today I Am Will Learn You How Right Click Detection
This Tutorial For Players Want Make Parkour Maps Or Custom Swords Pack
YOU FOUND A CP EASTER
This Tutorial For Players Want Make Parkour Maps Or Custom Swords Pack
Normal Command (Impulse Commands)
Get "Carrot On The Stick"
give @p carrot_on_a_stick{display:{Name:'{"text":"Example"}'},RepairCost:1,Unbreakable:1b,Damage:1,CustomModelData:123456,exampletag:1b} 1
give @p carrot_on_a_stick{display:{Name:'{"text":"Example"}'},RepairCost:1,Unbreakable:1b,Damage:1,CustomModelData:123456,exampletag:1b} 1
Tick Commands (Requested To Repeat)
Add Scoreboard (Requested Command)
scoreboard objectives add example minecraft.used:minecraft.carrot_on_a_stick
Player Holding Detection (Requested Command)
Right Click Detection (Request Command)
scoreboard players remove @a[scores={example=1..}] example 1
scoreboard objectives add example minecraft.used:minecraft.carrot_on_a_stick
Player Holding Detection (Requested Command)
execute as @a[scores={example=1..},nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{exampletag:1b}}}] at @s run INSERT A COMMAND HERE
Right Click Detection (Request Command)
scoreboard players remove @a[scores={example=1..}] example 1
YOU FOUND A CP EASTER
Tags |
tools/tracking
5307949
6
datapack-function-tutorial-1-right-click-detection
Create an account or sign in to comment.