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

    const id_prefix = 'immersiveengineering:kubejs/refinery';

    const recipes = [
        {
            output: {
                fluid: 'industrialforegoing:latex',
                amount: 16
            },
            input: [
                {
                    tag: 'thermal:resin',
                    amount: 12
                },
                {
                    tag: 'thermal:latex',
                    amount: 8
                }
            ],
            energy: 640,
            id: 'latex'
        },
        {
            output: {
                fluid: 'kubejs:witch_water',
                amount: 50
            },
            input: [
                {
                    tag: 'kubejs:otherworld_plantoil',
                    amount: 25
                },
                {
                    tag: 'industrialforegoing:sewage',
                    amount: 25
                }
            ],
            energy: 1024,
            id: 'witch_water'
        }
    ];

    recipes.forEach(recipe => {
        event.custom({
            type: 'immersiveengineering:refinery',
            result: recipe.output,
            input0: recipe.input[0],
            input1: recipe.input[1],
            energy: recipe.energy
        }).id(`${id_prefix}/${recipe.id}`);
    })

})