#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    This function has been created by Skilendarz Group.
#             https://skilendarz.com
#
#      GIVE MAP MAKERS THE CREDIT THEY DESERVE!
#             COPYING IS PROHIBITED!
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

kill @e[tag=parkour_max]
kill @e[tag=parkour_detect]
summon marker 328 106 -328 {Tags:["parkour_max","parkour_indicator"]}
summon marker 328 106 -328 {Tags:["parkour_detect","parkour_indicator"]}
scoreboard players set @e[tag=parkour_max] time 0
scoreboard players set @e[tag=parkour_max] tick 0

fill 326 105 -331 329 109 -338 air destroy
fill 332 109 -339 332 107 -339 air destroy
fill 336 110 -339 336 106 -339 air destroy
fill 340 111 -340 340 107 -340 air
fill 337 110 -350 337 112 -350 air
fill 334 113 -353 334 109 -353 air
fill 306 116 -356 306 109 -356 air
setblock 306 117 -360 air
kill @e[tag=pumpkin2]
setblock 308 118 -363 air
setblock 311 119 -365 air
fill 315 119 -368 315 114 -368 air destroy
fill 318 116 -371 318 120 -371 air destroy
fill 323 120 -372 323 115 -372 air destroy
fill 328 114 -372 328 119 -372 air destroy
fill 332 119 -370 332 112 -370 air destroy
setblock 328 105 -328 jack_o_lantern
setblock 328 104 -328 air

tp @s[tag=start_parkour,tag=!parkour_winner] 328 105 -325 180 20
tag @s remove start_parkour
playsound minecraft:entity.enderman.teleport master @s[tag=!parkour_winner] ~ ~ ~ 100 0.5
playsound minecraft:entity.wither.break_block master @s[tag=!parkour_winner] ~ ~ ~ 0.2 1