onEvent('recipes', e => {
  e.custom({
    "type": "masterfulmachinery:machine_structure",
    "id": "advcokeoven",
    "controllerId": "advancedmachine",
    "name": "Advanced Coke Oven",
    "layout": [
      [
        ")))))",
        ")***+",
        ",***)",
        ")***-",
        ")...)"
      ],
      [
        "/////",
        "/***0",
        "0***/",
        "/***0",
        "/.C./"
      ],
      [
        "     ",
        " ***0",
        "0*** ",
        " ***0",
        " ... "
      ],
      [
        "     ",
        " ***0",
        " *** ",
        " ***0",
        " /// "
      ],
      [
        "     ",
        " /// ",
        " /1/ ",
        " /// ",
        "     "
      ]
    ],
    "legend": {
      "0": {
        "block": "immersiveengineering:steel_fence"
      },
      "1": {
        "block": "masterfulmachinery:advancedmachine_advbank_port_energy_input"
      },
      ")": {
        "block": "immersiveengineering:heavy_engineering"
      },
      "*": {
        "block": "kubejs:rcb"
      },
      "+": {
        "block": "masterfulmachinery:advancedmachine_advtank_port_fluids_output"
      },
      ",": {
        "block": "masterfulmachinery:advancedmachine_advitem_port_items_input"
      },
      "-": {
        "block": "masterfulmachinery:advancedmachine_advitem_port_items_output"
      },
      ".": {
        "block": "immersiveengineering:radiator"
      },
      "/": {
        "block": "immersiveengineering:slab_sheetmetal_steel"
      }
    }
  })
})

onEvent('recipes', e => {
  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "advcokeoven",
    "controllerId": "advancedmachine",
    "ticks": 15,
    "inputs": [{
      "type": "masterfulmachinery:items",
      "consumeInstantly": true,
      "data": {
        "item": 'minecraft:coal',
        "count": 1
      }
    }, {
      "type": "masterfulmachinery:energy",
      "perTick": false,
      "data": {
        "amount": 1500,
      }
    }],
    "outputs": [{
      "type": "masterfulmachinery:items",
      "data": {
        "item": 'immersiveengineering:coal_coke',
        "count": 1
      }
    }, {
      "type": "masterfulmachinery:fluids",
      "data": {
        "fluid": 'immersiveengineering:creosote',
        "amount": 500
      }
    }]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "advcokeoven",
    "controllerId": "advancedmachine",
    "ticks": 60,
    "inputs": [{
      "type": "masterfulmachinery:items",
      "consumeInstantly": true,
      "data": {
        "item": 'minecraft:coal_block',
        "count": 1
      }
    }, {
      "type": "masterfulmachinery:energy",
      "perTick": false,
      "data": {
        "amount": 5000,
      }
    }],
    "outputs": [{
      "type": "masterfulmachinery:items",
      "data": {
        "item": 'immersiveengineering:coke',
        "count": 1
      }
    }, {
      "type": "masterfulmachinery:fluids",
      "data": {
        "consumeInstantly": true,
        "fluid": 'immersiveengineering:creosote',
        "amount": 5000
      }
    }]
  })
})