
execute as @a[scores={checkpoint=33}] at @s run execute as @s[y=50,dy=0] at @s run function koncept:return_stage with storage stage:checkpoint


execute as @a[scores={checkpoint=33}] at @s positioned -9 61 -17 if entity @s[distance=..10] run effect clear @s minecraft:levitation

#60 61 62 63

execute positioned -10 63 -11 if entity @a[distance=..5] unless score 60 timer_an matches 2 run scoreboard players set 60 timer_an 1
execute if score 60 timer_an matches 1 run scoreboard players add 61 timer_an 1

execute if score 61 timer_an matches 5 run fill -11 61 -11 -9 61 -11 minecraft:purpur_pillar[axis=z]
execute if score 61 timer_an matches 5 run execute positioned -18 64 -14 run playsound minecraft:block.stone.place block @a[distance=..15] -18 64 -14 1111 1

execute if score 61 timer_an matches 10 run fill -11 61 -8 -9 61 -8 minecraft:purpur_pillar[axis=z]
execute if score 61 timer_an matches 10 run execute positioned -18 64 -14 run playsound minecraft:block.stone.place block @a[distance=..15] -18 64 -14 1111 1

execute if score 61 timer_an matches 15 run fill -15 62 -11 -14 62 -10 minecraft:purpur_block
execute if score 61 timer_an matches 15 run execute positioned -18 64 -14 run playsound minecraft:block.stone.place block @a[distance=..15] -18 64 -14 1111 1

execute if score 61 timer_an matches 25 run fill -20 63 -11 -19 63 -12 minecraft:purpur_block
execute if score 61 timer_an matches 25 run execute positioned -18 64 -14 run playsound minecraft:block.stone.place block @a[distance=..15] -18 64 -14 1111 1

execute if score 61 timer_an matches 30 run fill -21 64 -15 -20 64 -16 minecraft:purpur_block
execute if score 61 timer_an matches 30 run execute positioned -18 64 -14 run playsound minecraft:block.stone.place block @a[distance=..15] -18 64 -14 1111 1

execute if score 61 timer_an matches 40 run fill -20 65 -20 -19 65 -19 minecraft:purpur_block
execute if score 61 timer_an matches 40 run execute positioned -18 64 -14 run playsound minecraft:block.stone.place block @a[distance=..15] -18 64 -14 1111 1





execute if score 61 timer_an matches 70 run scoreboard players set 60 timer_an 2

execute if score 60 timer_an matches 2 run execute positioned -10 63 -11 unless entity @a[distance=..12] run scoreboard players set 62 timer_an 1

execute if score 62 timer_an matches 1.. run scoreboard players add 63 timer_an 1

execute if score 63 timer_an matches 5 run fill -11 61 -11 -9 61 -11 minecraft:air
execute if score 63 timer_an matches 5 run execute positioned -18 64 -14 run playsound minecraft:block.stone.place block @a[distance=..15] -18 64 -14 1111 1

execute if score 63 timer_an matches 10 run fill -11 61 -8 -9 61 -8 minecraft:air
execute if score 63 timer_an matches 10 run execute positioned -18 64 -14 run playsound minecraft:block.stone.place block @a[distance=..15] -18 64 -14 1111 1

execute if score 63 timer_an matches 15 run fill -15 62 -11 -14 62 -10 minecraft:air
execute if score 63 timer_an matches 15 run execute positioned -18 64 -14 run playsound minecraft:block.stone.place block @a[distance=..15] -18 64 -14 1111 1

execute if score 63 timer_an matches 25 run fill -20 63 -11 -19 63 -12 minecraft:air
execute if score 63 timer_an matches 25 run execute positioned -18 64 -14 run playsound minecraft:block.stone.place block @a[distance=..15] -18 64 -14 1111 1

execute if score 63 timer_an matches 30 run fill -21 64 -15 -20 64 -16 minecraft:air
execute if score 63 timer_an matches 30 run execute positioned -18 64 -14 run playsound minecraft:block.stone.place block @a[distance=..15] -18 64 -14 1111 1

execute if score 63 timer_an matches 50 run fill -20 65 -20 -19 65 -19 minecraft:air
execute if score 63 timer_an matches 50 run execute positioned -18 64 -14 run playsound minecraft:block.stone.place block @a[distance=..15] -18 64 -14 1111 1

execute if score 63 timer_an matches 60 run scoreboard players reset 60 timer_an
execute if score 63 timer_an matches 60 run scoreboard players reset 61 timer_an
execute if score 63 timer_an matches 60 run scoreboard players reset 62 timer_an
execute if score 63 timer_an matches 60 run scoreboard players reset 63 timer_an










execute positioned -4 65 -16 as @e[type=shulker_bullet,distance=..3] at @s run data merge entity @s {Motion:[0.0d,0.04d,-0.2d]}
execute positioned -8 65 -18 as @e[type=shulker_bullet,distance=..3] at @s run data merge entity @s {Motion:[-0.2d,0.04d,0.0d]}
execute positioned -13 65 -14 as @e[type=shulker_bullet,distance=..4] at @s run data merge entity @s {Motion:[0.0d,-0.02d,0.0d]}
execute positioned -10 57 -13 as @e[type=shulker_bullet,distance=..6] at @s run data merge entity @s {Motion:[0.0d,0.04d,0.2d]}



execute as @e[tag=koncept_interaction,type=minecraft:interaction,tag=f] at @s unless entity @e[type=minecraft:shulker_bullet,distance=..1] run kill @s

execute positioned -6 65 -18 if entity @a[distance=..3] unless score 50 timer_an matches 2 run scoreboard players set 55 timer_an 1
execute if score 55 timer_an matches 1 run scoreboard players add 56 timer_an 1
execute if score 56 timer_an matches 75 run setblock -6 65 -14 minecraft:air
execute if score 56 timer_an matches 75 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Peek:100b}
execute if score 56 timer_an matches 75 run summon minecraft:shulker_bullet -6 65.5 -14 {Passengers:[{id:"minecraft:interaction",width:3f,height:3f,Tags:["f","koncept_interaction"],response:0b,interaction:{player:[I;0,0,0,0],timestamp:0L},attack:{player:[I;0,0,0,0],timestamp:0L}}],Motion:[0.0d,0.04d,-0.2d]}

execute if score 56 timer_an matches 80 run setblock -6 65 -14 minecraft:barrier
execute if score 56 timer_an matches 80 run scoreboard players reset 55 timer_an
execute if score 56 timer_an matches 80 run scoreboard players reset 56 timer_an


execute positioned -19 60 -20 as @e[type=shulker_bullet,distance=..6.5] at @s run data merge entity @s {Motion:[0.0d,0.04d,-0.2d]}

execute positioned -9 61 -27 as @e[type=shulker_bullet,distance=..6] at @s run data merge entity @s {Motion:[0.2d,0.04d,0.0d]}

#execute positioned -2 61 -23 run kill @e[type=minecraft:interaction,distance=..2]

#50 51 52 53
execute positioned -6 65 -18 if entity @a[distance=..3] unless score 50 timer_an matches 2 run scoreboard players set 50 timer_an 1
execute positioned -12 62 -21 if entity @a[distance=..3] unless score 50 timer_an matches 2 run scoreboard players set 50 timer_an 1
execute if score 50 timer_an matches 1 run scoreboard players add 51 timer_an 1

execute if score 51 timer_an matches 5 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 15b}
execute if score 51 timer_an matches 10 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 14b}
execute if score 51 timer_an matches 15 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 13b}
execute if score 51 timer_an matches 20 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 12b}
execute if score 51 timer_an matches 25 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 11b}
execute if score 51 timer_an matches 30 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 10b}
execute if score 51 timer_an matches 35 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 9b}
execute if score 51 timer_an matches 40 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 8b}
execute if score 51 timer_an matches 45 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 7b}
execute if score 51 timer_an matches 50 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 6b}
execute if score 51 timer_an matches 55 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 5b}
execute if score 51 timer_an matches 60 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 4b}
execute if score 51 timer_an matches 65 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 3b}
execute if score 51 timer_an matches 70 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 2b}
execute if score 51 timer_an matches 75 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Color: 1b}

execute if score 51 timer_an matches 5 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 15b}
execute if score 51 timer_an matches 10 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 14b}
execute if score 51 timer_an matches 15 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 13b}
execute if score 51 timer_an matches 20 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 12b}
execute if score 51 timer_an matches 25 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 11b}
execute if score 51 timer_an matches 30 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 10b}
execute if score 51 timer_an matches 35 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 9b}
execute if score 51 timer_an matches 40 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 8b}
execute if score 51 timer_an matches 45 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 7b}
execute if score 51 timer_an matches 50 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 6b}
execute if score 51 timer_an matches 55 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 5b}
execute if score 51 timer_an matches 60 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 4b}
execute if score 51 timer_an matches 65 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 3b}
execute if score 51 timer_an matches 70 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 2b}
execute if score 51 timer_an matches 75 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Color: 1b}

execute if score 51 timer_an matches 75 run setblock -14 61 -18 minecraft:air
execute if score 51 timer_an matches 75 run data merge entity c6d4030b-6208-4a85-97aa-12ca353b9295 {Peek:100b}
execute if score 51 timer_an matches 75 run data merge entity 69cd937d-96b4-4ddd-90f8-2ab4b8dcbf30 {Peek:100b}

execute if score 51 timer_an matches 75 run summon minecraft:shulker_bullet -14 61.5 -18 {Passengers:[{id:"minecraft:interaction",width:2f,height:2f,Tags:["f","koncept_interaction"],response:0b,interaction:{player:[I;0,0,0,0],timestamp:0L},attack:{player:[I;0,0,0,0],timestamp:0L}}],Motion:[0.0d,0.04d,-0.2d]}

execute if score 51 timer_an matches 80 run setblock -14 61 -18 minecraft:barrier

execute if score 51 timer_an matches 80 run scoreboard players reset 50 timer_an
execute if score 51 timer_an matches 80 run scoreboard players reset 51 timer_an