#Kyudummy main timer
#Kyudummy2 and 3 is skull check
#Kyudummy4 is arrow trap timer
#Kyudummy5 is 10 tick timer


scoreboard players add @s KyuDummy 1
execute as @s[scores={KyuDummy=50..}] run function zzzzdonotuse:mobspawners/spawnerstuff/pyramid/60tickactivate

scoreboard players add @s[tag=Started] KyuDummy5 1
execute as @s[scores={KyuDummy5=10..}] run function zzzzdonotuse:mobspawners/spawnerstuff/pyramid/mobteleport


execute as @s[tag=Started,scores={KyuDummy=13}] run function zzzzdonotuse:mobspawners/spawnerstuff/pyramid/mobspawnsingle
execute as @s[tag=Started,scores={KyuDummy=41}] run function zzzzdonotuse:mobspawners/spawnerstuff/pyramid/mobspawnsingle

execute as @s[tag=!Started] run execute at @s positioned ~ ~-10 ~-12 run execute if entity @a[distance=..4,gamemode=!spectator,gamemode=!creative] run function zzzzdonotuse:mobspawners/spawnerstuff/pyramid/start


execute as @s[tag=Started,tag=DoArrowTrap] run execute at @s positioned ~-9 ~-11 ~15 run function zzzzdonotuse:mobspawners/spawnerstuff/pyramid/arrowtraptimer