KubeJS Examples

Greenhouse

    ServerEvents.recipes(event => {
        event.recipes.extendedfeatures.arboreal_farming('recipe_name')
            .notConsumable()
            .itemInputs()
            .inputFluids()
            .itemOutputs()
            .circuit()
            .duration()
            .EUt(GTValues.VA[GTValues.(tier)])
    });
    ServerEvents.recipes(event => {
        event.recipes.extendedfeatures.general_farming('recipe_name')
            .notConsumable()
            .itemInputs()
            .inputFluids()
            .itemOutputs()
            .circuit()
            .duration()
            .EUt(GTValues.VA[GTValues.(tier)])
    });

Rock Processing Plant

    ServerEvents.recipes(event => {
        event.recipes.extendedfeatures.rock_processing_plant('recipe_name')
            .itemInputs()
            .inputFluids()
            .itemOutputs()
            .outputFluids()
            .duration()
            .EUt(GTValues.VA[GTValues.(tier)])
    });

Large Gas Collector

    ServerEvents.recipes(event => {
        event.recipes.extendedfeatures.air_collection('recipe_name')
            .circuit()
            .outputFluid()
            .duration()
            .EUt(GTValues.VA[GTValues.(tier)])
    });

Chemical Skips

    ServerEvents.recipes(event => {
        event.recipes.extendedfeatures.chemical_skips('recipe_name')
            .itemInputs()
            .inputFluids()
            .itemOutputs()
            .outputFluids()
            .circuit()
            .duration()
            .EUt(GTValues.VA[GTValues.(tier)])
    });

Casing Disassembly

small note: try to avoid making new recipes for "machine_disassembly" mode, that recipe type has its own recipe logic that fetches all singleblock machines and multiblock controllers

    ServerEvents.recipes(event => {
        event.recipes.extendedfeatures.component_disassembly('recipe_name')
            .itemInputs()
            .itemOutputs()
            .outputFluids()
            .circuit()
            .duration()
            .EUt(GTValues.VA[GTValues.(tier)])
    });