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

# -> Extend beam
$execute as @p[tag=OverlyRealistic.Player.PlacedCustomBlock,distance=..8,sort=arbitrary] run \
    function overly_realistic:general/custom_blocks/support_beam/place_extend/extend_$(or_support_beam_type_full)

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