
# -> If clay mold is already molded then return
execute if entity @s[tag=OverlyRealistic.Block.ClayMold_HasBeenMolded] run \
    return fail

# -> Tag clay mold
tag @s add OverlyRealistic.Block.ClayMoldInteractedWith

# -> Build clay mold data
function overly_realistic:general/custom_blocks/clay_mold/clay_mold_interactions/build_clay_mold_data

# -> Interaction call
execute on target at @s run \
    function overly_realistic:general/custom_blocks/clay_mold/player_interact_with_clay_mold

# -> Untag clay mold
tag @s remove OverlyRealistic.Block.ClayMoldInteractedWith
