
# --> Mold type: Hoe head

# -> Tag as molded
tag @s add OverlyRealistic.Block.ClayMold_HasBeenMolded

# -> Set mold type data
data modify entity @s data.molded_mold_type set value "hoe_head"

# -> Set model for display
execute on passengers run \
    data modify entity @s item.components."minecraft:item_model" set value "overlyrealistic:blocks/clay_mold/clay_mold_hoe_head"

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

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