
#select a card
tag @e[tag=temp] remove temp
tag @r[type=cero:card,tag=deck] add temp
tag @e[tag=temp] remove deck
tag @e[tag=temp] add player1


#teleport card to slot
function checkslot/player1
tp @e[tag=temp] @e[tag=checkslot]
execute @e[tag=temp] ~ ~ ~ tp @s ~ ~ ~ ~-45 0
tp @e[tag=checkslot] ~ ~-1000 ~
kill @e[tag=checkslot]


#event
event entity @e[tag=temp] player1


#give texture
scoreboard players set @e[tag=temp] scheduletexture 1


#playsound
execute @a ~ ~ ~ playsound step.grass @s


#remove temp tag
tag @e[tag=temp] remove temp


#cardcount
function count_cards