'use strict';
onEvent('recipes', (event) => {
    if (global.isExpertMode == false) {
        return;
    }

    const recipes = [
        {
            input: 'ars_nouveau:green_archwood_wood',
            output: 'botania:livingwood',
            id: 'botania:pure_daisy/livingwood'
        },
        {
            input: 'architects_palette:sunstone',
            output: 'botania:livingrock',
            id: 'botania:pure_daisy/livingrock'
        }
    ];

    recipes.forEach((recipe) => {
        let ingredient =
            recipe.input.charAt(0) == '#'
                ? { type: 'tag', tag: recipe.input.slice(1) }
                : { type: 'block', block: recipe.input };

        const re = event.custom({
            type: 'botania:pure_daisy',
            input: ingredient,
            output: { name: recipe.output }
        });
        if (recipe.id) {
            re.id(recipe.id);
        }
    });
});
