
# -> Get nearest support-able block
execute unless block ~ ~ ~-1 #overly_realistic:drop_ladder_cant_be_placed_on run \
    return run \
        function overly_realistic:general/custom_blocks/drop_ladder/place_extend/extend_ladder_south
execute unless block ~ ~ ~1 #overly_realistic:drop_ladder_cant_be_placed_on run \
    return run \
        function overly_realistic:general/custom_blocks/drop_ladder/place_extend/extend_ladder_north
execute unless block ~1 ~ ~ #overly_realistic:drop_ladder_cant_be_placed_on run \
    return run \
        function overly_realistic:general/custom_blocks/drop_ladder/place_extend/extend_ladder_west
execute unless block ~-1 ~ ~ #overly_realistic:drop_ladder_cant_be_placed_on run \
    return run \
        function overly_realistic:general/custom_blocks/drop_ladder/place_extend/extend_ladder_east

# -> If there are no supportable blocks, then break
scoreboard players set #or.ladder_should_break OverlyRealistic.General.ArbitraryData 1