execute if entity @a[tag=18_set] unless score 116 timer matches 2 run scoreboard players set 116 timer 1

execute if score 116 timer matches 1 run scoreboard players add 117 timer 1

execute as @a[scores={checkpoint=18}] at @s positioned -17 71 48 if entity @s[distance=..2] run tag @s add 18_set

execute as @a[scores={checkpoint=18}] at @s positioned -1 74 59 if entity @s[distance=..2] run tag @s remove 18_set

execute if score 117 timer matches 1 run setblock -18 70 49 minecraft:grass_block
execute if score 117 timer matches 1 run setblock -17 70 49 minecraft:grass_block
execute if score 117 timer matches 1 run setblock -17 70 50 minecraft:coarse_dirt
execute if score 117 timer matches 1 run execute positioned -17 70 50 run playsound minecraft:entity.item.pickup block @a[distance=..16] -17 70 50 1111 1

execute if score 117 timer matches 20 run fill -19 69 51 -20 69 51 minecraft:grass_block
execute if score 117 timer matches 20 run fill -19 69 52 -20 69 52 minecraft:grass_block
execute if score 117 timer matches 20 run setblock -20 69 53 minecraft:coarse_dirt
execute if score 117 timer matches 20 run execute positioned -20 69 52 run playsound minecraft:entity.item.pickup block @a[distance=..16] -20 69 52 1111 1

execute if score 117 timer matches 40 run fill -21 70 55 -21 70 57 minecraft:grass_block
execute if score 117 timer matches 40 run fill -22 70 56 -22 70 57 minecraft:coarse_dirt
execute if score 117 timer matches 40 run execute positioned -22 70 57 run playsound minecraft:entity.item.pickup block @a[distance=..16] -22 70 57 1111 1

execute if score 117 timer matches 60 run fill -20 70 61 -20 70 60 minecraft:grass_block
execute if score 117 timer matches 60 run fill -19 70 61 -19 70 62 minecraft:coarse_dirt
execute if score 117 timer matches 60 run execute positioned -22 70 57 run playsound minecraft:entity.item.pickup block @a[distance=..16] -22 70 57 1111 1

execute if score 117 timer matches 80 run fill -18 70 65 -16 70 65 minecraft:grass_block
execute if score 117 timer matches 80 run fill -17 70 66 -16 70 66 minecraft:coarse_dirt
execute if score 117 timer matches 80 run execute positioned -16 70 66 run playsound minecraft:entity.item.pickup block @a[distance=..16] -16 70 66 1111 1

execute if score 117 timer matches 100 run fill -11 70 69 -12 70 68 minecraft:grass_block
execute if score 117 timer matches 100 run setblock -12 70 69 minecraft:coarse_dirt
execute if score 117 timer matches 100 run setblock -13 70 68 minecraft:coarse_dirt
execute if score 117 timer matches 100 run execute positioned -13 70 68 run playsound minecraft:entity.item.pickup block @a[distance=..16] -13 70 68 1111 1

execute if score 117 timer matches 120 run fill -6 70 70 -7 70 71 minecraft:grass_block
execute if score 117 timer matches 120 run setblock -8 70 70 minecraft:coarse_dirt
execute if score 117 timer matches 120 run setblock -6 70 71 minecraft:air
execute if score 117 timer matches 120 run execute positioned -6 70 70 run playsound minecraft:entity.item.pickup block @a[distance=..16] -6 70 70 1111 1

execute if score 117 timer matches 140 run setblock 0 71 67 minecraft:grass_block
execute if score 117 timer matches 140 run setblock 0 70 68 minecraft:grass_block
execute if score 117 timer matches 140 run fill 1 72 67 1 72 69 minecraft:coarse_dirt
execute if score 117 timer matches 140 run execute positioned 1 72 69 run playsound minecraft:entity.item.pickup block @a[distance=..16] 1 72 69 1111 1

execute if score 117 timer matches 160 run fill 0 73 64 0 73 62 minecraft:grass_block
execute if score 117 timer matches 160 run fill -1 74 64 -1 74 63 minecraft:grass_block
execute if score 117 timer matches 160 run execute positioned -1 74 64 run playsound minecraft:entity.item.pickup block @a[distance=..10] 1 72 69 1111 1


execute if score 117 timer matches 170 run scoreboard players set 116 timer 2
execute if score 116 timer matches 2 run execute unless entity @a[tag=18_set] run scoreboard players set 116 timer 3
execute if score 116 timer matches 3 run scoreboard players add 117 timer 1
execute if score 117 timer matches 190 run fill -18 70 49 -17 70 50 minecraft:air
execute if score 117 timer matches 200 run fill -19 69 51 -20 69 53 minecraft:air
execute if score 117 timer matches 210 run fill -21 70 55 -22 70 57 minecraft:air
execute if score 117 timer matches 220 run fill -20 70 60 -19 70 62 minecraft:air
execute if score 117 timer matches 230 run fill -18 70 65 -16 70 66 minecraft:air
execute if score 117 timer matches 240 run fill -13 70 68 -11 70 69 minecraft:air
execute if score 117 timer matches 250 run fill -8 70 71 -6 70 70 minecraft:air
execute if score 117 timer matches 260 run fill 0 70 68 0 71 67 minecraft:air
execute if score 117 timer matches 270 run fill 1 72 67 1 72 69 minecraft:air
execute if score 117 timer matches 270 run fill 0 73 64 0 73 62 minecraft:air
execute if score 117 timer matches 280 run fill -1 74 64 -1 74 63 minecraft:air
execute if score 117 timer matches 280 run scoreboard players reset 116 timer
execute if score 117 timer matches 280 run scoreboard players reset 117 timer
