onEvent('recipes', (event) => {

    const id_prefix = 'farmersdelight:kubejs/cooking';
    const recipes = [
        {
            inputs: ['minecraft:dirt', '#forge:vegetables', '#forge:vegetables', 'farmersdelight:straw', 'minecraft:bone_meal'],
            output: 'farmersdelight:organic_compost',
            count: 1,
            cookingTime: 400,
            id: 'organic_compost'
        },
        {
            inputs: ['minecraft:apple', 'minecraft:honey_bottle'],
            output: 'create:honeyed_apple',
            count: 1,
            cookingTime: 200,
            id: 'honeyed_apple'
        }
    ];

    recipes.forEach((recipe) => {
        recipe.type = 'farmersdelight:cooking';
        recipe.ingredients = recipe.inputs.map((input) => Ingredient.of(input).toJson());
        recipe.result = { item: recipe.output, count: recipe.count };
        if (recipe.container) {
            recipe.container = { item: recipe.container };
        }

        event.custom(recipe).id(`${id_prefix}/${recipe.id}`);
    });
})