
#scores
scoreboard players add @e[tag=dummy,scores={startanimation=1..}] startanimation 1
scoreboard players set @e[tag=dummy,scores={startanimation=291}] startanimation 0




#summon cards
execute @e[tag=dummy,scores={startanimation=15}] ~ ~ ~ function summon_cards



#drop cards
execute @e[tag=dummy,scores={startanimation=20}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=21}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=22}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=23}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=24}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=25}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=26}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=27}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=28}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=29}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=30}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=31}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=32}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=33}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=34}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=35}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=36}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=37}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=38}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=39}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=40}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=41}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=42}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=43}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=44}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=45}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=46}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=47}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=48}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=49}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=50}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=51}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=52}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=53}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=54}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=55}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=56}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=57}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=58}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=59}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=60}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=61}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=62}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=63}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=64}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=65}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=66}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=67}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=68}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=69}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=70}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=71}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=72}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=73}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=74}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=75}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=76}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=77}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=78}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=79}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=80}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=81}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=82}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=83}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=84}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=85}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=86}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=87}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=87}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=87}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=87}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=88}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=88}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=88}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=88}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=89}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=89}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=89}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=89}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=89}] ~ ~ ~ tag @r[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck
execute @e[tag=dummy,scores={startanimation=90}] ~ ~ ~ tag @e[tag=!info,tag=!deck,tag=!dummycard,type=cero:card] add deck




#tp dummy cards
execute @e[tag=dummy,scores={startanimation=20}] ~ ~ ~ tp @e[tag=dummy1] 41.5 24.8 -36.5 45 0
execute @e[tag=dummy,scores={startanimation=20}] ~ ~ ~ tp @e[tag=dummy2] 41.5 24.9 -36.5 45 0
execute @e[tag=dummy,scores={startanimation=20}] ~ ~ ~ tp @e[tag=dummy3] 41.5 25.0 -36.5 45 0
execute @e[tag=dummy,scores={startanimation=20}] ~ ~ ~ tp @e[tag=dummy4] 41.5 25.1 -36.5 45 0
execute @e[tag=dummy,scores={startanimation=20}] ~ ~ ~ tp @e[tag=dummy5] 41.5 25.2 -36.5 45 0
execute @e[tag=dummy,scores={startanimation=20}] ~ ~ ~ tp @e[tag=dummy6] 41.5 25.3 -36.5 45 0
execute @e[tag=dummy,scores={startanimation=20}] ~ ~ ~ tp @e[tag=dummy7] 41.5 25.4 -36.5 45 0
execute @e[tag=dummy,scores={startanimation=20}] ~ ~ ~ tp @e[tag=dummy8] 41.5 25.5 -36.5 45 0
execute @e[tag=dummy,scores={startanimation=20}] ~ ~ ~ tp @e[tag=dummy9] 41.5 25.6 -36.5 45 0
execute @e[tag=dummy,scores={startanimation=20}] ~ ~ ~ tp @e[tag=dummy10] 41.5 25.7 -36.5 45 0


#rotate card
execute @e[tag=deck] ~ ~ ~ tp @s ~ ~ ~ 45 0



#draw cards
#1
execute @e[tag=dummy,scores={startingcards=1..,startanimation=110}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=1..,startanimation=112}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=1..,startanimation=114,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=1..,startanimation=114,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=1..,startanimation=116,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=1..,startanimation=116,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=1,startanimation=118}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268

#2
execute @e[tag=dummy,scores={startingcards=2..,startanimation=118}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=2..,startanimation=120}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=2..,startanimation=122,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=2..,startanimation=122,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=2..,startanimation=124,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=2..,startanimation=124,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=2,startanimation=126}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#3
execute @e[tag=dummy,scores={startingcards=3..,startanimation=126}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=3..,startanimation=128}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=3..,startanimation=130,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=3..,startanimation=130,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=3..,startanimation=132,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=3..,startanimation=132,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=3,startanimation=134}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#4
execute @e[tag=dummy,scores={startingcards=4..,startanimation=134}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=4..,startanimation=136}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=4..,startanimation=138,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=4..,startanimation=138,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=4..,startanimation=140,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=4..,startanimation=140,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=4,startanimation=142}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#5
execute @e[tag=dummy,scores={startingcards=5..,startanimation=142}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=5..,startanimation=144}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=5..,startanimation=146,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=5..,startanimation=146,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=5..,startanimation=148,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=5..,startanimation=148,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=5,startanimation=150}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#6
execute @e[tag=dummy,scores={startingcards=6..,startanimation=150}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=6..,startanimation=152}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=6..,startanimation=154,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=6..,startanimation=154,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=6..,startanimation=156,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=6..,startanimation=156,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=6,startanimation=158}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#7
execute @e[tag=dummy,scores={startingcards=7..,startanimation=158}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=7..,startanimation=160}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=7..,startanimation=162,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=7..,startanimation=162,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=7..,startanimation=164,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=7..,startanimation=164,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=7,startanimation=166}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#8
execute @e[tag=dummy,scores={startingcards=8..,startanimation=166}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=8..,startanimation=168}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=8..,startanimation=170,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=8..,startanimation=170,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=8..,startanimation=172,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=8..,startanimation=172,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=8,startanimation=174}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#9
execute @e[tag=dummy,scores={startingcards=9..,startanimation=174}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=9..,startanimation=176}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=9..,startanimation=178,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=9..,startanimation=178,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=9..,startanimation=180,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=9..,startanimation=180,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=9,startanimation=182}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#10
execute @e[tag=dummy,scores={startingcards=10..,startanimation=182}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=10..,startanimation=184}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=10..,startanimation=186,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=10..,startanimation=186,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=10..,startanimation=188,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=10..,startanimation=188,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=10,startanimation=190}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#11
execute @e[tag=dummy,scores={startingcards=11..,startanimation=190}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=11..,startanimation=192}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=11..,startanimation=194,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=11..,startanimation=194,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=11..,startanimation=196,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=11..,startanimation=196,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=11,startanimation=198}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#12
execute @e[tag=dummy,scores={startingcards=12..,startanimation=198}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=12..,startanimation=200}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=12..,startanimation=202,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=12..,startanimation=202,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=12..,startanimation=204,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=12..,startanimation=204,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=12,startanimation=206}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#13
execute @e[tag=dummy,scores={startingcards=13..,startanimation=206}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=13..,startanimation=208}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=13..,startanimation=210,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=13..,startanimation=210,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=13..,startanimation=212,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=13..,startanimation=212,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=13,startanimation=214}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#14
execute @e[tag=dummy,scores={startingcards=14..,startanimation=214}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=14..,startanimation=216}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=14..,startanimation=218,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=14..,startanimation=218,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=14..,startanimation=220,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=14..,startanimation=220,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=14,startanimation=222}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#15
execute @e[tag=dummy,scores={startingcards=15..,startanimation=222}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=15..,startanimation=224}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=15..,startanimation=226,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=15..,startanimation=226,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=15..,startanimation=228,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=15..,startanimation=228,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=15,startanimation=230}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#16
execute @e[tag=dummy,scores={startingcards=16..,startanimation=230}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=16..,startanimation=232}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=16..,startanimation=234,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=16..,startanimation=234,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=16..,startanimation=236,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=16..,startanimation=236,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=16,startanimation=238}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#17
execute @e[tag=dummy,scores={startingcards=17..,startanimation=238}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=17..,startanimation=240}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=17..,startanimation=242,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=17..,startanimation=242,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=17..,startanimation=244,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=17..,startanimation=244,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=17,startanimation=246}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#18
execute @e[tag=dummy,scores={startingcards=18..,startanimation=246}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=18..,startanimation=248}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=18..,startanimation=250,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=18..,startanimation=250,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=18..,startanimation=252,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=18..,startanimation=252,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=18,startanimation=254}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#19
execute @e[tag=dummy,scores={startingcards=19..,startanimation=254}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=19..,startanimation=256}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=19..,startanimation=258,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=19..,startanimation=258,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=19..,startanimation=260,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=19..,startanimation=260,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2
execute @e[tag=dummy,scores={startingcards=19,startanimation=262}] ~ ~ ~ scoreboard players set @e[tag=dummy] startanimation 268


#20
execute @e[tag=dummy,scores={startingcards=20,startanimation=262}] ~ ~ ~ function draw/player1_opening
execute @e[tag=dummy,scores={startingcards=20,startanimation=264}] ~ ~ ~ function draw/player2_opening
execute @e[tag=dummy,scores={startingcards=20,startanimation=266,playercount=3..4}] ~ ~ ~ function draw/player3_opening
execute @e[tag=dummy,scores={startingcards=20,startanimation=266,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 4
execute @e[tag=dummy,scores={startingcards=20,startanimation=268,playercount=4}] ~ ~ ~ function draw/player4_opening
execute @e[tag=dummy,scores={startingcards=20,startanimation=268,playercount=2}] ~ ~ ~ scoreboard players add @e[tag=dummy] startanimation 2









#draw for table
execute @e[tag=dummy,scores={startanimation=280}] ~ ~ ~ function draw/table_open


#first turn
execute @e[tag=dummy,scores={startanimation=290}] ~ ~ ~ function nextturn/opening