How to get commands to work per person in tick function
#Night Vision Goggles title @a times 0 20t 0 execute as @a if data entity @s Inventory[{id:"minecraft:carrot_on_a_stick",Slot:-106b,components:{"minecraft:custom_name":'{"color":"dark_green","italic":false,"text":"Night Vision Goggles"}'}}] run title @s title {"text":"a","font":"filter:fill","color":"#009105"} execute as @a if data entity @s Inventory[{id:"minecraft:carrot_on_a_stick",Slot:-106b,components:{"minecraft:custom_name":'{"color":"dark_green","italic":false,"text":"Night Vision Goggles"}'}}] run effect give @s night_vision 1 0 true execute as @a unless data entity @s Inventory[{id:"minecraft:carrot_on_a_stick",Slot:-106b,components:{"minecraft:custom_name":'{"color":"dark_green","italic":false,"text":"Night Vision Goggles"}'}}] run title @a reset execute as @a unless data entity @s Inventory[{id:"minecraft:carrot_on_a_stick",Slot:-106b,components:{"minecraft:custom_name":'{"color":"dark_green","italic":false,"text":"Night Vision Goggles"}'}}] run effect clear @a night_vision
I need these commands to work per person but currently if one person puts it in their offhand nothing happens, and everyone has to put in their offhand for it to work, how do I get it so it works per person
Continue to help post