scoreboard players set @e[name=Map,type=armor_stand] Options 5
blockdata 4 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionNextMap\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Map:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Random\",\"bold\":true,\"color\":\"gold\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
blockdata 500 101 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionNextMap\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Map:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Random\",\"bold\":true,\"color\":\"gold\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
scoreboard players tag @e[name=FunctionRunner,type=armor_stand] add RandomMap

scoreboard players set @e[name=ArtificialPlayer,type=armor_stand] Options 5
execute @e[name=ArtificialPlayer,score_Options_min=1] ~ ~ ~ blockdata 5 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionAddArtificialPlayer\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Artificial players:\",\"color\":\"dark_aqua\"}",Text3:"{\"score\":{\"name\":\"@e[type=armor_stand,name=ArtificialPlayer]\",\"objective\":\"Options\"},\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=ArtificialPlayer,score_Options_min=1] ~ ~ ~ blockdata 501 101 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionAddArtificialPlayer\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Artificial players:\",\"color\":\"dark_aqua\"}",Text3:"{\"score\":{\"name\":\"@e[type=armor_stand,name=ArtificialPlayer]\",\"objective\":\"Options\"},\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}

scoreboard players set @e[name=MurderNumber,type=armor_stand] Options 1
blockdata 3 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionAddMurder\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Hunter:\",\"color\":\"dark_aqua\"}",Text3:"{\"score\":{\"name\":\"@e[name=MurderNumber,type=armor_stand]\",\"objective\":\"Options\"},\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
blockdata 499 101 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionAddMurder\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Hunter:\",\"color\":\"dark_aqua\"}",Text3:"{\"score\":{\"name\":\"@e[name=MurderNumber,type=armor_stand]\",\"objective\":\"Options\"},\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}

scoreboard players set @e[name=InnocentAISpeed,type=armor_stand] Options 0
blockdata 9 102 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionInnocentAISpeed\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"InnocentAI speed:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Off\",\"bold\":true,\"color\":\"dark_green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
blockdata 501 102 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionInnocentAISpeed\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"InnocentAI speed:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Off\",\"bold\":true,\"color\":\"dark_green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}

scoreboard players set @e[name=SurviveFor,type=armor_stand] Options 1
blockdata 8 102 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionSurviveFor\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Survive for:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"2min\",\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\"}"}
blockdata 500 102 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionSurviveFor\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Survive for:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"2min\",\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\"}"}

scoreboard players set @e[name=PowerupsOptions,type=armor_stand] 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\"}"}
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\"}"}

scoreboard players set @e[name=NameTag,type=armor_stand] Options 1
blockdata 8 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionNameTag\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Player name:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Hide\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
blockdata 500 101 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionNameTag\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Player name:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Hide\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}

scoreboard players set @e[name=CanBeMurder,type=armor_stand] Options 0
blockdata 7 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionCanBeMurder\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Can be Hunter:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Only player\",\"bold\":true,\"color\":\"gold\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
blockdata 499 101 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionCanBeMurder\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Can be Hunter:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Only player\",\"bold\":true,\"color\":\"gold\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}

scoreboard players set @e[name=Time,type=armor_stand] Options 0
time set 6000
kill @e[name=RandomTimerShootingstar,type=area_effect_cloud]
blockdata 7 102 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionTime\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Time:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Day\",\"bold\":true,\"color\":\"gold\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
blockdata 499 102 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionTime\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Time:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Day\",\"bold\":true,\"color\":\"gold\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}

clone 3 100 12 5 102 12 499 100 524
function main:scoreboard/lobby
scoreboard players tag @e[tag=Option] remove AdvancedOptionsPage

title @a[tag=OptionReset] time 0 50 10
title @a[tag=OptionReset] title {"text":""}
title @a[tag=OptionReset] subtitle ["",{"text":"You reset the ","color":"aqua"},{"text":"Options","color":"dark_aqua","bold":"true"},{"text":".","color":"aqua"}]

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