The commands works in manual input, but doesnt work in datapack.
Whats problem with this sh...?
execute as @a[scores={RightClick=1..},nbt={SelectedItem:{tag:{weapon:"revolver"}}}] run function raycast:weapons/revolver/fire
execute as @a[scores={RightClick=1..},nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{clip:"revolver"}}}] run scoreboard players set @s revolver_ammo 6
execute as @a[scores={RightClick=1..},nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{clip:"revolver"}}}] run clear @s minecraft:carrot_on_a_stick{tag:{clip:"revolver"}} 1
The first command works without any problems. But the second and third do not react in any way, although the item (carrot on stick) has NBT and scoreboard reads right-click without problems.
Continue to help post