
# -> Reset adv trigger
advancement revoke @s only overly_realistic:blocks/per_custom_block_interactions/hardened_clay_mold/interact_with_custom_block

# -> Return
return fail

# -> Tag player
tag @s add OverlyRealistic.Player.InteractedWithCustomBlock

# -> Run breaking function
execute as @e[type=interaction,tag=OverlyRealistic.Block.HardenedClayMold,distance=..64] \
    at @s \
    align xyz \
    positioned ~0.5 ~0.5 ~0.5 run \
        function overly_realistic:general/custom_blocks/hardened_clay_mold/per_block_interaction/interact_with_block_filter

# -> Untag player
tag @s remove OverlyRealistic.Player.InteractedWithCustomBlock
