#turn tag
tag * remove turn
execute @e[tag=dummy,scores={turn=1}] ~ ~ ~ tag @a[scores={player_id=1}] add turn
execute @e[tag=dummy,scores={turn=2}] ~ ~ ~ tag @a[scores={player_id=2}] add turn
execute @e[tag=dummy,scores={turn=3}] ~ ~ ~ tag @a[scores={player_id=3}] add turn
execute @e[tag=dummy,scores={turn=4}] ~ ~ ~ tag @a[scores={player_id=4}] add turn


#notification sound
execute @a[tag=turn] ~ ~ ~ playsound mob.cat.hiss @s



#give hastodraw score
execute @e[tag=plus2,scores={tableorder=0}] ~ ~ ~ scoreboard players set @a[tag=turn] hastodraw 2
execute @e[tag=red_plus4,scores={tableorder=0}] ~ ~ ~ scoreboard players set @a[tag=turn] hastodraw 4
execute @e[tag=blue_plus4,scores={tableorder=0}] ~ ~ ~ scoreboard players set @a[tag=turn] hastodraw 4
execute @e[tag=green_plus4,scores={tableorder=0}] ~ ~ ~ scoreboard players set @a[tag=turn] hastodraw 4
execute @e[tag=yellow_plus4,scores={tableorder=0}] ~ ~ ~ scoreboard players set @a[tag=turn] hastodraw 4


#announce turn has to draw
tellraw @a {"rawtext": [{"text": "§c"},{"selector": "@a[tag=turn]"},{"text": " has to draw "},{"score":{"name":"@a[tag=turn]","objective":"hastodraw"}},{"text": " cards!"}]}



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

