#Gens block
    execute at @e[type=minecraft:marker,tag=pk,distance=0..10] unless block ~ ~-1 ~ barrier if block ~ ~ ~ air run summon minecraft:falling_block ~ ~5 ~ {DropItem:0b,BlockState:{Name:"minecraft:calcite"},Time:1}
    execute at @e[type=minecraft:marker,tag=pk,distance=0..10] if block ~ ~ ~ air unless block ~ ~-1 ~ barrier run setblock ~ ~-1 ~ barrier
#Removes barrier
    execute at @e[type=minecraft:marker,tag=pk,distance=0..10] if block ~ ~-1 ~ barrier unless block ~ ~ ~ air run setblock ~ ~-1 ~ air

#Checks if players fell down
    execute unless entity @e[tag=pk,distance=0..10] run tag @p remove onParkour
    execute if block ~ ~-1 ~ minecraft:grass_block run tag @p remove onParkour
    execute if block ~ ~ ~ minecraft:dirt_path run tag @p remove onParkour
    execute if block ~ ~-1 ~ minecraft:oak_leaves run tag @p remove onParkour
    execute if block ~ ~ ~ minecraft:warped_slab run tag @p remove onParkour
    execute if block ~ ~-1 ~ minecraft:moss_block run tag @p remove onParkour

#Removes when player is not near
    execute at @e[type=minecraft:marker,tag=pk] unless entity @a[distance=0..11,tag=onParkour] run setblock ~ ~-1 ~ air
    execute at @e[type=minecraft:marker,tag=pk] unless entity @a[distance=0..11,tag=onParkour] run setblock ~ ~ ~ air destroy
    execute at @e[type=minecraft:marker,tag=pk] run fill ~ ~1 ~ ~ ~5 ~ air replace calcite
    execute at @e[type=minecraft:marker,tag=pk] run kill @e[type=item,distance=0..2]