'use strict';
onEvent('recipes', (event) => {
    const id_prefix = 'enigmatica:base/immersiveengineering/metal_press/';

    const recipes = [
        {
            output: 'immersiveengineering:dragons_breath',
            input: 'immersiveengineering:empty_shell',
            mold: 'minecraft:dragon_head',
            id: `${id_prefix}ie_dragons_breath`
        },
        {
            output: 'arsarsenal:source_steel_ingot',
            input: '#forge:ingots/netherite',
            mold: 'minecraft:dragon_head',
            id: `${id_prefix}source_steel_ingot`
        },
        {
            output: 'mekanism:hdpe_sheet',
            input: 'mekanism:hdpe_pellet',
            mold: '#thermal:crafting/dies/plate',
            id: `${id_prefix}hdpe_sheet`
        },
        {
            output: 'immersiveengineering:empty_casing',
            input: 'create:fluid_pipe',
            mold: '#thermal:crafting/dies/bullet_casing',
            id: 'immersiveengineering:metalpress/bullet_casing'
        }
    ];

    recipes.forEach((recipe) => {
        event.recipes.immersiveengineering
            .metal_press(recipe.output, recipe.input, recipe.mold)
            .id(recipe.id);
    });
});
