// priority: 1

onEvent('recipes', event => {
    event.custom({
        "type": "advgenerators:liquid_fuel",
        "fuel": {
            "fluid": "immersiveengineering:biodiesel"
        },
        "fePerMb": 750
    })
    event.custom({
        "type": "advgenerators:liquid_fuel",
        "fuel": {
            "fluid": "immersivepetroleum:diesel"
        },
        "fePerMb": 1000
    })
    event.custom({
        "type": "advgenerators:liquid_fuel",
        "fuel": {
            "fluid": "immersivepetroleum:gasoline"
        },
        "fePerMb": 900
    })
    event.custom({
        "type": "advgenerators:liquid_fuel",
        "fuel": {
            "fluid": "pneumaticcraft:lpg"
        },
        "fePerMb": 1500
    })
    event.custom({
        "type": "advgenerators:liquid_fuel",
        "fuel": {
            "fluid": "kubejs:nitro_diesel"
        },
        "fePerMb": 1250
    })
    event.custom({
        "type": "advgenerators:liquid_fuel",
        "fuel": {
            "fluid": "immersiveengineering:creosote"
        },
        "fePerMb": 250
    })
    event.custom({
        "type": "advgenerators:liquid_fuel",
        "fuel": {
            "fluid": "thermal:creosote"
        },
        "fePerMb": 250
    })
    event.custom({
        "type": "advgenerators:liquid_fuel",
        "fuel": {
            "fluid": "kubejs:natural_gas"
        },
        "fePerMb": 500
    })

      event.custom({
        "type": "masterfulmachinery:machine_structure",
        "id": "advanced_turbine",
        "controllerId": "basic",
        "name": "Advanced Gas Turbine",
        "layout": [
          [
            " )*) ",
            "))+))",
            ",+-+C",
            "))+))",
            " )*) "
          ],
          [
            " ... ",
            ".   .",
            ". / .",
            ".   .",
            " ... "
          ],
          [
            " ... ",
            ".   .",
            ". 0 .",
            ".   .",
            " ... "
          ],
          [
            " ... ",
            ".   .",
            ". / .",
            ".   .",
            " ... "
          ],
          [
            " ... ",
            ".   .",
            ". 0 .",
            ".   .",
            " ... "
          ],
          [
            " ... ",
            ".   .",
            ". 1 .",
            ".   .",
            " ... "
          ],
          [
            " ... ",
            ".   .",
            ". 0 .",
            ".   .",
            " ... "
          ],
          [
            " ... ",
            ".   .",
            ". 1 .",
            ".   .",
            " ... "
          ],
          [
            " ))) ",
            "))+))",
            ")+++)",
            "))+))",
            " ))) "
          ]
        ],
        "legend": {
          "0": {
            "block": "create:shaft"
          },
          "1": {
            "block": "create:large_cogwheel"
          },
          ")": {
            "block": "immersiveengineering:sheetmetal_aluminum"
          },
          "*": {
            "block": "masterfulmachinery:basic_fluid_port_fluids_input"
          },
          "+": {
            "block": "kubejs:hsla_steel_block"
          },
          ",": {
            "block": "masterfulmachinery:basic_energy_port_energy_output"
          },
          "-": {
            "block": "masterfulmachinery:basic_item_port_items_input"
          },
          ".": {
            "block": "appliedenergistics2:quartz_vibrant_glass"
          },
          "/": {
            "block": "create:cogwheel"
          }
        }
      })
    
      event.custom({
        "type": "masterfulmachinery:machine_process",
        "structureId": "advanced_turbine",
        "controllerId": "basic",
        "ticks": 20,
        "inputs": [
          {"type": "masterfulmachinery:items", "chance": 0, "data": {"item": "advgenerators:turbine_rotor_tier4", "count": 1}},
          {"type": "masterfulmachinery:fluids", "data": {"fluid": "kubejs:nitro_diesel", "amount": 2000}}
        ],
        "outputs":[
            {"type": "masterfulmachinery:energy", "consumePerTick": true, "data": {"amount": 400000}}
        ]
      })
      event.custom({
        "type": "masterfulmachinery:machine_process",
        "structureId": "advanced_turbine",
        "controllerId": "basic",
        "ticks": 20,
        "inputs": [
          {"type": "masterfulmachinery:items", "chance": 0, "data": {"item": "advgenerators:turbine_rotor_tier4", "count": 1}},
          {"type": "masterfulmachinery:fluids", "data": {"fluid": "pneumaticcraft:lpg", "amount": 1500}}
        ],
        "outputs":[
          {"type": "masterfulmachinery:energy", "consumePerTick": true, "data": {"amount": 400000}}
        ]
      })
      event.custom({
        "type": "masterfulmachinery:machine_process",
        "structureId": "advanced_turbine",
        "controllerId": "basic",
        "ticks": 20,
        "inputs": [
          {"type": "masterfulmachinery:items", "chance": 0, "data": {"item": "advgenerators:turbine_rotor_tier4", "count": 1}},
          {"type": "masterfulmachinery:fluids", "data": {"fluid": "kubejs:high_efficiency_combustion_fuel", "amount": 500}}
        ],
        "outputs":[
          {"type": "masterfulmachinery:energy", "consumePerTick": true, "data": {"amount": 500000}}
        ]
      })
      event.custom({
        "type": "masterfulmachinery:machine_process",
        "structureId": "advanced_turbine",
        "controllerId": "basic",
        "ticks": 20,
        "inputs": [
          {"type": "masterfulmachinery:items", "chance": 0, "data": {"item": "advgenerators:turbine_rotor_tier5", "count": 1}},
          {"type": "masterfulmachinery:fluids", "data": {"fluid": "kubejs:nitro_diesel", "amount": 2000}},
          {"type": "masterfulmachinery:fluids", "data": {"fluid": "kubejs:cryogenic_oxygen", "amount": 50}}
        ],
        "outputs":[
          {"type": "masterfulmachinery:energy", "consumePerTick": true, "data": {"amount": 600000}}
        ]
      })
      event.custom({
        "type": "masterfulmachinery:machine_process",
        "structureId": "advanced_turbine",
        "controllerId": "basic",
        "ticks": 20,
        "inputs": [
          {"type": "masterfulmachinery:items", "chance": 0, "data": {"item": "advgenerators:turbine_rotor_tier5", "count": 1}},
          {"type": "masterfulmachinery:fluids", "data": {"fluid": "pneumaticcraft:lpg", "amount": 1500}},
          {"type": "masterfulmachinery:fluids", "data": {"fluid": "kubejs:cryogenic_oxygen", "amount": 50}}
        ],
        "outputs":[
          {"type": "masterfulmachinery:energy", "consumePerTick": true, "data": {"amount": 600000}}
        ]
      })
      event.custom({
        "type": "masterfulmachinery:machine_process",
        "structureId": "advanced_turbine",
        "controllerId": "basic",
        "ticks": 20,
        "inputs": [
          {"type": "masterfulmachinery:items", "chance": 0, "data": {"item": "advgenerators:turbine_rotor_tier5", "count": 1}},
          {"type": "masterfulmachinery:fluids", "data": {"fluid": "kubejs:high_efficiency_combustion_fuel", "amount": 500}},
          {"type": "masterfulmachinery:fluids", "data": {"fluid": "kubejs:cryogenic_oxygen", "amount": 50}}
        ],
        "outputs":[
          {"type": "masterfulmachinery:energy", "consumePerTick": true, "data": {"amount": 750000}}
        ]
      })
})