
# -> Untag interaction
tag @s remove OverlyRealistic.Block.HardenedClayMold_TempMold

# -> Set if mold has contents
execute if score #or.hardened_clay_mold_has_contents OverlyRealistic.General.ArbitraryData matches 1 run \
    tag @s add OverlyRealistic.Block.HardenedClayMold_HasContents

# -> Set if mold drops an item
execute if score #or.hardened_clay_mold_drops_item OverlyRealistic.General.ArbitraryData matches 1 run \
    tag @s add OverlyRealistic.Block.HardenedClayMold_DropsItem

# -> Rotate display
execute on passengers \
    at @s \
    facing entity @p[tag=OverlyRealistic.Player.PlacedCustomBlock,distance=..16] feet run \
        rotate @s ~ 0

# -> Set display from item used
$execute on passengers run \
    loot replace entity @s contents loot overly_realistic:blocks/hardened_clay_mold_molded_types/hardened_clay_mold_$(clay_mold_type)_$(mold_contents)
