
# -> 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/support_beam/support_beam_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/support_beam/support_beam_break_on_place

# -> Place support beam
function overly_realistic:general/custom_blocks/support_beam/place_extend/support_beam_extend with entity @s data

# -> Remove marker
kill @s
