onEvent('recipes', e => {
  e.custom({
    "type": "masterfulmachinery:machine_structure",
    "id": "eae",
    "controllerId": "thermalmachine",
    "name": "Electric Arboreal Extractor",
    "layout": [
      [
        ")*)",
        ")))",
        ")))",
        ")))",
        ")))",
        ")+)"
      ],
      [
        "),)",
        "-.-",
        "/0/",
        "/0/",
        "-.-",
        ")C)"
      ],
      [
        "111",
        "/./",
        " 2 ",
        " 2 ",
        "/./",
        "111"
      ],
      [
        "   ",
        " 3 ",
        " 3 ",
        " 3 ",
        " 3 ",
        "   "
      ]
    ],
    "legend": {
      "0": {
        "block": "immersiveengineering:wooden_barrel"
      },
      "1": {
        "block": "immersiveengineering:slab_sheetmetal_steel"
      },
      "2": {
        "block": "immersiveengineering:fluid_pipe"
      },
      "3": {
        "block": "immersiveengineering:slab_steel_scaffolding_standard"
      },
      ")": {
        "block": "kubejs:tme"
      },
      "*": {
        "block": "masterfulmachinery:thermalmachine_thermalitem_port_items_input"
      },
      "+": {
        "block": "masterfulmachinery:thermalmachine_thermaltank_port_fluids_output"
      },
      ",": {
        "block": "masterfulmachinery:thermalmachine_thermalbank_port_energy_input"
      },
      "-": {
        "block": "immersiveengineering:treated_wood_horizontal"
      },
      ".": {
        "block": "thermal:device_tree_extractor"
      },
      "/": {
        "block": "immersiveengineering:slab_treated_wood_horizontal"
      }
    }
  })
})

onEvent('recipes', e => {

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "eae",
    "controllerId": "thermalmachine",
    "ticks": 500,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:oak_log',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 500,

        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:fluids",
        "chance": 0.18,
        "perTick": true,
        "data": {
          "fluid": 'thermal:resin',
          "amount": 1,
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "chance": 0.18,
        "perTick": true,
        "data": {
          "fluid": 'thermal:resin',
          "amount": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "eae",
    "controllerId": "thermalmachine",
    "ticks": 500,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:birch_log',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 500,

        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:fluids",
        "chance": 0.18,
        "perTick": true,
        "data": {
          "fluid": 'thermal:resin',
          "amount": 1,
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "chance": 0.18,
        "perTick": true,
        "data": {
          "fluid": 'thermal:resin',
          "amount": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "eae",
    "controllerId": "thermalmachine",
    "ticks": 500,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:acacia_log',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 500,

        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:fluids",
        "chance": 0.18,
        "perTick": true,
        "data": {
          "fluid": 'thermal:resin',
          "amount": 1,
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "chance": 0.18,
        "perTick": true,
        "data": {
          "fluid": 'thermal:resin',
          "amount": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "eae",
    "controllerId": "thermalmachine",
    "ticks": 500,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:spruce_log',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 500,

        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:fluids",
        "chance": 0.18,
        "perTick": true,
        "data": {
          "fluid": 'thermal:resin',
          "amount": 2,
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "chance": 0.18,
        "perTick": true,
        "data": {
          "fluid": 'thermal:resin',
          "amount": 2,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "eae",
    "controllerId": "thermalmachine",
    "ticks": 500,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:jungle_log',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 500,

        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:fluids",
        "chance": 0.18,
        "perTick": true,
        "data": {
          "fluid": 'thermal:latex',
          "amount": 2,
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "chance": 0.18,
        "perTick": true,
        "data": {
          "fluid": 'thermal:latex',
          "amount": 2,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "eae",
    "controllerId": "thermalmachine",
    "ticks": 500,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:dark_oak_log',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:energy",
        "perTick": true,
        "data": {
          "amount": 500,

        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:fluids",
        "chance": 0.18,
        "perTick": true,
        "data": {
          "fluid": 'thermal:sap',
          "amount": 1,
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "chance": 0.18,
        "perTick": true,
        "data": {
          "fluid": 'thermal:sap',
          "amount": 1,
        }
      }
    ]
  })

})