onEvent('recipes', event => {

    const id_prefix = 'astralsorcery:kubejs/liquid_interaction'

    const recipes = [
        {
            reactants: [
                {
                     fluid: 'industrialforegoing:pink_slime',
                     amount: 10,
                     chance: 0.8
                },
                {
                    fluid: 'kubejs:industrial_adhesives',
                    amount: 10,
                    chance: 0.8
                }
            ],
            results: [
                {
                    item: 'kubejs:paste',
                    weight: 8,
                    id: 'paste'
                },
                {
                    item: 'industrialforegoing:pink_slime',
                    weight: 2,
                    id: 'pink_slime'
                }
            ]
        }
    ];

    recipes.forEach(recipe => {
        let reactant1 = recipe.reactants[0];
        let reactant2 = recipe.reactants[1];
        recipe.results.forEach(result => {
            event.custom({
                type: 'astralsorcery:liquid_interaction',
                reactant1: reactant1.fluid,
                reactant1Amount: reactant1.amount,
                reactant2: reactant2.fluid,
                reactant2Amount: reactant2.amount,
                chanceConsumeReactant1: reactant1.chance,
                chanceConsumeReactant2: reactant2.chance,
                weight: result.weight,
                result: {
                    id: 'astralsorcery:drop_item',
                    data: {
                        output: Item.of(result.item).toResultJson()
                    }
                }
            }).id(`${id_prefix}/${result.id}`);
        })
    })

})