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

    const recipes = [
        {
            inputs: [{ item: 'ars_nouveau:arcane_stone' }],
            output: {
                item: 'occultism:otherstone',
                count: 2
            },
            id: 'occultism:spirit_trade/stone_to_otherstone'
        }
    ];

    recipes.forEach((recipe) => {
        const re = event.custom({
            type: 'occultism:spirit_trade',
            ingredients: recipe.inputs,
            result: recipe.output
        });
        if (recipe.id) {
            re.id(recipe.id);
        }
    });
});
