scoreboard players add @e[name=Map,type=armor_stand] Options 1
execute @e[name=Map,score_Options_min=6] ~ ~ ~ scoreboard players set @s Options 0
execute @e[name=Map,type=armor_stand,score_Options_min=0,score_Options=0] ~ ~ ~ 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\":\"Village\",\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=Map,type=armor_stand,score_Options_min=0,score_Options=0] ~ ~ ~ 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\":\"Village\",\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=Map,type=armor_stand,score_Options_min=1,score_Options=1] ~ ~ ~ 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\":\"FarmLand\",\"bold\":true,\"color\":\"gray\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=Map,type=armor_stand,score_Options_min=1,score_Options=1] ~ ~ ~ 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\":\"FarmLand\",\"bold\":true,\"color\":\"gray\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=Map,type=armor_stand,score_Options_min=2,score_Options=2] ~ ~ ~ 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\":\"Frosty\",\"bold\":true,\"color\":\"aqua\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=Map,type=armor_stand,score_Options_min=2,score_Options=2] ~ ~ ~ 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\":\"Frosty\",\"bold\":true,\"color\":\"aqua\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=Map,type=armor_stand,score_Options_min=3,score_Options=3] ~ ~ ~ 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\":\"Building\",\"bold\":true,\"color\":\"dark_blue\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=Map,type=armor_stand,score_Options_min=3,score_Options=3] ~ ~ ~ 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\":\"Building\",\"bold\":true,\"color\":\"dark_blue\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=Map,type=armor_stand,score_Options_min=4,score_Options=4] ~ ~ ~ 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\":\"Railway\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=Map,type=armor_stand,score_Options_min=4,score_Options=4] ~ ~ ~ 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\":\"Railway\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=Map,type=armor_stand,score_Options_min=5,score_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\"}"}
execute @e[name=Map,type=armor_stand,score_Options_min=5,score_Options=5] ~ ~ ~ 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\"}"}

execute @e[name=Map,type=armor_stand,score_Options_min=5,score_Options=5] ~ ~ ~ scoreboard players tag @e[name=FunctionRunner,type=armor_stand] add RandomMap
execute @e[name=Map,type=armor_stand,score_Options=4] ~ ~ ~ scoreboard players tag @e[name=FunctionRunner,type=armor_stand] remove RandomMap

title @a[tag=OptionNextMap] times 0 50 10
title @a[tag=OptionNextMap] title {"text":""}
execute @e[name=Map,type=armor_stand,score_Options_min=0,score_Options=0] ~ ~ ~ title @a[tag=OptionNextMap] subtitle ["",{"text":"You have selected the map: ","color":"aqua"},{"text":"Village","color":"green","bold":"true"},{"text":".","color":"aqua"}]
execute @e[name=Map,type=armor_stand,score_Options_min=1,score_Options=1] ~ ~ ~ title @a[tag=OptionNextMap] subtitle ["",{"text":"You have selected the map: ","color":"aqua"},{"text":"FarmLand","color":"gray","bold":"true"},{"text":".","color":"aqua"}]
execute @e[name=Map,type=armor_stand,score_Options_min=2,score_Options=2] ~ ~ ~ title @a[tag=OptionNextMap] subtitle ["",{"text":"You have selected the map: ","color":"aqua"},{"text":"Frosty","color":"aqua","bold":"true"},{"text":".","color":"aqua"}]
execute @e[name=Map,type=armor_stand,score_Options_min=3,score_Options=3] ~ ~ ~ title @a[tag=OptionNextMap] subtitle ["",{"text":"You have selected the map: ","color":"aqua"},{"text":"Building","color":"dark_blue","bold":"true"},{"text":".","color":"aqua"}]
execute @e[name=Map,type=armor_stand,score_Options_min=4,score_Options=4] ~ ~ ~ title @a[tag=OptionNextMap] subtitle ["",{"text":"You have selected the map: ","color":"aqua"},{"text":"Railway","color":"red","bold":"true"},{"text":".","color":"aqua"}]
execute @e[name=Map,type=armor_stand,score_Options_min=5,score_Options=5] ~ ~ ~ title @a[tag=OptionNextMap] subtitle ["",{"text":"One map will be selected ","color":"aqua"},{"text":"Randomly","color":"gold","bold":"true"},{"text":".","color":"aqua"}]
execute @a[tag=OptionNextMap] ~ ~ ~ playsound minecraft:ui.button.click master @s ~ ~ ~
function main:scoreboard/lobby if @a[tag=OptionNextMap]
scoreboard players tag @a[tag=OptionNextMap] remove OptionNextMap