scoreboard players add @e[name=ArtificialPlayer,score_OptionsFail_min=1,type=armor_stand] OptionsFail 1
execute @e[name=ArtificialPlayer,score_OptionsFail_min=20,score_OptionsFail=20] ~ ~ ~ /scoreboard players add @e[name=ArtificialPlayer,type=armor_stand] Options 1
execute @e[name=ArtificialPlayer,score_OptionsFail_min=20,score_OptionsFail=20] ~ ~ ~ /title @a[tag=OptionFailArtificialPlayer] times 0 30 5
execute @e[name=ArtificialPlayer,score_OptionsFail_min=20,score_OptionsFail=20] ~ ~ ~ /title @a[tag=OptionFailArtificialPlayer] title {"text":" "}
execute @e[name=ArtificialPlayer,score_OptionsFail_min=20,score_OptionsFail=20] ~ ~ ~ /title @a[tag=OptionFailArtificialPlayer] subtitle {"text":"Oops","color":"red"}
execute @e[name=ArtificialPlayer,score_OptionsFail_min=20,score_OptionsFail=20] ~ ~ ~ /tellraw @a[tag=OptionFailArtificialPlayer] ["",{"text":"Error:","color":"red"},{"text":" You can't have ","color":"gold"},{"text":"Artificial player","color":"dark_aqua"},{"text":" to ","color":"gold"},{"text":"Off","bold":true,"color":"red"},{"text":" when ","color":"gold"},{"text":"Can be Hunter","color":"dark_aqua"},{"text":" is ","color":"gold"},{"text":"Only AI player","bold":true,"color":"gold"},{"text":". Because there will be no Hunter.","color":"gold"}]
execute @e[name=ArtificialPlayer,score_OptionsFail_min=30,score_OptionsFail=30] ~ ~ ~ blockdata 5 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionAddArtificialPlayer\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Artificial player:\",\"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_OptionsFail_min=30,score_OptionsFail=30] ~ ~ ~ execute @e[tag=Option,type=armor_stand] ~ ~ ~ execute @s[tag=!AdvancedOptionsPage] ~ ~ ~ blockdata 501 101 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionAddArtificialPlayer\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Artificial player:\",\"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_OptionsFail_min=30,score_OptionsFail=30] ~ ~ ~ /tellraw @a[tag=OptionFailArtificialPlayer] ["",{"text":"The map automatically changed ","color":"gold"},{"text":"Artificial player","color":"dark_aqua"},{"text":" to ","color":"gold"},{"text":"1","bold":true,"color":"green"},{"text":".","color":"gold"}]
function main:scoreboard/lobby if @e[name=ArtificialPlayer,score_OptionsFail_min=30,score_OptionsFail=30]
scoreboard players set @e[name=ArtificialPlayer,score_OptionsFail_min=30] OptionsFail 0
execute @e[name=ArtificialPlayer,score_OptionsFail=0] ~ ~ ~ scoreboard players tag @a[tag=OptionFailArtificialPlayer] remove OptionFailArtificialPlayer