
# -> Create recipe
scoreboard players set #or.heated_wrought_iron_recipe_success OverlyRealistic.General.ArbitraryData 0
$function overly_realistic:general/custom_blocks/heated_wrought_iron/method_operations/recipes/$(shape_0)$(shape_1)$(shape_2)$(shape_3)

# -> If recipe has not failed then return
execute unless score #or.heated_wrought_iron_recipe_success OverlyRealistic.General.ArbitraryData matches 0 run \
    return fail

# -> Drop heated wrought iron
loot spawn ~ ~ ~ loot overly_realistic:blocks/heated_wrought_iron

# -> Sound
playsound block.stone.break block @a ~ ~ ~ 0.7 2
playsound block.calcite.break block @a ~ ~ ~ 0.5 2

# -> Remove ent
execute on passengers run \
    kill @s
kill @s
