scoreboard players reset * choosecolordelay


#make cards unclickable
event entity @e[type=cero:card] stop_clickable


#summon choose cards and give them tags
tag @e[type=cero:card] add tempdisable

execute @e[tag=dummy,scores={turn=1}] ~ ~ ~ summon cero:card 40.0 27.7 -43.5 player1:plus4_choose_red
execute @e[tag=dummy,scores={turn=2}] ~ ~ ~ summon cero:card 37.0 27.7 -33.5 player2:plus4_choose_red
execute @e[tag=dummy,scores={turn=3}] ~ ~ ~ summon cero:card 43.5 27.7 -37.0 player3:plus4_choose_red
execute @e[tag=dummy,scores={turn=4}] ~ ~ ~ summon cero:card 33.5 27.7 -40.0 player4:plus4_choose_red

execute @e[tag=dummy,scores={turn=1}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_red1
execute @e[tag=dummy,scores={turn=2}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_red2
execute @e[tag=dummy,scores={turn=3}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_red3
execute @e[tag=dummy,scores={turn=4}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_red4
tag @e[type=cero:card] add tempdisable


execute @e[tag=dummy,scores={turn=1}] ~ ~ ~ summon cero:card 39.0 27.7 -43.5 player1:plus4_choose_blue
execute @e[tag=dummy,scores={turn=2}] ~ ~ ~ summon cero:card 38.0 27.7 -33.5 player2:plus4_choose_blue
execute @e[tag=dummy,scores={turn=3}] ~ ~ ~ summon cero:card 43.5 27.7 -38.0 player3:plus4_choose_blue
execute @e[tag=dummy,scores={turn=4}] ~ ~ ~ summon cero:card 33.5 27.7 -39.0 player4:plus4_choose_blue

execute @e[tag=dummy,scores={turn=1}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_blue1
execute @e[tag=dummy,scores={turn=2}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_blue2
execute @e[tag=dummy,scores={turn=3}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_blue3
execute @e[tag=dummy,scores={turn=4}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_blue4
tag @e[type=cero:card] add tempdisable


execute @e[tag=dummy,scores={turn=1}] ~ ~ ~ summon cero:card 38.0 27.7 -43.5 player1:plus4_choose_green
execute @e[tag=dummy,scores={turn=2}] ~ ~ ~ summon cero:card 39.0 27.7 -33.5 player2:plus4_choose_green
execute @e[tag=dummy,scores={turn=3}] ~ ~ ~ summon cero:card 43.5 27.7 -39.0 player3:plus4_choose_green
execute @e[tag=dummy,scores={turn=4}] ~ ~ ~ summon cero:card 33.5 27.7 -38.0 player4:plus4_choose_green

execute @e[tag=dummy,scores={turn=1}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_green1
execute @e[tag=dummy,scores={turn=2}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_green2
execute @e[tag=dummy,scores={turn=3}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_green3
execute @e[tag=dummy,scores={turn=4}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_green4
tag @e[type=cero:card] add tempdisable


execute @e[tag=dummy,scores={turn=1}] ~ ~ ~ summon cero:card 37.0 27.7 -43.5 player1:plus4_choose_yellow
execute @e[tag=dummy,scores={turn=2}] ~ ~ ~ summon cero:card 40.0 27.7 -33.5 player2:plus4_choose_yellow
execute @e[tag=dummy,scores={turn=3}] ~ ~ ~ summon cero:card 43.5 27.7 -40.0 player3:plus4_choose_yellow
execute @e[tag=dummy,scores={turn=4}] ~ ~ ~ summon cero:card 33.5 27.7 -37.0 player4:plus4_choose_yellow

execute @e[tag=dummy,scores={turn=1}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_yellow1
execute @e[tag=dummy,scores={turn=2}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_yellow2
execute @e[tag=dummy,scores={turn=3}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_yellow3
execute @e[tag=dummy,scores={turn=4}] ~ ~ ~ tag @e[type=cero:card,tag=!tempdisable] add choose_yellow4
tag @e[type=cero:card] remove tempdisable


tag @a[tag=turn] add drawing

#give tag to the choosing cards
tag @e[tag=choose_red1] add red_plus4
tag @e[tag=choose_blue1] add blue_plus4
tag @e[tag=choose_green1] add green_plus4
tag @e[tag=choose_yellow1] add yellow_plus4
tag @e[tag=choose_red2] add red_plus4
tag @e[tag=choose_blue2] add blue_plus4
tag @e[tag=choose_green2] add green_plus4
tag @e[tag=choose_yellow2] add yellow_plus4
tag @e[tag=choose_red3] add red_plus4
tag @e[tag=choose_blue3] add blue_plus4
tag @e[tag=choose_green3] add green_plus4
tag @e[tag=choose_yellow3] add yellow_plus4
tag @e[tag=choose_red4] add red_plus4
tag @e[tag=choose_blue4] add blue_plus4
tag @e[tag=choose_green4] add green_plus4
tag @e[tag=choose_yellow4] add yellow_plus4




#hide original card seemlessly
execute @e[tag=dummy,scores={turn=1}] ~ ~ ~ tp @e[tag=choosecolor] 38.5 27 -43.5
execute @e[tag=dummy,scores={turn=2}] ~ ~ ~ tp @e[tag=choosecolor] 38.5 27 -33.5
execute @e[tag=dummy,scores={turn=3}] ~ ~ ~ tp @e[tag=choosecolor] 43.5 27 -38.5
execute @e[tag=dummy,scores={turn=4}] ~ ~ ~ tp @e[tag=choosecolor] 33.5 27 -38.5
scoreboard players add @e[tag=choosecolor] invisdelay 0