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

execute as @a[scores={checkpoint=49,checkpoint_between_49=0}] at @s positioned 19 38 -48 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=49,checkpoint_between_49=0}] at @s positioned 19 38 -48 if entity @s[distance=..2] run spawnpoint @s 19 38 -48 321.86
execute as @a[scores={checkpoint=49,checkpoint_between_49=0}] at @s positioned 19 38 -48 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_49 1

execute positioned 13 44 -55 if entity @a[distance=..3] unless score ray_tracing4 timer_an matches 2 run scoreboard players set ray_tracing4 timer_an 1
execute if score ray_tracing4 timer_an matches 1 run tellraw @a {"text":"<Ray Tracing> That was just a warm-up, next time I'll be ready!"}
execute if score ray_tracing4 timer_an matches 1 run scoreboard players set ray_tracing4 timer_an 2


#/bossbar add minecraft:orange {"text":"\ue011","font":"koncept:icon/unicode",shadow_color:0xDA6F45}
clear @a[scores={checkpoint=49}] minecraft:snowball

execute as @a[scores={checkpoint=49}] at @s run tag @s remove yellow
execute as @a[scores={checkpoint=49}] at @s run tag @s remove green
execute as @a[scores={checkpoint=49}] at @s run tag @s remove red
execute as @a[scores={checkpoint=49}] at @s run tag @s remove blue
execute as @a[scores={checkpoint=49}] at @s run tag @s remove white
execute as @a[scores={checkpoint=49}] at @s run tag @s remove purple
execute as @a[scores={checkpoint=49}] at @s run tag @s remove cyan
execute as @a[scores={checkpoint=49}] at @s run tag @s remove brown
execute as @a[scores={checkpoint=49}] at @s run tag @s remove planks
execute as @a[scores={checkpoint=49}] at @s run tag @s remove gray
execute as @a[scores={checkpoint=49}] at @s run tag @s remove orange
execute as @a[scores={checkpoint=49}] at @s run tag @s remove magenta_terracotta
execute as @a[scores={checkpoint=49}] at @s run tag @s remove lime_terracotta
execute as @a[scores={checkpoint=49}] at @s run tag @s remove pink_terracotta
execute as @a[scores={checkpoint=49}] at @s run tag @s remove light_blue
execute as @a[scores={checkpoint=49}] at @s run tag @s remove yellow_terracotta
execute as @a[scores={checkpoint=49}] at @s run tag @s remove light_blue_terracotta
execute as @a[scores={checkpoint=49}] at @s run tag @s remove cyan_terracotta
execute as @a[scores={checkpoint=49}] at @s run tag @s remove oxidized_copper

execute as @a[scores={checkpoint=49}] at @s run tag @s add 44levle

execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:raw_gold_block run tag @s add red
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:red_concrete run tag @s add yellow
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:yellow_concrete run tag @s add cyan
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:cyan_concrete run tag @s add blue
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:blue_concrete run tag @s add gray
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:light_gray_concrete run tag @s add orange
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:orange_concrete run tag @s add purple
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:purple_concrete run tag @s add white
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:white_concrete run tag @s add brown
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:brown_concrete run tag @s add green
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:green_concrete run tag @s add magenta_terracotta
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:magenta_terracotta run tag @s add lime_terracotta
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:lime_terracotta run tag @s add pink_terracotta
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:pink_terracotta run tag @s add light_blue
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:light_blue_concrete run tag @s add yellow_terracotta
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:yellow_terracotta run tag @s add light_blue_terracotta
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:light_blue_terracotta run tag @s add cyan_terracotta
execute as @a[scores={checkpoint=49}] at @s if block ~ ~-1 ~ minecraft:cyan_terracotta run tag @s add oxidized_copper



