
# --> Mold type: File head

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

# -> Set mold type data
data merge entity @s {data:{molded_mold_type:"file_head",or_block_fire_result:"clay_mold_file_head"}}

# -> Set model for display
execute on passengers run \
    item modify entity @s contents overly_realistic:clay_mold/set_clay_mold_model/set_file_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

# -> Set as fireable
tag @s add OverlyRealistic.Block.Block_CanBeFired
scoreboard players set @s OverlyRealistic.World.BlockFiringTimeMax 20
