ServerEvents.recipes((event) => {
    const id_prefix = 'enigmatica:sophisticatedstorage/shapeless/';

    const recipes = [
        {
            output: 'sophisticatedstorage:magnet_upgrade',
            inputs: ['sophisticatedstorage:pickup_upgrade', 'simplemagnets:basicmagnet'],
            id: `${id_prefix}magnet_upgrade`
        }
    ];

    recipes.forEach((recipe) => {
        let r = event.shapeless(recipe.output, recipe.inputs).id(recipe.id);
        if (recipe.damage) r.damageIngredient(recipe.damage.item, recipe.damage.amount);
        if (recipe.replace) r.replaceIngredient(recipe.replace.item, recipe.replace.replacement);

        
    });
});
