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

    let data = {
        recipes: [
            {
                input: 'industrialforegoing:fertilizer',
                growthModifier: 1.7,
                id: `${id_prefix}fertilizer`
            },
            {
                input: 'thermal:phytogro',
                growthModifier: 3.0,
                id: `${id_prefix}phyto_gro`
            },
            {
                input: 'botania:fertilizer',
                growthModifier: 1.5,
                id: `${id_prefix}floral_fertilizer`
            },
            {
                input: 'farmingforblockheads:red_fertilizer',
                growthModifier: 2.0,
                id: `${id_prefix}red_fertilizer`
            },
            {
                input: 'farmingforblockheads:green_fertilizer',
                growthModifier: 1.5,
                id: `${id_prefix}green_fertilizer`
            }
        ]
    };

    data.recipes.forEach((recipe) => {
        event.recipes.immersiveengineering
            .fertilizer(recipe.input)
            .growthModifier(recipe.growthModifier)
            .id(recipe.id);
    });
});
