execute as @a[scores={checkpoint=23,checkpoint_between_23=0}] at @s positioned -15 104 2 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=23,checkpoint_between_23=0}] at @s positioned -15 104 2 if entity @s[distance=..2] run spawnpoint @s -15 104 2 633.18
execute as @a[scores={checkpoint=23,checkpoint_between_23=0}] at @s positioned -15 104 2 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_23 1

execute as @a[scores={checkpoint=23}] at @s run tag @s remove woter
execute as @a[scores={checkpoint=23}] at @s run tag @s remove woter_22no
execute as @a[scores={checkpoint=23}] at @s run tag @s remove woteryes
execute as @a[scores={checkpoint=23}] at @s run tag @s remove woter_22_del


execute as @e[type=minecraft:armor_stand,scores={tarzanka=1..}] at @s run function koncept:level/23.0


execute as @a at @s positioned -6 95 -2 if entity @s[distance=..3.5] run ride @s dismount
scoreboard players add time t 1
execute if score time t matches 151.. run scoreboard players reset time t
scoreboard players add @e[tag=tarzankat] t 1
tag @e[tag=tarzanka,scores={t=20..}] add starttar

execute positioned -20 109 5 if entity @a[distance=..4] run execute if score time t matches 150.. run summon minecraft:armor_stand -20 110.5 6 {Marker:true,Invisible:1b,Tags:["tarzanka","tarzankat"],NoGravity:1b,Passengers:[{id:"minecraft:pig",Silent:1,Tags:["tarzanka_pig"],NoAI:1b,DeathLootTable:"mah:1/2",equipment:{saddle:{id:saddle}}}]}

execute positioned -20 109 5 unless entity @a[distance=..4] run execute if score time t matches 150.. run summon minecraft:armor_stand -20 110.5 6 {Marker:true,Invisible:1b,Tags:["tarzanka","tarzankat"],NoGravity:1b,Passengers:[{id:"minecraft:pig",Silent:1,Tags:["tarzanka_pig"],NoAI:1b,DeathLootTable:"mah:1/2",equipment:{saddle:{id:saddle}},Passengers:[{id:"minecraft:marker",Tags:["tarzanka_marker"]}]}]}

execute positioned -5 98 -1 run execute as @e[distance=..3,type=minecraft:marker] at @s run kill @s

execute as @e[tag=tpk] at @s run function koncept:level/23kill
execute as @e[tag=tarzanka_pig] at @s if entity @e[scores={tarzanka=224..},distance=..5] run tag @s add tpk
execute as @e[type=minecraft:armor_stand,scores={tarzanka=226..}] at @s run kill @s
item replace entity @e[tag=tarzanka] armor.head with minecraft:item_frame[minecraft:custom_model_data={floats: [11]}]
effect give @e[tag=tarzanka_pig] minecraft:invisibility infinite 2 true
scoreboard players add @e[tag=starttar,tag=tarzanka] tarzanka 1


#23232301 23232302

execute positioned -27 104 12 if entity @a[distance=..2] unless score 23232301 timer_an matches 2 run scoreboard players set 23232301 timer_an 1
execute if score 23232301 timer_an matches 1 run scoreboard players add 23232302 timer_an 1

execute if score 23232302 timer_an matches 10.. run function koncept:level/23.1

execute if score 23232302 timer_an matches 490 run scoreboard players reset 23232301 timer_an
execute if score 23232302 timer_an matches 490 run scoreboard players reset 23232302 timer_an
