Right Click Detection

Commands to run once:

Impulse Command Block, command block, Minecraft, cmd, Cimap, one command, Command Blocks

/scoreboard objectives add click stat.useItem.minecraft.carrot_on_a_stick

COLUMN 1

/scoreboard players reset @e[score_click_min=1] click

execute @a[score_click_min=1,tag=holdCLCK] ~ ~ ~ /summon FireworksRocketEntity ~ ~1 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Trail:1,Colors:[16711680],FadeColors:[16711680]}]}}}}

scoreboard players tag @a add holdCLCK {SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{special:1}}}

scoreboard players tag @a[tag=holdCLCK] remove holdCLCK

Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Repeat Command Block, Blue Command Block, Minecraft, cmd, Cimap, one command, Command Blocks

/scoreboard players reset @e[score_click_min=1] click

execute @e[score_click_min=1] ~ ~ ~ /summon FireworksRocketEntity ~ ~1 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Trail:1,Colors:[16711680],FadeColors:[16711680]}]}}}}

Chain Command Block, Green Command Block, Minecraft, cmd, Cimap, one command, Command Blocks
Repeat Command Block, Blue Command Block, Minecraft, cmd, Cimap, one command, Command Blocks

How it works:

See what's inside of each command block!

COPYRIGHT © CIMAP. ALL RIGHTS RESERVED.

This website is not endorsed, associated or affiliated with Mojang AB.

Contact me for business enquiries.

Impulse Command Block, command block, Minecraft, cmd, Cimap, one command, Command Blocks