// priority: 0

// Visit the wiki for more info - https://kubejs.com/

// onEvent('recipes', event => {
    
ServerEvents.recipes(event => {
    let crystallizerRecipe = (result, liquidInput, liquidAmount, input) => {
        event.custom({
            type: 'thermal:crystallizer',
            ingredients: [
                {
                    fluid: liquidInput,
                    amount: liquidAmount
                },
                {
                    item: input
                }
            ],
            result: [
                {
                    item: result
                }
            ]
        })
    }

    event.recipes.create.filling('biomesoplenty:hellbark_sapling', ['#minecraft:saplings', Fluid.of('minecraft:lava', 50)]).id('bttk:filling/hellbark_sapling_from_lava')
    event.recipes.create.filling('biomesoplenty:hellbark_sapling', ['#minecraft:saplings', Fluid.of('kubejs:hellish_essence', 25)]).id('bttk:filling/hellbark_sapling_from_hellish_fuel')
    event.recipes.create.compacting(Fluid.of('kubejs:hellish_essence', 50), '8x biomesoplenty:hellbark_log').heated().id('bttk:compacting/hellish_fuel_alternative')

    crystallizerRecipe('biomesoplenty:brimstone_cluster', 'minecraft:lava', 100, 'biomesoplenty:brimstone_bud')
    event.recipes.create.crushing([Item.of('biomesoplenty:brimstone_bud', 1), Item.of('minecraft:gunpowder', 2), Item.of('biomesoplenty:brimstone_bud', 1).withChance(0.15), Item.of('minecraft:gunpowder', 1).withChance(0.35), Item.of('thermal:sulfur', 1).withChance(0.12)], 'biomesoplenty:brimstone_cluster').id('bttk:crushing/gunpowder_from_brimstone_cluster')
})