#player cards

#count deck
scoreboard players set @e[tag=dummy] deckcount 0
execute @e[tag=deck] ~ ~ ~ scoreboard players add @e[tag=dummy] deckcount 1


#delay dummy deck at start
execute @e[tag=dummy,scores={startanimation=1..35}] ~ ~ ~ scoreboard players set @e[tag=dummy] deckcount 0


#update deck dummys
event entity @e[tag=dummycard] dummy_invisible
execute @e[tag=dummy,scores={deckcount=9..}] ~ ~ ~ event entity @e[tag=dummy1] dummy_visible
execute @e[tag=dummy,scores={deckcount=19..}] ~ ~ ~ event entity @e[tag=dummy2] dummy_visible
execute @e[tag=dummy,scores={deckcount=29..}] ~ ~ ~ event entity @e[tag=dummy3] dummy_visible
execute @e[tag=dummy,scores={deckcount=39..}] ~ ~ ~ event entity @e[tag=dummy4] dummy_visible
execute @e[tag=dummy,scores={deckcount=49..}] ~ ~ ~ event entity @e[tag=dummy5] dummy_visible
execute @e[tag=dummy,scores={deckcount=59..}] ~ ~ ~ event entity @e[tag=dummy6] dummy_visible
execute @e[tag=dummy,scores={deckcount=69..}] ~ ~ ~ event entity @e[tag=dummy7] dummy_visible
execute @e[tag=dummy,scores={deckcount=79..}] ~ ~ ~ event entity @e[tag=dummy8] dummy_visible
execute @e[tag=dummy,scores={deckcount=89..}] ~ ~ ~ event entity @e[tag=dummy9] dummy_visible
execute @e[tag=dummy,scores={deckcount=99..}] ~ ~ ~ event entity @e[tag=dummy10] dummy_visible


#tag
tag @e remove topdummy
execute @e[tag=dummy,scores={deckcount=..18}] ~ ~ ~ tag @e[tag=dummy1] add topdummy
execute @e[tag=dummy,scores={deckcount=19..28}] ~ ~ ~ tag @e[tag=dummy2] add topdummy
execute @e[tag=dummy,scores={deckcount=29..38}] ~ ~ ~ tag @e[tag=dummy3] add topdummy
execute @e[tag=dummy,scores={deckcount=39..48}] ~ ~ ~ tag @e[tag=dummy4] add topdummy
execute @e[tag=dummy,scores={deckcount=49..58}] ~ ~ ~ tag @e[tag=dummy5] add topdummy
execute @e[tag=dummy,scores={deckcount=59..68}] ~ ~ ~ tag @e[tag=dummy6] add topdummy
execute @e[tag=dummy,scores={deckcount=69..78}] ~ ~ ~ tag @e[tag=dummy7] add topdummy
execute @e[tag=dummy,scores={deckcount=79..88}] ~ ~ ~ tag @e[tag=dummy8] add topdummy
execute @e[tag=dummy,scores={deckcount=89..98}] ~ ~ ~ tag @e[tag=dummy9] add topdummy
execute @e[tag=dummy,scores={deckcount=99..108}] ~ ~ ~ tag @e[tag=dummy10] add topdummy


#tp deck to topdummy
tp @e[tag=deck] @e[tag=topdummy]