#Off execute if score @s RAN.CoordPower matches 0 run tellraw @s ["",{"text":"\nCoordinates Control Panel:\n","color":"gold","bold":"true"},{"text":"\n[Turn On]","color":"green","clickEvent":{"action":"run_command","value":"/trigger Coordinates set 51"}}] #On execute if score @s RAN.CoordPower matches 1 run tellraw @s ["",{"text":"\nCoordinates Control Panel:\n","color":"gold","bold":"true"},{"text":"[Change Color]","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger Coordinates set 2"}},{"text":" "},{"text":"[Change Mode]\n","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger Coordinates set 3"}},{"text":"\n[Turn Off]","color":"red","clickEvent":{"action":"run_command","value":"/trigger Coordinates set 50"}}] scoreboard players set @s Coordinates 0