onEvent('recipes', e => {
  e.custom({
    "type": "masterfulmachinery:machine_structure",
    "id": "manainfuser",
    "controllerId": "elvenmachine",
    "name": "Elven Mana Infuser",
    "layout": [
      [
        ")*)",
        "++,",
        ")-)"
      ],
      [
        "5+5",
        "C++",
        "5+5"
      ],
      [
        "   ",
        " / ",
        "   "
      ],
      [
        "   ",
        " 0 ",
        "   "
      ]
    ],
    "legend": {
      "0": {
        "block": "botania:corporea_index"
      },
      ")": {
        "block": "botania:corporea_block"
      },
      "*": {
        "block": "masterfulmachinery:elvenmachine_elvenitem_port_items_input"
      },
      "+": {
        "block": "botania:glimmering_dreamwood"
      },
      ",": {
        "block": "masterfulmachinery:elvenmachine_elvenabsorber_port_botania_mana_input"
      },
      "-": {
        "block": "masterfulmachinery:elvenmachine_elvenitem_port_items_output"
      },
      "5": {
        "block": "botania:natura_pylon"
      },
      "/": {
        "block": "botania:starfield"
      }
    }
  })
})

onEvent('recipes', e => {
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "manainfuser",
    "controllerId": "elvenmachine",
    "ticks": 200,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'pneumaticcraft:compressed_iron_block',
          "count": 8
        }
      },
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'pneumaticcraft:printed_circuit_board',
          "count": 4
        }
      },
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'pneumaticcraft:assembly_controller',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:botania_mana",
        "data":
        {
          "amount": 40000
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'masterfulmachinery:simplemachine_controller',
          "count": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "manainfuser",
    "controllerId": "elvenmachine",
    "ticks": 400,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'immersiveengineering:heavy_engineering',
          "count": 6
        }
      },
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'immersiveengineering:light_engineering',
          "count": 3
        }
      },
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'immersiveengineering:radiator',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'immersiveengineering:rs_engineering',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:botania_mana",
        "data":
        {
          "amount": 75000
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'masterfulmachinery:advancedmachine_controller',
          "count": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "manainfuser",
    "controllerId": "elvenmachine",
    "ticks": 400,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'kubejs:tme',
          "count": 6
        }
      },
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'immersiveengineering:rs_engineering',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'immersiveengineering:radiator',
          "count": 2
        }
      },
      {
        "type": "masterfulmachinery:botania_mana",
        "data":
        {
          "amount": 100000
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'masterfulmachinery:thermalmachine_controller',
          "count": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "manainfuser",
    "controllerId": "elvenmachine",
    "ticks": 400,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'kubejs:rtme',
          "count": 8
        }
      },
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'thermal:enderium_gear',
          "count": 8
        }
      },
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'thermal:upgrade_augment_3',
          "count": 2
        }
      },
      {
        "type": "masterfulmachinery:botania_mana",
        "data":
        {
          "amount": 100000
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'masterfulmachinery:rthermalmachine_controller',
          "count": 1,
        }
      }
    ]
  })
})