
execute as @a[scores={checkpoint=15,checkpoint_between_15=0}] at @s positioned 10 76 57 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=15,checkpoint_between_15=0}] at @s positioned 10 76 57 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_15 1

execute as @a[scores={checkpoint=15,checkpoint_between_15=1}] at @s positioned 2 83 38 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=15,checkpoint_between_15=1}] at @s positioned 2 83 38 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_15 2



execute as @a[scores={checkpoint=15}] at @s positioned 10 70 54 if entity @s[distance=..1.5] run schedule function koncept:teleport1 5t append
execute as @a[scores={checkpoint=15}] at @s positioned 10 70 54 if entity @s[distance=..1.5] run tp @s -0.49 66.00 42.36 -117.01 13.31

execute at @e[tag=1W,type=minecraft:bee] run teleport @e[distance=..2,type=minecraft:pig,tag=1W,sort=nearest,limit=1] ~ ~-0.25 ~
effect give @e[type=minecraft:pig,tag=1W] minecraft:invisibility 1 1 true
team join 1 @e[type=minecraft:pig,tag=1W]
effect give @e[tag=1W] minecraft:regeneration 10 10 true
data merge entity @e[tag=2,type=minecraft:bee,sort=nearest,limit=1] {Motion:[0.0d,0.0d,0.03165854d]}



###### 76 20 77 21
execute positioned 13 80 37 if entity @a[distance=..1] run scoreboard players set 77 timer 1
execute if score 77 timer matches 1.. run scoreboard players add 76 timer 1

execute if score 76 timer matches 1..2 run execute as @e[type=minecraft:bee,tag=5] at @s run rotate @s -90 0
execute if score 76 timer matches 3..33 run execute as @e[type=minecraft:bee,tag=5] at @s run tp @s ~0.1 ~ ~

execute if score 76 timer matches 34..35 run execute as @e[type=minecraft:bee,tag=5] at @s run rotate @s -90 0
execute if score 76 timer matches 36..96 run execute as @e[type=minecraft:bee,tag=5] at @s run tp @s ~ ~-0.1 ~

execute if score 76 timer matches 96..97 run execute as @e[type=minecraft:bee,tag=5] at @s run rotate @s 90 0
execute if score 76 timer matches 98..128 run execute as @e[type=minecraft:bee,tag=5] at @s run tp @s ~-0.1 ~ ~

execute if score 76 timer matches 129..130 run execute as @e[type=minecraft:bee,tag=5] at @s run rotate @s -90 0
execute if score 76 timer matches 131..191 run execute as @e[type=minecraft:bee,tag=5] at @s run tp @s ~ ~0.1 ~

execute if score 76 timer matches 191.. run scoreboard players reset 77 timer
execute if score 76 timer matches 191.. run scoreboard players reset 76 timer


#####74 20 75 21
execute positioned 5 85 45 if entity @a[distance=..1] run scoreboard players set 75 timer 1
execute positioned 1 83 46 if entity @a[distance=..2] run scoreboard players set 75 timer 1
execute if score 75 timer matches 1.. run scoreboard players add 74 timer 1

execute if score 74 timer matches 1 run execute as @e[type=minecraft:bee,tag=4] at @s run rotate @s -90 0
execute if score 74 timer matches 5..91 run execute as @e[type=minecraft:bee,tag=4] at @s run tp @s ~0.1 ~ ~

execute if score 74 timer matches 91 run execute as @e[type=minecraft:bee,tag=4] at @s run rotate @s 90 0
execute if score 74 timer matches 95..181 run execute as @e[type=minecraft:bee,tag=4] at @s run tp @s ~-0.1 ~ ~

execute if score 74 timer matches 181 run scoreboard players reset 75 timer
execute if score 74 timer matches 181.. run scoreboard players reset 74 timer


#21 72 20 73
execute positioned 4 76 35 if entity @a[distance=..10] run scoreboard players set 72 timer 1
execute if score 72 timer matches 1.. run scoreboard players add 73 timer 1

execute if score 73 timer matches 1..31 run execute as @e[type=minecraft:bee,tag=2] at @s run tp @s ~ ~ ~-0.1
execute if score 73 timer matches 31..91 run execute as @e[type=minecraft:bee,tag=2] at @s run tp @s ~ ~0.1 ~

execute if score 73 timer matches 91..121 run execute as @e[type=minecraft:bee,tag=2] at @s run tp @s ~ ~ ~0.1
execute if score 73 timer matches 121..181 run execute as @e[type=minecraft:bee,tag=2] at @s run tp @s ~ ~-0.1 ~

execute if score 73 timer matches 181.. run scoreboard players reset 72 timer
execute if score 73 timer matches 181.. run scoreboard players reset 73 timer