
# -> Reset break check
scoreboard players set #or.ladder_should_break OverlyRealistic.General.ArbitraryData 0

# -> Extend beam
execute as @p[tag=OverlyRealistic.Player.PlacedCustomBlock,distance=..8,sort=arbitrary] \
    rotated as @s run \
        function overly_realistic:general/custom_blocks/drop_ladder/place_extend/get_ladders

# -> If block needs to be broken then break
execute if score #or.ladder_should_break OverlyRealistic.General.ArbitraryData matches 1 run \
    function overly_realistic:general/custom_blocks/drop_ladder/drop_ladder_break_on_place
