scoreboard players add @e[name=MurderNumber,score_OptionsFail_min=1,type=armor_stand] OptionsFail 1
execute @e[name=MurderNumber,score_OptionsFail_min=20,score_OptionsFail=20] ~ ~ ~ /scoreboard players set @e[name=MurderNumber,type=armor_stand] Options 1
execute @e[name=MurderNumber,score_OptionsFail_min=20,score_OptionsFail=20] ~ ~ ~ /title @a[tag=OptionFailAddMurder] times 0 30 5
execute @e[name=MurderNumber,score_OptionsFail_min=20,score_OptionsFail=20] ~ ~ ~ /title @a[tag=OptionFailAddMurder] title {"text":" "}
execute @e[name=MurderNumber,score_OptionsFail_min=20,score_OptionsFail=20] ~ ~ ~ /title @a[tag=OptionFailAddMurder] subtitle {"text":"Oops","color":"red"}
execute @e[name=MurderNumber,score_OptionsFail_min=20,score_OptionsFail=20] ~ ~ ~ /tellraw @a[tag=Tellraw1] ["",{"text":"Error:","color":"red"},{"text":" You can't have more ","color":"gold"},{"text":"Hunters","color":"dark_aqua"},{"text":" than players/artificial player who can be Hunter.","color":"gold"}]
execute @e[name=MurderNumber,score_OptionsFail_min=20,score_OptionsFail=20] ~ ~ ~ /tellraw @a[tag=Tellraw2] ["",{"text":"Error:","color":"red"},{"text":" You can't have everyone ","color":"gold"},{"text":"Hunter","color":"dark_aqua"},{"text":". You need at least one Innocent.","color":"gold"}]
execute @e[name=MurderNumber,score_OptionsFail_min=30,score_OptionsFail=30] ~ ~ ~ /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:"{\"text\":\"1\",\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=MurderNumber,score_OptionsFail_min=30,score_OptionsFail=30] ~ ~ ~ execute @e[tag=Option,type=armor_stand] ~ ~ ~ execute @s[tag=!AdvancedOptionsPage] ~ ~ ~ /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:"{\"text\":\"1\",\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[tag=!AdvancedOptionsPage] ~ ~ ~ execute @s[tag=Option] ~ ~ ~ execute @e[name=MurderNumber,score_OptionsFail_min=30,score_OptionsFail=30] ~ ~ ~ /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:"{\"text\":\"1\",\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @e[name=MurderNumber,score_OptionsFail_min=30,score_OptionsFail=30] ~ ~ ~ /tellraw @a[tag=OptionFailAddMurder] ["",{"text":"The map automatically changed ","color":"gold"},{"text":"Hunter","color":"dark_aqua"},{"text":" "},{"text":"to","color":"gold"},{"text":" "},{"text":"1","bold":true,"color":"green"},{"text":".","color":"gold"}]
function main:scoreboard/lobby if @e[name=MurderNumber,score_OptionsFail_min=30,score_OptionsFail=30]
scoreboard players set @e[name=MurderNumber,score_OptionsFail_min=30] OptionsFail 0
execute @e[name=MurderNumber,score_OptionsFail=0] ~ ~ ~ scoreboard players tag @a[tag=OptionFailAddMurder] remove OptionFailAddMurder
execute @e[name=MurderNumber,score_OptionsFail=0] ~ ~ ~ scoreboard players tag @a[tag=Tellraw1] remove Tellraw1
execute @e[name=MurderNumber,score_OptionsFail=0] ~ ~ ~ scoreboard players tag @a[tag=Tellraw2] remove Tellraw2