execute @a[tag=OptionPowerups] ~ ~ ~ scoreboard players add @e[name=PowerupsOptions,type=armor_stand] Options 1
execute @a[tag=OptionPowerups] ~ ~ ~ execute @e[name=PowerupsOptions,score_Options_min=5] ~ ~ ~ scoreboard players set @s Options 0
execute @a[tag=OptionPowerups] ~ ~ ~ execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=0,score_Options=0] ~ ~ ~ blockdata 9 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionPowerups\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Powerups:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Off\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionPowerups] ~ ~ ~ execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=0,score_Options=0] ~ ~ ~ blockdata 501 101 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionPowerups\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Powerups:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Off\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionPowerups] ~ ~ ~ execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=1,score_Options=1] ~ ~ ~ blockdata 9 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionPowerups\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Powerups:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"1min\",\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionPowerups] ~ ~ ~ execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=1,score_Options=1] ~ ~ ~ blockdata 501 101 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionPowerups\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Powerups:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"1min\",\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionPowerups] ~ ~ ~ execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=2,score_Options=2] ~ ~ ~ blockdata 9 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionPowerups\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Powerups:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"30sec\",\"bold\":true,\"color\":\"gold\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionPowerups] ~ ~ ~ execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=2,score_Options=2] ~ ~ ~ blockdata 501 101 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionPowerups\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Powerups:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"30sec\",\"bold\":true,\"color\":\"gold\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionPowerups] ~ ~ ~ execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=3,score_Options=3] ~ ~ ~ blockdata 9 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionPowerups\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Powerups:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"20sec\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionPowerups] ~ ~ ~ execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=3,score_Options=3] ~ ~ ~ blockdata 501 101 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionPowerups\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Powerups:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"20sec\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionPowerups] ~ ~ ~ execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=4,score_Options=4] ~ ~ ~ blockdata 9 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionPowerups\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Powerups:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"10sec\",\"bold\":true,\"color\":\"dark_red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionPowerups] ~ ~ ~ execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=4,score_Options=4] ~ ~ ~ blockdata 501 101 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionPowerups\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Powerups:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"10sec\",\"bold\":true,\"color\":\"dark_red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}

title @a[tag=OptionPowerups] times 0 50 10
title @a[tag=OptionPowerups] title {"text":""}
execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=0,score_Options=0] ~ ~ ~ title @a[tag=OptionPowerups] subtitle ["",{"text":"There won't be any ","color":"aqua"},{"text":"Powerups","color":"dark_aqua","bold":"true"},{"text":" in the game.","color":"aqua"}]
execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=1,score_Options=1] ~ ~ ~ title @a[tag=OptionPowerups] subtitle ["",{"text":"The Powerups will spawn every: ","color":"aqua"},{"text":"1 minute","color":"dark_aqua","bold":"true"},{"text":".","color":"aqua"}]
execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=2,score_Options=2] ~ ~ ~ title @a[tag=OptionPowerups] subtitle ["",{"text":"The Powerups will spawn every: ","color":"aqua"},{"text":"30 seconds","color":"dark_aqua","bold":"true"},{"text":".","color":"aqua"}]
execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=3,score_Options=3] ~ ~ ~ title @a[tag=OptionPowerups] subtitle ["",{"text":"The Powerups will spawn every: ","color":"aqua"},{"text":"20 seconds","color":"dark_aqua","bold":"true"},{"text":".","color":"aqua"}]
execute @e[name=PowerupsOptions,type=armor_stand,score_Options_min=4,score_Options=4] ~ ~ ~ title @a[tag=OptionPowerups] subtitle ["",{"text":"The Powerups will spawn every: ","color":"aqua"},{"text":"10 seconds","color":"dark_aqua","bold":"true"},{"text":".","color":"aqua"}]

execute @a[tag=OptionPowerups] ~ ~ ~ playsound minecraft:ui.button.click master @s ~ ~ ~
scoreboard players tag @a[tag=OptionPowerups] remove OptionPowerups