
# --> Check for supporting blocks

# -> South
execute if entity @s[tag=OverlyRealistic.Block.CavePainting_Rot_South] run \
    return run \
        execute if block ~ ~ ~1 #air run \
            function overly_realistic:general/custom_blocks/cave_painting/cave_painting_break_from_support

# -> East
execute if entity @s[tag=OverlyRealistic.Block.CavePainting_Rot_East] run \
    return run \
        execute if block ~1 ~ ~ #air run \
            function overly_realistic:general/custom_blocks/cave_painting/cave_painting_break_from_support

# -> West
execute if entity @s[tag=OverlyRealistic.Block.CavePainting_Rot_West] run \
    return run \
        execute if block ~-1 ~ ~ #air run \
            function overly_realistic:general/custom_blocks/cave_painting/cave_painting_break_from_support

# -> North
execute if entity @s[tag=OverlyRealistic.Block.CavePainting_Rot_North] run \
    return run \
        execute if block ~ ~ ~-1 #air run \
            function overly_realistic:general/custom_blocks/cave_painting/cave_painting_break_from_support
