#scoreboard objectives add animation_timer_3 dummy
#scoreboard players set count animation_timer_3 0

execute if score count_spawn_destroy animation_timer_3 matches ..30 run function koncept:spawn/destroy

execute if score count_spawn_destroy animation_timer_3 matches ..30 run scoreboard players add count_spawn_destroy animation_timer_3 1
execute if score count_spawn_destroy animation_timer_3 matches ..30 run schedule function koncept:spawn/main_destroy 2
execute if score count_spawn_destroy animation_timer_3 matches 31 run scoreboard players set count_spawn_destroy animation_timer_3 0