onEvent('recipes', e => {
  e.custom({
    "type": "masterfulmachinery:machine_structure",
    "id": "meassembler",
    "controllerId": "memachine",
    "name": "ME Assembler",
    "layout": [
      [
        " ))))))) ",
        ")))))))))",
        ")))))))))",
        ")))))))))",
        " ))))))) "
      ],
      [
        " )*****) ",
        "))+++++))",
        "))+++++))",
        "))+++++))",
        " )+C+,+) "
      ],
      [
        " )+++++) ",
        "))-./.-))",
        "))-/0/-))",
        "))-./.-))",
        " )+++++) "
      ],
      [
        " 1     1 ",
        "1)+++++)1",
        "))22222))",
        "1)+++++)1",
        " 1     1 "
      ],
      [
        "         ",
        " 1     1 ",
        "1)3+4+3)1",
        " 1     1 ",
        "         "
      ],
      [
        "         ",
        "         ",
        " 1111111 ",
        "         ",
        "         "
      ]
    ],
    "legend": {
      "0": {
        "block": "appliedenergistics2:crafting_unit"
      },
      "1": {
        "block": "appliedenergistics2:smooth_sky_stone_slab"
      },
      "2": {
        "block": "appliedenergistics2:energy_cell"
      },
      "3": {
        "block": "masterfulmachinery:memachine_metank_port_fluids_input"
      },
      "4": {
        "block": "masterfulmachinery:memachine_mebank_port_energy_input"
      },
      ")": {
        "block": "appliedenergistics2:smooth_sky_stone_block"
      },
      "*": {
        "block": "masterfulmachinery:memachine_meitem_port_items_input"
      },
      "+": {
        "block": "kubejs:mb"
      },
      ",": {
        "block": "masterfulmachinery:memachine_meitem_port_items_output"
      },
      "-": {
        "block": "appliedenergistics2:molecular_assembler"
      },
      ".": {
        "block": "appliedenergistics2:64k_crafting_storage"
      },
      "/": {
        "block": "appliedenergistics2:crafting_accelerator"
      }
    }
  })
})

onEvent('recipes', e => {

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 200,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 10000
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'tconstruct:molten_quartz',
          "amount": 9216
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'appliedenergistics2:quartz_glass',
          "count": 128
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'thermal:iron_plate',
          "count": 64
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'appliedenergistics2:quartz_fiber',
          "count": 128,

        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 200,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 10000
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'tconstruct:molten_osmium',
          "amount": 10000
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'kubejs:eliteframe',
          "count": 6
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'mekanism:block_steel',
          "count": 8
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'mekanism:steel_casing',
          "count": 4,

        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 200,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 10000
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'tconstruct:molten_refined_glowstone',
          "amount": 10000
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'draconicevolution:awakened_draconium_ingot',
          "count": 16
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'bloodmagic:ingot_hellforged',
          "count": 8
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'draconicevolution:wyvern_core',
          "count": 8
        }

      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'draconicevolution:awakened_core',
          "count": 4,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 150,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 10000
        }
      },

      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'kubejs:advancedframe',
          "count": 2
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'mekanism:block_steel',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'appliedenergistics2:annihilation_core',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'appliedenergistics2:formation_core',
          "count": 1
        }
      },

    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'kubejs:sc',
          "count": 1,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 80,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 5000
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'pneumaticcraft:lubricant',
          "amount": 100
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'appliedenergistics2:purified_certus_quartz_crystal',
          "count": 10
        }
      },

    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'appliedenergistics2:printed_calculation_processor',
          "count": 5,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 80,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 5000
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'pneumaticcraft:lubricant',
          "amount": 100
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:gold_ingot',
          "count": 10
        }
      },

    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'appliedenergistics2:printed_logic_processor',
          "count": 5,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 80,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 5000
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'pneumaticcraft:lubricant',
          "amount": 100
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:diamond',
          "count": 10
        }
      },

    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'appliedenergistics2:printed_engineering_processor',
          "count": 5,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 80,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 5000
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'pneumaticcraft:lubricant',
          "amount": 100
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'appliedenergistics2:silicon',
          "count": 10
        }
      },

    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'appliedenergistics2:printed_silicon',
          "count": 5,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 150,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 10000
        }
      },

      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'kubejs:basicframe',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'pneumaticcraft:capacitor',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'pneumaticcraft:transistor',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'immersiveengineering:plate_steel',
          "count": 4
        }
      },

    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'immersiveengineering:heavy_engineering',
          "count": 2,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 150,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 10000
        }
      },

      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'kubejs:basicframe',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'pneumaticcraft:capacitor',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'immersiveengineering:component_steel',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'immersiveengineering:plate_steel',
          "count": 4
        }
      },

    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'immersiveengineering:light_engineering',
          "count": 2,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 75,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 10000
        }
      },

      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'appliedenergistics2:1k_cell_component',
          "count": 3
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'mekanism:ingot_steel',
          "count": 4
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:quartz_block',
          "count": 2
        }
      },


    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'appliedenergistics2:4k_cell_component',
          "count": 1,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 75,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 10000
        }
      },

      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'appliedenergistics2:4k_cell_component',
          "count": 3
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'mekanism:ingot_steel',
          "count": 4
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:quartz_block',
          "count": 2
        }
      },


    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'appliedenergistics2:16k_cell_component',
          "count": 1,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 75,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 10000
        }
      },

      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'appliedenergistics2:64k_cell_component',
          "count": 3
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'mekanism:ingot_steel',
          "count": 4
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:quartz_block',
          "count": 2
        }
      },


    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'ae2extras:256k_cell_component',
          "count": 1,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 75,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 10000
        }
      },

      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'ae2extras:256k_cell_component',
          "count": 3
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'mekanism:ingot_steel',
          "count": 4
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:quartz_block',
          "count": 2
        }
      },

    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'ae2extras:1m_cell_component',
          "count": 1,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 75,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 10000
        }
      },

      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'ae2extras:1m_cell_component',
          "count": 3
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'mekanism:ingot_steel',
          "count": 4
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:quartz_block',
          "count": 2
        }
      },


    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'ae2extras:4m_cell_component',
          "count": 1,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 75,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 10000
        }
      },

      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'ae2extras:4m_cell_component',
          "count": 3
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'mekanism:ingot_steel',
          "count": 4
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:quartz_block',
          "count": 2
        }
      },


    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'ae2extras:16m_cell_component',
          "count": 1,

        }
      }
    ]
  })
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "meassembler",
    "controllerId": "memachine",
    "ticks": 75,
    "inputs": [
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 10000
        }
      },

      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'appliedenergistics2:16k_cell_component',
          "count": 3
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'mekanism:ingot_steel',
          "count": 4
        }
      },
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:quartz_block',
          "count": 2
        }
      },


    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'appliedenergistics2:64k_cell_component',
          "count": 1,

        }
      }
    ]
  })

})