
# -> If block is not replaceable then return and break
execute unless block ~ ~ ~ #overly_realistic:support_beams/support_beam_can_replace run \
    return run \
        function overly_realistic:general/custom_blocks/drop_ladder/drop_ladder_break_on_place

# -> If block is inside another custom block then return and break
execute align xyz \
    if entity @n[type=interaction,tag=OverlyRealistic.Block.IsCustomBlock,tag=!OverlyRealistic.Block.IsFullBlock,dx=0,dy=0,dz=0] run \
        return run \
            function overly_realistic:general/custom_blocks/drop_ladder/drop_ladder_break_on_place

# -> Place support beam
function overly_realistic:general/custom_blocks/drop_ladder/place_extend/ladder_extend

# -> Remove marker
kill @s
