#How do i make a right click detection that only detects a carrot on a stick with certain custom data
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1731196469:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
Do the normal detection but put an extra if statement before the execution of whatever should happen after that.
uh
This if statement can cchek either the nbt directly or use a predicate
i dont know how to do that
what does you code durrently look like?
1s
hodl on i cant find the command block
execute as @a[scores={Clicked=..1}] run say "yay"
i found it
But you do have a fully working right click detection already?
it works with all right click detection
i mean
carrot on a stick
mb
i need it to only detect one with the custom data component but i cant figure out how to do it
[35mexecute [34mas [36m@a[33m[[37mscores[34m=[35m{[37mClicked[34m=[35m..[32m1[35m}[33m] [34mif entity [36m@s [0mweapon [33mminecraft:carrot_on_a_stick[[37mminecraft:custom_data~[35m{[37mspecial[34m:[32m1b[35m}[33m] [34mrun [35msay [32m"hi"
if you don't understand parts of the command or how it works, let me know.
[35mexecute [34mas [36m@a[33m[[37mscores[34m=[35m{[37mClicked[34m=[35m..[32m1[35m}[33m] [34mif items entity [36m@s [0mweapon [33mminecraft:carrot_on_a_stick[[37mminecraft:custom_data~[35m{[37mspecial[34m:[32m1b[35m}[33m] [34mrun [35msay [32m"hi"
now it's correct
If your question is resolved, that's great to hear! Make sure to run /resolve or click the Resolve Question button. Otherwise, feel free to continue asking for help! :D
Your question, #1304949764789637160 (How do i make a right click detection that only detects a carrot on a stick with certain custom data), was resolved!
#1304949764789637160 message
16m
This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.
Re-opened the channel. Make sure to close it again once you're done.
