
# -> If block is inside a non-full block then try moving it up
execute if block ~ ~ ~ #overly_realistic:non_full_blocks_upward \
    unless block ~ ~ ~ #campfires run \
        tp @s ~ ~1 ~

# -> Attempt placing the block
execute at @s \
    unless block ~ ~ ~ #campfires \
    align xyz \
    positioned ~0.5 ~ ~0.5 run \
        function overly_realistic:general/custom_blocks/clay_mold/clay_mold_placed
execute at @s \
    if block ~ ~ ~ #campfires \
    align xyz \
    positioned ~0.5 ~0.5 ~0.5 run \
        function overly_realistic:general/custom_blocks/clay_mold/clay_mold_placed

