onEvent('recipes', e => {
  e.custom({
    "type": "masterfulmachinery:machine_structure",
    "id": "treefarm",
    "controllerId": "basicmachine",
    "name": "Tree Farm",
    "layout": [
      [
        ")))))",
        ")))))",
        ")))))",
        ")))))",
        ")))))"
      ],
      [
        "))*))",
        "+,,,-",
        "),.,)",
        "+,,,-",
        "))C))"
      ],
      [
        "/////",
        "/   /",
        "/ 0 /",
        "/   /",
        "/////"
      ],
      [
        "/////",
        "/ 1 /",
        "/101/",
        "/ 1 /",
        "/////"
      ],
      [
        "/////",
        "/   /",
        "/ 1 /",
        "/   /",
        "/////"
      ],
      [
        "/////",
        "/////",
        "/////",
        "/////",
        "/////"
      ]
    ],
    "legend": {
      "0": {
        "block": "minecraft:oak_log"
      },
      "1": {
        "block": "minecraft:oak_leaves"
      },
      ")": {
        "block": "minecraft:bricks"
      },
      "*": {
        "block": "masterfulmachinery:basicmachine_basictank_port_fluids_input"
      },
      "+": {
        "block": "masterfulmachinery:basicmachine_basicitem_port_items_input"
      },
      ",": {
        "block": "minecraft:brick_slab"
      },
      "-": {
        "block": "masterfulmachinery:basicmachine_basicitem_port_items_output"
      },
      ".": {
        "block": "minecraft:dirt"
      },
      "/": {
        "block": "minecraft:glass"
      }
    }
  })
})

onEvent('recipes', e => {

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "treefarm",
    "controllerId": "basicmachine",
    "ticks": 1200,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:oak_sapling',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'minecraft:water',
          "amount": 100
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'minecraft:oak_log',
          "count": 3,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'minecraft:oak_log',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'minecraft:oak_log',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.25,
        "data": {
          "item": 'minecraft:oak_log',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.90,
        "data": {
          "item": 'minecraft:oak_sapling',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.5,
        "data": {
          "item": 'minecraft:oak_sapling',
          "count": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "treefarm",
    "controllerId": "basicmachine",
    "ticks": 1200,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:spruce_sapling',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'minecraft:water',
          "amount": 100
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'minecraft:spruce_log',
          "count": 3,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'minecraft:spruce_log',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'minecraft:spruce_log',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.25,
        "data": {
          "item": 'minecraft:spruce_log',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.90,
        "data": {
          "item": 'minecraft:spruce_sapling',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.5,
        "data": {
          "item": 'minecraft:spruce_sapling',
          "count": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "treefarm",
    "controllerId": "basicmachine",
    "ticks": 1200,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:birch_sapling',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'minecraft:water',
          "amount": 100
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'minecraft:birch_log',
          "count": 3,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'minecraft:birch_log',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'minecraft:birch_log',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.25,
        "data": {
          "item": 'minecraft:birch_log',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.90,
        "data": {
          "item": 'minecraft:birch_sapling',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.5,
        "data": {
          "item": 'minecraft:birch_sapling',
          "count": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "treefarm",
    "controllerId": "basicmachine",
    "ticks": 1200,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:jungle_sapling',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'minecraft:water',
          "amount": 100
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'minecraft:jungle_log',
          "count": 3,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'minecraft:jungle_log',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'minecraft:jungle_log',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.25,
        "data": {
          "item": 'minecraft:jungle_log',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.90,
        "data": {
          "item": 'minecraft:jungle_sapling',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.5,
        "data": {
          "item": 'minecraft:jungle_sapling',
          "count": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "treefarm",
    "controllerId": "basicmachine",
    "ticks": 1200,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:acacia_sapling',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'minecraft:water',
          "amount": 100
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'minecraft:acacia_log',
          "count": 3,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'minecraft:acacia_log',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'minecraft:acacia_log',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.25,
        "data": {
          "item": 'minecraft:acacia_log',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.90,
        "data": {
          "item": 'minecraft:acacia_sapling',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.5,
        "data": {
          "item": 'minecraft:acacia_sapling',
          "count": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "treefarm",
    "controllerId": "basicmachine",
    "ticks": 1200,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'minecraft:dark_oak_sapling',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'minecraft:water',
          "amount": 100
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'minecraft:dark_oak_log',
          "count": 3,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'minecraft:dark_oak_log',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'minecraft:dark_oak_log',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.25,
        "data": {
          "item": 'minecraft:dark_oak_log',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.90,
        "data": {
          "item": 'minecraft:dark_oak_sapling',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.5,
        "data": {
          "item": 'minecraft:dark_oak_sapling',
          "count": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "treefarm",
    "controllerId": "basicmachine",
    "ticks": 1000,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'tconstruct:earth_slime_sapling',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'minecraft:water',
          "amount": 100
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'tconstruct:earth_congealed_slime',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'tconstruct:earth_congealed_slime',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.25,
        "data": {
          "item": 'tconstruct:earth_congealed_slime',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.90,
        "data": {
          "item": 'tconstruct:earth_slime_sapling',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.5,
        "data": {
          "item": 'tconstruct:earth_slime_sapling',
          "count": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "treefarm",
    "controllerId": "basicmachine",
    "ticks": 1200,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'tconstruct:sky_slime_sapling',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'minecraft:water',
          "amount": 100
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'tconstruct:sky_congealed_slime',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'tconstruct:sky_congealed_slime',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.25,
        "data": {
          "item": 'tconstruct:sky_congealed_slime',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.90,
        "data": {
          "item": 'tconstruct:sky_slime_sapling',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.5,
        "data": {
          "item": 'tconstruct:sky_slime_sapling',
          "count": 1,
        }
      }
    ]
  })

  e.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": "treefarm",
    "controllerId": "basicmachine",
    "ticks": 1200,
    "inputs": [
      {
        "type": "masterfulmachinery:items",
        "consumeInstantly": true,
        "data": {
          "item": 'tconstruct:ender_slime_sapling',
          "count": 1
        }
      },
      {
        "type": "masterfulmachinery:fluids",
        "consumeInstantly": true,
        "data": {
          "fluid": 'minecraft:water',
          "amount": 100
        }
      }
    ],
    "outputs": [
      {
        "type": "masterfulmachinery:items",
        "data": {
          "item": 'tconstruct:ender_congealed_slime',
          "count": 2,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.35,
        "data": {
          "item": 'tconstruct:ender_congealed_slime',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.25,
        "data": {
          "item": 'tconstruct:ender_congealed_slime',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.90,
        "data": {
          "item": 'tconstruct:ender_slime_sapling',
          "count": 1,
        }
      },
      {
        "type": "masterfulmachinery:items",
        "chance": 0.5,
        "data": {
          "item": 'tconstruct:ender_slime_sapling',
          "count": 1,
        }
      }
    ]
  })



})