// priority: 0

const registerMegaCellsRecipes = (event) => {
    
    event.remove({ not: [
        {id: 'megacells:network/mega_pattern_provider_block'},
        {id: 'megacells:network/mega_interface_block'},
        {id: 'megacells:network/mega_interface_part'},
        {id: 'megacells:network/mega_pattern_provider_part'},
    ], mod: 'megacells' })
    
    event.recipes.gtceu.assembler('megacells:mega_energy_cell')
        .itemInputs('8x ae2:dense_energy_cell', '8x gtceu:nichrome_quadruple_wire', '4x #gtceu:circuits/iv')
        .itemOutputs('megacells:mega_energy_cell')
        .circuit(1)
        .duration(960)
        .EUt(2048)

    //printed accumulation circuit
    event.recipes.gtceu.forming_press('megacells:printed_accumulation_processor')
        .itemInputs('#forge:dense_plates/silicon')
        .notConsumable('megacells:accumulation_processor_press')
        .itemOutputs('megacells:printed_accumulation_processor')
        .duration(20)
        .EUt(1920)

    // Inscriber Silicon Press
    event.recipes.gtceu.laser_engraver('ae2:accumulation_processor_press')
        .itemInputs('#forge:plates/naquadah')
        .notConsumable('#forge:lenses/black')
        .itemOutputs('megacells:accumulation_processor_press')
        .duration(4000)
        .EUt(1920)

    //accumulation processor
    event.recipes.gtceu.circuit_assembler('megacells:accumulation_processor')
        .itemInputs(
            'ae2:printed_silicon',
            'megacells:printed_accumulation_processor',
            '#gtceu:circuits/iv',
            '2x #gtceu:resistors',
            '2x #forge:fine_wires/niobium_titanium',)
        .inputFluids(Fluid.of('tfg:fluix', 144))
        .itemOutputs('2x megacells:accumulation_processor')
        .duration(20)
        .EUt(1920)
        .cleanroom(CleanroomType.CLEANROOM)

    event.recipes.gtceu.circuit_assembler('megacells:accumulation_processor_adv')
        .itemInputs(
            'ae2:printed_silicon',
            'megacells:printed_accumulation_processor',
            '#gtceu:circuits/iv',
            'gtceu:advanced_smd_resistor',
            '2x #forge:fine_wires/niobium_titanium',)
        .inputFluids(Fluid.of('tfg:fluix', 144))
        .itemOutputs('2x megacells:accumulation_processor')
        .duration(20)
        .EUt(1920)
        .cleanroom(CleanroomType.CLEANROOM)

    //Mega Item Cell Housing
    event.shaped('megacells:mega_item_cell_housing', [
        'ABA',
        'CDC',
        'BBB'
    ], {
        A: 'ae2:quartz_vibrant_glass',
        B: '#forge:plates/maraging_steel_300',
        C: '#forge:fine_wires/niobium_titanium',
        D: '#gtceu:circuits/iv',
    }).id('tfg:crafting/mega_item_cell_housing')
    
    //Mega Fluid Cell Housing
    event.shaped('megacells:mega_fluid_cell_housing', [
        'ABA',
        'CDC',
        'BBB'
    ], {
        A: 'ae2:quartz_vibrant_glass',
        B: '#forge:plates/incoloy_ma_956',
        C: '#forge:fine_wires/niobium_titanium',
        D: '#gtceu:circuits/iv',
    }).id('tfg:crafting/mega_fluid_cell_housing')

    //cell dock
    event.shaped('megacells:cell_dock', [
        'ABA',
        'CDC',
    ], {
        A: '#forge:plates/steel',
        B: 'ae2:engineering_processor',
        C: '#ae2:glass_cable',
        D: '#gtceu:circuits/lv',
    }).id('tfg:crafting/megacells_cell_dock')

    //#region Storage Components

    // 1m storage components
    event.recipes.gtceu.assembly_line('megacells:cell_component_1m')
        .itemInputs(
            '4x #gtceu:circuits/uv',
            '4x #forge:plates/darmstadtium',
            '2x ae2:quartz_vibrant_glass',
            '4x #forge:dusts/ender_pearl',
            '4x ae2:matter_ball',
            '2x megacells:accumulation_processor',)
        .inputFluids(Fluid.of('gtceu:hsla_steel', 144))
        .itemOutputs('megacells:cell_component_1m')
        .duration(200)
        .EUt(491520)
        .cleanroom(CleanroomType.CLEANROOM)

    // 4m storage components
    event.recipes.gtceu.assembly_line('megacells:cell_component_4m')
        .itemInputs(
            '4x #gtceu:circuits/uhv',
            '4x #forge:plates/neutronium',
            '2x ae2:quartz_vibrant_glass',
            '4x #forge:dusts/ender_pearl',
            '4x ae2:matter_ball',
            '2x megacells:accumulation_processor')
        .inputFluids(Fluid.of('gtceu:hsla_steel', 144))
        .itemOutputs('megacells:cell_component_4m')
        .duration(200)
        .EUt(1966080)
        .cleanroom(CleanroomType.CLEANROOM)
    
    event.recipes.gtceu.assembly_line('megacells:cell_component_4m_1m')
        .itemInputs(
            '2x megacells:accumulation_processor',
            '2x #gtceu:circuits/uhv',
            '2x ae2:quartz_vibrant_glass',
            '4x megacells:cell_component_1m')
        .inputFluids(Fluid.of('gtceu:hsla_steel', 144))
        .itemOutputs('megacells:cell_component_4m')
        .duration(400)
        .EUt(1966080)
        .cleanroom(CleanroomType.CLEANROOM)

    // // 16m storage components
    // event.recipes.gtceu.assembly_line('megacells:cell_component_16m')
    //     .itemInputs(
    //         '4x #gtceu:circuits/uev',
    //         '4x #forge:plates/tungsten_steel',
    //         '8x #forge:dusts/certus_quartz',
    //         '2x megacells:accumulation_processor',)
    //     .inputFluids(Fluid.of('gtceu:hsla_steel', 144))
    //     .itemOutputs('megacells:cell_component_16m')
    //     .duration(200)
    //     .EUt(7864320)
    //     .cleanroom(CleanroomType.CLEANROOM)
    
    // event.recipes.gtceu.assembly_line('megacells:cell_component_16m_4m')
    //     .itemInputs(
    //         '2x megacells:accumulation_processor',
    //         '2x #gtceu:circuits/uev',
    //         '4x megacells:cell_component_4m')
    //     .inputFluids(Fluid.of('gtceu:hsla_steel', 144))
    //     .itemOutputs('megacells:cell_component_16m')
    //     .duration(400)
    //     .EUt(7864320)
    //     .cleanroom(CleanroomType.CLEANROOM)
    // // 64m storage components
    // event.recipes.gtceu.assembly_line('megacells:cell_component_64m')
    //     .itemInputs(
    //         '4x #gtceu:circuits/uiv',
    //         '4x #forge:plates/rhodium_plated_palladium',
    //         '8x #forge:dusts/certus_quartz',
    //         '2x megacells:accumulation_processor')
    //     .inputFluids(Fluid.of('gtceu:hsla_steel', 144))
    //     .itemOutputs('megacells:cell_component_64m')
    //     .duration(200)
    //     .EUt(31457280)
    //     .cleanroom(CleanroomType.CLEANROOM)
    //     event.recipes.gtceu.assembly_line('megacells:cell_component_64m_16m')
    //     .itemInputs(
    //         '2x megacells:accumulation_processor',
    //         '2x #gtceu:circuits/uiv',
    //         '4x megacells:cell_component_16m')
    //     .inputFluids(Fluid.of('gtceu:hsla_steel', 144))
    //     .itemOutputs('megacells:cell_component_64m')
    //     .duration(400)
    //     .EUt(31457280)
    //     .cleanroom(CleanroomType.CLEANROOM)
    // // 256m storage components
    // event.recipes.gtceu.assembly_line('megacells:cell_component_256m')
    //     .itemInputs(
    //         '4x #gtceu:circuits/uxv',
    //         '4x #forge:plates/naquadah_alloy',
    //         '16x #forge:dusts/certus_quartz',
    //         '2x megacells:accumulation_processor',)
    //     .inputFluids(Fluid.of('gtceu:hsla_steel', 144))
    //     .itemOutputs('megacells:cell_component_256m')
    //     .duration(200)
    //     .EUt(125829120)
    //     .cleanroom(CleanroomType.CLEANROOM)
    // event.recipes.gtceu.assembly_line('megacells:cell_component_256m_64m')
    //     .itemInputs(
    //         '2x megacells:accumulation_processor',
    //         '2x #gtceu:circuits/uxv',
    //         '4x megacells:cell_component_64m')
    //     .inputFluids(Fluid.of('gtceu:hsla_steel', 144))
    //     .itemOutputs('megacells:cell_component_256m')
    //     .duration(400)
    //     .EUt(125829120)
    //     .cleanroom(CleanroomType.CLEANROOM)
    //#endregion

    //#region MEGA interface
    // EV
    event.recipes.gtceu.assembler('megacells:mega_interface_ev')
        .itemInputs(
            '2x #ae2:interface',
            '4x megacells:accumulation_processor',
            '2x gtceu:ev_conveyor_module',
            '4x gtceu:laminated_glass',
            '4x gtceu:titanium_plate',
            '2x ae2:annihilation_core',
            '2x ae2:formation_core',
            '#gtceu:circuits/ev')
        .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 1152))
        .itemOutputs('megacells:mega_interface')
        .duration(300)
        .EUt(1920)
        .cleanroom(CleanroomType.CLEANROOM)

    // IV
    event.recipes.gtceu.assembler('megacells:mega_interface_iv')
        .itemInputs(
            '4x #ae2:interface',
            '4x megacells:accumulation_processor',
            '2x gtceu:iv_conveyor_module',
            '4x gtceu:laminated_glass',
            '4x gtceu:tungsten_steel_plate',
            '2x ae2:annihilation_core',
            '2x ae2:formation_core',
            '#gtceu:circuits/iv',)
        .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 1152))
        .itemOutputs('2x megacells:mega_interface')
        .duration(300)
        .EUt(7680)
        .cleanroom(CleanroomType.CLEANROOM)

    // LuV
    event.recipes.gtceu.assembler('megacells:mega_interface_luv')
        .itemInputs(
            '8x #ae2:interface',
            '4x megacells:accumulation_processor',
            '2x gtceu:luv_conveyor_module',
            '4x gtceu:laminated_glass',
            '4x gtceu:rhodium_plated_palladium_plate',
            '2x ae2:annihilation_core',
            '2x ae2:formation_core',
            '#gtceu:circuits/luv')
        .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 1152))
        .itemOutputs('4x megacells:mega_interface')
        .duration(300)
        .EUt(30720)
        .cleanroom(CleanroomType.CLEANROOM)

    // ZPM
    event.recipes.gtceu.assembler('megacells:mega_interface_zpm')
        .itemInputs(
            '16x #ae2:interface',
            '4x megacells:accumulation_processor',
            '2x gtceu:zpm_conveyor_module',
            '4x gtceu:laminated_glass',
            '4x gtceu:naquadah_alloy_plate',
            '2x ae2:annihilation_core',
            '2x ae2:formation_core',
            '#gtceu:circuits/zpm')
        .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 1152))
        .itemOutputs('8x megacells:mega_interface')
        .duration(300)
        .EUt(119680)
        .cleanroom(CleanroomType.CLEANROOM)

    //#endregion

    //#region MEGA provider
    // EV
    event.recipes.gtceu.assembler('megacells:mega_pattern_provider_ev')
        .itemInputs(
            '2x #ae2:pattern_provider',
            '4x megacells:accumulation_processor',
            '2x gtceu:ev_conveyor_module',
            '4x gtceu:titanium_plate',
            '2x ae2:annihilation_core',
            '2x ae2:formation_core',
            '#gtceu:circuits/ev')
        .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 1152))
        .itemOutputs('megacells:mega_pattern_provider')
        .duration(300)
        .EUt(1920)
        .cleanroom(CleanroomType.CLEANROOM)

    // IV
    event.recipes.gtceu.assembler('megacells:mega_pattern_provider_iv')
        .itemInputs(
            '4x #ae2:pattern_provider',
            '4x megacells:accumulation_processor',
            '2x gtceu:iv_conveyor_module',
            '4x gtceu:tungsten_steel_plate',
            '2x ae2:annihilation_core',
            '2x ae2:formation_core',
            '#gtceu:circuits/iv',)
        .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 1152))
        .itemOutputs('2x megacells:mega_pattern_provider')
        .duration(300)
        .EUt(7680)
        .cleanroom(CleanroomType.CLEANROOM)

    // LuV
    event.recipes.gtceu.assembler('megacells:mega_pattern_provider_luv')
        .itemInputs(
            '8x #ae2:pattern_provider',
            '4x megacells:accumulation_processor',
            '2x gtceu:luv_conveyor_module',
            '4x gtceu:rhodium_plated_palladium_plate',
            '2x ae2:annihilation_core',
            '2x ae2:formation_core',
            '#gtceu:circuits/luv')
        .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 1152))
        .itemOutputs('4x megacells:mega_pattern_provider')
        .duration(300)
        .EUt(30720)
        .cleanroom(CleanroomType.CLEANROOM)

    // ZPM
    event.recipes.gtceu.assembler('megacells:mega_pattern_provider_zpm')
        .itemInputs(
            '16x #ae2:pattern_provider',
            '4x megacells:accumulation_processor',
            '2x gtceu:zpm_conveyor_module',
            '4x gtceu:naquadah_alloy_plate',
            '2x ae2:annihilation_core',
            '2x ae2:formation_core',
            '#gtceu:circuits/zpm')
        .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 1152))
        .itemOutputs('8x megacells:mega_pattern_provider')
        .duration(300)
        .EUt(119680)
        .cleanroom(CleanroomType.CLEANROOM)

    //#endregion

    // greater energy card
    event.recipes.gtceu.assembler('megacells:greater_energy_card')
        .itemInputs(
            'ae2:energy_card',
            '2x gtceu:lapotronic_energy_orb')
        .itemOutputs('megacells:greater_energy_card')
        .duration(200)
        .EUt(1024)

    //#region Cell Packing
    //item
    event.recipes.gtceu.packer('megacells:item_storage_cell_1m')
        .itemInputs('megacells:mega_item_cell_housing', 'megacells:cell_component_1m')
        .itemOutputs('megacells:item_storage_cell_1m')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    event.recipes.gtceu.packer('megacells:item_storage_cell_4m')
        .itemInputs('megacells:mega_item_cell_housing', 'megacells:cell_component_4m')
        .itemOutputs('megacells:item_storage_cell_4m')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:item_storage_cell_16m')
    // .itemInputs('megacells:mega_item_cell_housing', 'megacells:cell_component_16m')
    // .itemOutputs('megacells:item_storage_cell_16m')
    // .duration(10)
    // .EUt(12)
    // .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:item_storage_cell_64m')
    // .itemInputs('megacells:mega_item_cell_housing', 'megacells:cell_component_64m')
    // .itemOutputs('megacells:item_storage_cell_64m')
    // .duration(10)
    // .EUt(12)
    // .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:item_storage_cell_256m')
    // .itemInputs('megacells:mega_item_cell_housing', 'megacells:cell_component_256m')
    // .itemOutputs('megacells:item_storage_cell_256m')
    // .duration(10)
    // .EUt(12)
    // .cleanroom(CleanroomType.CLEANROOM)

    //fluid
    event.recipes.gtceu.packer('megacells:fluid_storage_cell_1m')
        .itemInputs('megacells:mega_fluid_cell_housing', 'megacells:cell_component_1m')
        .itemOutputs('megacells:fluid_storage_cell_1m')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    event.recipes.gtceu.packer('megacells:fluid_storage_cell_4m')
        .itemInputs('megacells:mega_fluid_cell_housing', 'megacells:cell_component_4m')
        .itemOutputs('megacells:fluid_storage_cell_4m')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:fluid_storage_cell_16m')
    // .itemInputs('megacells:mega_fluid_cell_housing', 'megacells:cell_component_16m')
    // .itemOutputs('megacells:fluid_storage_cell_16m')
    // .duration(10)
    // .EUt(12)
    // .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:fluid_storage_cell_64m')
    // .itemInputs('megacells:mega_fluid_cell_housing', 'megacells:cell_component_64m')
    // .itemOutputs('megacells:fluid_storage_cell_64m')
    // .duration(10)
    // .EUt(12)
    // .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:fluid_storage_cell_256m')
    // .itemInputs('megacells:mega_fluid_cell_housing', 'megacells:cell_component_256m')
    // .itemOutputs('megacells:fluid_storage_cell_256m')
    // .duration(10)
    // .EUt(12)
    // .cleanroom(CleanroomType.CLEANROOM)

    //item back
    event.recipes.gtceu.packer('megacells:item_storage_cell_1m_back')
        .itemInputs('megacells:item_storage_cell_1m')
        .itemOutputs('megacells:mega_item_cell_housing', 'megacells:cell_component_1m')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    event.recipes.gtceu.packer('megacells:item_storage_cell_4m_back')
        .itemInputs('megacells:item_storage_cell_4m')
        .itemOutputs('megacells:mega_item_cell_housing', 'megacells:cell_component_4m')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:item_storage_cell_16m_back')
    // .itemInputs('megacells:item_storage_cell_16m')
    // .itemOutputs('megacells:mega_item_cell_housing', 'megacells:cell_component_16m')
    // .duration(10)
    // .EUt(12)
    // .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:item_storage_cell_64m_back')
    // .itemInputs('megacells:item_storage_cell_64m')
    // .itemOutputs('megacells:mega_item_cell_housing', 'megacells:cell_component_64m')
    // .duration(10)
    // .EUt(12)
    // .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:item_storage_cell_256m_back')
    // .itemInputs('megacells:item_storage_cell_256m')
    // .itemOutputs('megacells:mega_item_cell_housing', 'megacells:cell_component_256m')
    // .duration(10)
    // .EUt(12)
    // .cleanroom(CleanroomType.CLEANROOM)

    //fluid back
    event.recipes.gtceu.packer('megacells:fluid_storage_cell_1m_back')
        .itemInputs('megacells:fluid_storage_cell_1m')
        .itemOutputs('megacells:mega_fluid_cell_housing', 'megacells:cell_component_1m')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    event.recipes.gtceu.packer('megacells:fluid_storage_cell_4m_back')
        .itemInputs('megacells:fluid_storage_cell_4m')
        .itemOutputs('megacells:mega_fluid_cell_housing', 'megacells:cell_component_4m')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:fluid_storage_cell_16m_back')
    // .itemInputs('megacells:fluid_storage_cell_16m')
    // .itemOutputs('megacells:mega_fluid_cell_housing','megacells:cell_component_16m')
    // .duration(10)
    // .EUt(12)
    // .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:fluid_storage_cell_64m_back')
    // .itemInputs('megacells:fluid_storage_cell_64m')
    // .itemOutputs('megacells:mega_fluid_cell_housing', 'megacells:cell_component_64m')
    // .duration(10)
    // .EUt(12)
    // .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:fluid_storage_cell_256m_back')
    // .itemInputs('megacells:fluid_storage_cell_256m')
    // .itemOutputs('megacells:mega_fluid_cell_housing', 'megacells:cell_component_256m')
    // .duration(10)
    // .EUt(12)
    // .cleanroom(CleanroomType.CLEANROOM)

    //#endregion 

    //mega crafting unit
    event.recipes.gtceu.assembler('megacells:mega_crafting_unit')
        .itemInputs(
            '4x ae2:crafting_unit',
            '4x megacells:accumulation_processor',
            '2x ae2:logic_processor',
            '#gtceu:circuits/ev',
            '2x ae2:fluix_smart_cable')
        .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 288))
        .itemOutputs('megacells:mega_crafting_unit')
        .duration(20)
        .EUt(2720)


        //#region Crafting  Storage
    event.recipes.gtceu.packer('megacells:mega_crafting_accelerator')
        .itemInputs('megacells:mega_crafting_unit', 'ae2:engineering_processor')
        .itemOutputs('megacells:mega_crafting_accelerator')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    event.recipes.gtceu.packer('megacells:1m_crafting_storage')
        .itemInputs('megacells:mega_crafting_unit', 'megacells:cell_component_1m')
        .itemOutputs('megacells:1m_crafting_storage')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    event.recipes.gtceu.packer('megacells:4m_crafting_storage')
        .itemInputs('megacells:mega_crafting_unit', 'megacells:cell_component_4m')
        .itemOutputs('megacells:4m_crafting_storage')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:16m_crafting_storage')
    //     .itemInputs('megacells:mega_crafting_unit', 'megacells:cell_component_16m')
    //     .itemOutputs('megacells:16m_crafting_storage')
    //     .duration(10)
    //     .EUt(12)
    //     .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:64m_crafting_storage')
    //     .itemInputs('megacells:mega_crafting_unit', 'megacells:cell_component_64m')
    //     .itemOutputs('megacells:64m_crafting_storage')
    //     .duration(10)
    //     .EUt(12)
    //     .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:256m_crafting_storage')
    //     .itemInputs('megacells:mega_crafting_unit', 'megacells:cell_component_256m')
    //     .itemOutputs('megacells:256m_crafting_storage')
    //     .duration(10)
    //     .EUt(12)
    //     .cleanroom(CleanroomType.CLEANROOM)

    event.recipes.gtceu.packer('megacells:mega_crafting_monitor')
        .itemInputs('megacells:mega_crafting_unit', 'ae2:storage_monitor')
        .itemOutputs('megacells:mega_crafting_monitor')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

        //back
    event.recipes.gtceu.packer('megacells:crafting_mega_accelerator_back')
        .itemInputs('ae2:crafting_accelerator')
        .itemOutputs('megacells:mega_crafting_unit', 'ae2:engineering_processor')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    event.recipes.gtceu.packer('megacells:1m_crafting_storage_back')
        .itemInputs('megacells:1m_crafting_storage')
        .itemOutputs('megacells:mega_crafting_unit', 'megacells:cell_component_1m')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    event.recipes.gtceu.packer('megacells:4m_crafting_storage_back')
        .itemInputs('megacells:4m_crafting_storage')
        .itemOutputs('megacells:mega_crafting_unit', 'megacells:cell_component_4m')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:16m_crafting_storage_back')
    //     .itemInputs('megacells:16m_crafting_storage')
    //     .itemOutputs('megacells:mega_crafting_unit', 'megacells:cell_component_16m')
    //     .duration(10)
    //     .EUt(12)
    //     .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:64m_crafting_storage_back')
    //     .itemInputs(
    //         'megacells:64m_crafting_storage')
    //     .itemOutputs('megacells:mega_crafting_unit','megacells:cell_component_64m')
    //     .duration(10)
    //     .EUt(12)
    //     .cleanroom(CleanroomType.CLEANROOM)

    // event.recipes.gtceu.packer('megacells:256m_crafting_storage_back')
    //     .itemInputs('megacells:256m_crafting_storage')
    //     .itemOutputs('megacells:mega_crafting_unit', 'megacells:cell_component_256m')
    //     .duration(10)
    //     .EUt(12)
    //     .cleanroom(CleanroomType.CLEANROOM)

    event.recipes.gtceu.packer('megacells:crafting_monitor_back')
        .itemInputs('megacells:mega_crafting_monitor')
        .itemOutputs('megacells:mega_crafting_unit', 'ae2:storage_monitor')
        .duration(10)
        .EUt(12)
        .cleanroom(CleanroomType.CLEANROOM)
    
        //#endregion

    //#region Portable Cells
    

    //#region Item
    
    // 1m
    event.recipes.gtceu.assembler('megacells:portable_item_cell_1m')
    .itemInputs(
        'ae2:chest',
        'megacells:cell_component_1m',
        'megacells:mega_energy_cell',
        '#gtceu:batteries/luv',
        'megacells:mega_item_cell_housing')
    .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 144))
    .itemOutputs('megacells:portable_item_cell_1m')
    .duration(200)
    .EUt(30720)
    .cleanroom(CleanroomType.CLEANROOM)

    // 4m
    event.recipes.gtceu.assembler('megacells:portable_item_cell_4m')
        .itemInputs(
            'ae2:chest',
            'megacells:cell_component_4m',
            'megacells:mega_energy_cell',
            '#gtceu:batteries/luv',
            'megacells:mega_item_cell_housing')
        .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 144))
        .itemOutputs('megacells:portable_item_cell_4m')
        .duration(200)
        .EUt(122880)
        .cleanroom(CleanroomType.CLEANROOM)

    // 16m
    // event.recipes.gtceu.assembler('megacells:portable_item_cell_16m')
    //     .itemInputs(
    //         'ae2:chest',
    //         'megacells:cell_component_16m',
    //         'megacells:mega_energy_cell',
    //         '#gtceu:batteries/luv',
    //         'megacells:mega_item_cell_housing')
    //     .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 144))
    //     .itemOutputs('megacells:portable_item_cell_16m')
    //     .duration(200)
    //     .EUt(491520)
    //     .cleanroom(CleanroomType.CLEANROOM)

    // // 64m
    // event.recipes.gtceu.assembler('megacells:portable_item_cell_64m')
    //     .itemInputs(
    //         'ae2:chest',
    //         'megacells:cell_component_64m',
    //         'megacells:mega_energy_cell',
    //         '#gtceu:batteries/luv',
    //         'megacells:mega_item_cell_housing')
    //     .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 144))
    //     .itemOutputs('megacells:portable_item_cell_64m')
    //     .duration(200)
    //     .EUt(1966080)
    //     .cleanroom(CleanroomType.CLEANROOM)

    // // 256m
    // event.recipes.gtceu.assembler('megacells:portable_item_cell_256m')
    //     .itemInputs(
    //         'ae2:chest',
    //         'megacells:cell_component_256m',
    //         'megacells:mega_energy_cell',
    //         '#gtceu:batteries/luv',
    //         'megacells:mega_item_cell_housing')
    //     .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 144))
    //     .itemOutputs('megacells:portable_item_cell_256m')
    //     .duration(200)
    //     .EUt(7864320)
    //     .cleanroom(CleanroomType.CLEANROOM)

    //#endregion


    //#region Fluid

    // 1m
    event.recipes.gtceu.assembler('megacells:portable_fluid_cell_1m')
        .itemInputs(
            'ae2:chest',
            'megacells:cell_component_1m',
            'megacells:mega_energy_cell',
            '#gtceu:batteries/luv',
            'megacells:mega_fluid_cell_housing')
        .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 144))
        .itemOutputs('megacells:portable_fluid_cell_1m')
        .duration(200)
        .EUt(30720)
        .cleanroom(CleanroomType.CLEANROOM)

    // 4m
    event.recipes.gtceu.assembler('megacells:portable_fluid_cell_4m')
        .itemInputs(
            'ae2:chest',
            'megacells:cell_component_4m',
            'megacells:mega_energy_cell',
            '#gtceu:batteries/luv',
            'megacells:mega_fluid_cell_housing')
        .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 144))
        .itemOutputs('megacells:portable_fluid_cell_4m')
        .duration(200)
        .EUt(122880)
        .cleanroom(CleanroomType.CLEANROOM)

    // // 16m
    // event.recipes.gtceu.assembler('megacells:portable_fluid_cell_16m')
    //     .itemInputs(
    //         'ae2:chest',
    //         'megacells:cell_component_16m',
    //         'megacells:mega_energy_cell',
    //         '#gtceu:batteries/luv',
    //         'megacells:mega_fluid_cell_housing')
    //     .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 144))
    //     .itemOutputs('megacells:portable_fluid_cell_16m')
    //     .duration(200)
    //     .EUt(491520)
    //     .cleanroom(CleanroomType.CLEANROOM)

    // // 64m
    // event.recipes.gtceu.assembler('megacells:portable_fluid_cell_64m')
    //     .itemInputs(
    //         'ae2:chest',
    //         'megacells:cell_component_64m',
    //         'megacells:mega_energy_cell',
    //         '#gtceu:batteries/luv',
    //         'megacells:mega_fluid_cell_housing')
    //     .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 144))
    //     .itemOutputs('megacells:portable_fluid_cell_64m')
    //     .duration(200)
    //     .EUt(1966080)
    //     .cleanroom(CleanroomType.CLEANROOM)

    // // 256m
    // event.recipes.gtceu.assembler('megacells:portable_fluid_cell_256m')
    //     .itemInputs(
    //         'ae2:chest',
    //         'megacells:cell_component_256m',
    //         'megacells:mega_energy_cell',
    //         '#gtceu:batteries/luv',
    //         'megacells:mega_fluid_cell_housing')
    //     .inputFluids(Fluid.of('gtceu:polytetrafluoroethylene', 144))
    //     .itemOutputs('megacells:portable_fluid_cell_256m')
    //     .duration(200)
    //     .EUt(7864320)
    //     .cleanroom(CleanroomType.CLEANROOM)

    //#endregion
    //#endregion
}
