#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    This function has been created by Skilendarz Group.
#             https://skilendarz.com
#
#      GIVE MAP MAKERS THE CREDIT THEY DESERVE!
#             COPYING IS PROHIBITED!
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

tag @s add hold_sensor
item replace entity @s weapon.offhand with minecraft:carrot_on_a_stick{display:{Name:'""'},Limit:1}


#Switch
scoreboard players add @s activity_sensor 0
scoreboard players add @s[scores={click=1..}] activity_sensor 1
playsound minecraft:ui.button.click master @s[scores={click=1..}] ~ ~ ~
title @s[scores={click=1..}] title {"text":""}
title @s[scores={click=1..}] times 5 30 5
title @s[scores={activity_sensor=1,click=1..}] subtitle ["",{"translate":"activity_sensor.switched","color":"gold","bold":true},{"translate":"activity_sensor.pumpkins","color":"white","bold":true}]
title @s[scores={activity_sensor=2,click=1..}] subtitle ["",{"translate":"activity_sensor.switched","color":"gold","bold":true},{"translate":"activity_sensor.steals","color":"white","bold":true}]
title @s[scores={activity_sensor=3,click=1..}] subtitle ["",{"translate":"activity_sensor.switched","color":"gold","bold":true},{"translate":"activity_sensor.powerups","color":"white","bold":true}]
title @s[scores={activity_sensor=4,click=1..}] subtitle ["",{"translate":"activity_sensor.switched","color":"gold","bold":true},{"translate":"activity_sensor.gold","color":"white","bold":true}]
title @s[scores={activity_sensor=5,click=1..}] subtitle ["",{"translate":"activity_sensor.switched","color":"gold","bold":true},{"translate":"activity_sensor.none","color":"white","bold":true}]
title @s[scores={activity_sensor=6,click=1..}] subtitle ["",{"translate":"activity_sensor.switched","color":"gold","bold":true},{"translate":"activity_sensor.all","color":"white","bold":true}]

scoreboard players set @s[scores={activity_sensor=6..}] activity_sensor 0

