onEvent('recipes', event => {

    //mix
    function mixing(input1, input2, output, heatRequirement){
        event.custom(
            {
                "type": "create:mixing",
                "ingredients": [
                  {
                    "item": input1
                  },
                  {
                    "item": input2
                  }
                ],
                "results": [
                  {
                    "item": output
                  }
                ],
                "heatRequirement": heatRequirement
              }
        )
    }
    mixing('tconstruct:earth_slime_crystal', 'mekanism:ingot_lead', 'tconstruct:sky_slime_crystal', "heated")
    mixing('tconstruct:sky_slime_crystal', 'minecraft:lapis_lazuli', 'tconstruct:ender_slime_crystal', "heated")
    mixing('tconstruct:ichor_slime_crystal', 'minecraft:stone_bricks', 'immersiveengineering:slab_cokebrick', "superheated")
    mixing('create:blaze_cake_base', 'tconstruct:magma_cake', 'create:blaze_cake', "heated")
    mixing('immersiveengineering:mold_unpacking', 'appliedenergistics2:fluix_crystal', 'appliedenergistics2:calculation_processor_press', "superheated")
    mixing('immersiveengineering:mold_packing_9', 'appliedenergistics2:fluix_crystal', 'appliedenergistics2:engineering_processor_press', "superheated")
    mixing('immersiveengineering:mold_packing_4', 'appliedenergistics2:fluix_crystal', 'appliedenergistics2:logic_processor_press', "superheated")
    mixing('immersiveengineering:mold_gear', 'appliedenergistics2:fluix_crystal', 'appliedenergistics2:silicon_press', "superheated")
    mixing('minecraft:cooked_beef', 'minecraft:dried_kelp', 'minecraft:rotten_flesh', "heated")

    //pressing
    function press(input, output){
       event.custom(
           {
                "type": "create:pressing",
                "ingredients": [
                  {
                    "item": input
                  }
                ],
                "results": [
                  {
                    "item": output
                  }
                ]
              }
        )
    }
    press('minecraft:iron_block', 'create:basin')
    press('minecraft:magma_block', 'tconstruct:magma_cake')
    press('minecraft:leather', 'minecraft:rabbit_hide')

    //crushing
    function crushing(input, output1, output2, chanceoutput2){
      event.custom(
        {
          "type": "create:crushing",
          "ingredients": [
            {
              "item": input
            }
          ],
          "results": [
            {
              "item": output1
            },
            {
              "item": output2,
              "chance": chanceoutput2
            }
          ],
          "processingTime": 175
        }
      )
    }
    crushing('exnihilosequentia:mesh_iron', 'excompressum:iron_mesh', 'excompressum:iron_mesh', 0.3)

    //sequenced
    function sequenced(input1, input2, output, loops){
      event.custom(
          {
              "type": "create:sequenced_assembly",
              "ingredient": {
                "item": input1
              },
              "transitionalItem": {
                "item": 'minecraft:bedrock'
              },
              "sequence": [
                {
                  "type": "create:deploying",
                  "ingredients": [
                    {
                      "item": 'minecraft:bedrock'
                    },
                    {
                      "item": input2
                    }
                  ],
                  "results": [
                    {
                      "item": 'minecraft:bedrock'
                    }
                  ]
                }
              ],
              "results": [
                {
                  "item": output
                }
              ],
              "loops": loops
            }
      )
    }
    sequenced('minecraft:bone', 'minecraft:coal_block', 'tconstruct:necrotic_bone', 100)
    sequenced('immersiveengineering:blastbrick', 'immersiveengineering:plate_steel', 'immersiveengineering:blastbrick_reinforced', 35)

    //mesequenced
    function mesequenced(input1, input2, input3, input4, input5, output, loops){
      event.custom(
              {
                  "type": "create:sequenced_assembly",
                  "ingredient": {
                    "tag": input1
                  },
                  "transitionalItem": {
                    "item": 'kubejs:nothing_seed'
                  },
                  "sequence": [
                    {
                      "type": "create:deploying",
                      "ingredients": [
                        {
                          "item": 'minecraft:bedrock'
                        },
                        {
                          "item": input2
                        }
                      ],
                      "results": [
                        {
                          "item": 'minecraft:bedrock'
                        }
                      ]
                    },
                    {
                      "type": "create:deploying",
                      "ingredients": [
                        {
                          "item": 'minecraft:bedrock'
                        },
                        {
                          "item": input3
                        }
                      ],
                      "results": [
                        {
                          "item": 'minecraft:bedrock'
                        }
                      ]
                    },
                    {
                      "type": "create:deploying",
                      "ingredients": [
                        {
                          "item": 'minecraft:bedrock'
                        },
                        {
                          "tag": input4
                        }
                      ],
                      "results": [
                        {
                          "item": 'minecraft:bedrock'
                        }
                      ]
                    },
                    {
                      "type": "create:deploying",
                      "ingredients": [
                        {
                          "item": 'minecraft:bedrock'
                        },
                        {
                          "item": input5
                        }
                      ],
                      "results": [
                        {
                          "item": 'minecraft:bedrock'
                        }
                      ]
                    }
                  ],
                  "results": [
                    {
                      "item": output
                    }
                  ],
                  "loops": loops
                }
          
        
      )
    }
    mesequenced('forge:stone', 'create:precision_mechanism', 'create:large_cogwheel', 'forge:chests', 'minecraft:redstone_block', 'appliedenergistics2:controller', 15)
  })