execute as @e[type=armor_stand,tag=checkpoint5] at @s run tag @p[tag=!damage1,distance=..1,sort=nearest,limit=1] add damage
execute as @e[type=armor_stand,tag=checkpoint5] at @s run scoreboard players set @a[distance=..1,sort=nearest,limit=1] checkpoint 5
execute as @e[type=armor_stand,tag=checkpoint5] at @s run tp @a[tag=!damage1,distance=..1,sort=nearest,limit=1] ~ ~ ~1

execute as @e[type=armor_stand,tag=checkpoint8] at @s run tp @a[tag=!damage1,distance=..1,sort=nearest,limit=1] ~1 ~ ~
execute as @e[type=armor_stand,tag=checkpoint8] at @s run tag @p[tag=!damage1,distance=..1,sort=nearest,limit=1] add damage
execute as @e[type=armor_stand,tag=checkpoint8] at @s run scoreboard players set @a[distance=..1,sort=nearest,limit=1] checkpoint 8

execute as @e[type=armor_stand,tag=checkpoint12] at @s run tp @a[tag=!damage1,distance=..1,sort=nearest,limit=1] ~ ~ ~-1
execute as @e[type=armor_stand,tag=checkpoint12] at @s run tag @p[tag=!damage1,distance=..1,sort=nearest,limit=1] add damage
execute as @e[type=armor_stand,tag=checkpoint12] at @s run scoreboard players set @a[distance=..1,sort=nearest,limit=1] checkpoint 12

execute as @e[type=armor_stand,tag=checkpoint15] at @s run tp @a[tag=!damage1,distance=..1,sort=nearest,limit=1] ~1 ~ ~
execute as @e[type=armor_stand,tag=checkpoint15] at @s run tag @p[tag=!damage1,distance=..1,sort=nearest,limit=1] add damage
execute as @e[type=armor_stand,tag=checkpoint15] at @s run scoreboard players set @a[distance=..1,sort=nearest,limit=1] checkpoint 15

execute as @e[type=armor_stand,tag=checkpoint17] at @s run tp @a[tag=!damage1,distance=..1,sort=nearest,limit=1] ~1 ~ ~
execute as @e[type=armor_stand,tag=checkpoint17] at @s run tag @p[tag=!damage1,distance=..1,sort=nearest,limit=1] add damage
execute as @e[type=armor_stand,tag=checkpoint17] at @s run scoreboard players set @a[distance=..1,sort=nearest,limit=1] checkpoint 17

execute as @e[type=armor_stand,tag=checkpoint35] at @s run tp @a[tag=!damage1,distance=..1,sort=nearest,limit=1] ~ ~ ~-1
execute as @e[type=armor_stand,tag=checkpoint35] at @s run tag @p[tag=!damage1,distance=..1,sort=nearest,limit=1] add damage
execute as @e[type=armor_stand,tag=checkpoint35] at @s run scoreboard players set @a[distance=..1,sort=nearest,limit=1] checkpoint 35

execute as @e[type=armor_stand,tag=checkpoint53] at @s run tp @a[tag=!damage1,distance=..1,sort=nearest,limit=1] ~1 ~ ~
execute as @e[type=armor_stand,tag=checkpoint53] at @s run tag @p[tag=!damage1,distance=..1,sort=nearest,limit=1] add damage
execute as @e[type=armor_stand,tag=checkpoint53] at @s run scoreboard players set @a[distance=..1,sort=nearest,limit=1] checkpoint 53
