
# -> South
execute if score #or.global OverlyRealistic.General.ArbitraryData matches -45..45 run \
    return run \
        execute unless block ~ ~ ~1 #air run \
            function overly_realistic:general/custom_blocks/cave_painting/place_painting/painting_s with entity @s data

# -> East
execute if score #or.global OverlyRealistic.General.ArbitraryData matches -134..-44 run \
    return run \
        execute unless block ~1 ~ ~ #air run \
            function overly_realistic:general/custom_blocks/cave_painting/place_painting/painting_e with entity @s data

# -> West
execute if score #or.global OverlyRealistic.General.ArbitraryData matches 46..134 run \
    return run \
        execute unless block ~-1 ~ ~ #air run \
            function overly_realistic:general/custom_blocks/cave_painting/place_painting/painting_w with entity @s data

# -> North
execute unless block ~ ~ ~-1 #air run \
    function overly_realistic:general/custom_blocks/cave_painting/place_painting/painting_n with entity @s data
