onEvent("recipes", (event) => {

  //Pity Machine Frame
event.remove({ output: 'industrialforegoing:machine_frame_pity' })
event.custom(
  {
  "type": "naturesaura:tree_ritual",
  "ingredients": [
      {
          "item": 'hexerei:mahogany_log'
      },
      {
          "item": 'naturesaura:tainted_gold'
      },
      {
          "item": 'create:brass_casing'
      },
      {
          "item": 'thermal:machine_frame'
      },
      {
          "item": 'create:brass_casing'
      },
      {
          "item": 'hexerei:mahogany_log'
      },
      {
          "item": 'compactmachines:machine_tiny'
      },
      {
          "item": 'naturesaura:token_rage'
      }
  ],
  "sapling": {
      "item": 'naturesaura:ancient_sapling'
  },
  "output": {
      "item": 'industrialforegoing:machine_frame_pity',
      "count": 1
  },
  "time": 266
}
)

//Dissolution Chamber
event.remove({ output: 'industrialforegoing:dissolution_chamber' })
event.shaped('industrialforegoing:dissolution_chamber', [
'LAL',
'GSG',
'CBC'
], {
  L: Item.of('naturesaura:aura_bottle', '{stored_type:"naturesaura:other"}'),
  G: 'naturesaura:sky_ingot',
  S: 'industrialforegoing:machine_frame_pity',
  A: 'dustrial_decor:blue_neon_light',
  B: 'create:shadow_steel_casing',
  C: 'immersiveengineering:steel_scaffolding_standard'
})

//Latex Processing Unit
event.remove({ output: 'industrialforegoing:latex_processing_unit' })
event.custom(
{
  "input": [
    {
      "item": 'thermal:device_water_gen'
    },
    {
      "item": 'industrialforegoing:machine_frame_pity'
    },
    {
      "item": 'thermal:device_rock_gen'
    },
    {
      "item": 'thermal:redstone_servo'
    },
    {
      "item": 'thermal:redstone_servo'
    },
    {
      "item": 'thermal:device_collector'
    },
    {
      "item": 'thermal:rf_coil'
    },
    {
      "item": 'thermal:device_nullifier'
    }
  ],
  "inputFluid": "{FluidName:\"industrialforegoing:latex\",Amount:1000}",
  "processingTime": 620,
  "output": {
    "item": 'industrialforegoing:latex_processing_unit',
    "count": 1
  },
  "type": "industrialforegoing:dissolution_chamber"
})

//Fluid Extractor
event.remove({ output: 'industrialforegoing:fluid_extractor' })
event.custom(
{
  "input": [
    {
      "item": "naturesaura:gold_brick"
    },
    {
      "item": "industrialforegoing:machine_frame_pity"
    },
    {
      "item": "naturesaura:gold_brick"
    },
    {
      "tag": "forge:ingots/steel"
    },
    {
      "tag": "forge:ingots/steel"
    },
    {
      "tag": "forge:ingots/steel"
    },
    {
      "item": 'thermal:device_tree_extractor'
    },
    {
      "tag": "forge:ingots/steel"
    }
  ],
  "inputFluid": "{FluidName:\"kubejs:liquid_aura\",Amount:1000}",
  "processingTime": 600,
  "output": {
    "item": "industrialforegoing:fluid_extractor",
    "count": 1
  },
  "type": "industrialforegoing:dissolution_chamber"
})

//Mob Slaughter Factory
event.remove({ output: 'industrialforegoing:mob_slaughter_factory' })
event.custom(
{
  "input": [
    {
      "item": 'emendatusenigmatica:constantan_gear'
    },
    {
      "item": 'minecraft:netherite_sword'
    },
    {
      "item": 'naturesaura:tainted_gold'
    },
    {
      "item": 'industrialforegoing:plastic'
    },
    {
      "item": 'industrialforegoing:plastic'
    },
    {
      "item": 'naturesaura:tainted_gold'
    },
    {
      "item": 'industrialforegoing:machine_frame_simple'
    },
    {
      "item": 'emendatusenigmatica:constantan_gear'
    }
  ],
  "inputFluid": "{FluidName:\"industrialforegoing:latex\",Amount:1000}",
  "processingTime": 665,
  "output": {
    "item": 'industrialforegoing:mob_slaughter_factory',
    "count": 1
  },
  "type": "industrialforegoing:dissolution_chamber"
})

//Pity Machine Frame from dissolution chamber
event.custom(
{
  "input": [
    {
      "item": 'naturesaura:ancient_sapling'
    },
    {
      "item": 'compactmachines:machine_tiny'
    },
    {
      "item": 'naturesaura:tainted_gold'
    },
    {
      "item": 'create:brass_casing'
    },
    {
      "item": 'create:brass_casing'
    },
    {
      "item": 'hexerei:mahogany_log'
    },
    {
      "item": 'thermal:machine_frame'
    },
    {
      "item": 'hexerei:mahogany_log'
    }
  ],
  "inputFluid": "{FluidName:\"minecraft:water\",Amount:4000}",
  "processingTime": 600,
  "output": {
    "item": 'industrialforegoing:machine_frame_pity',
    "count": 1
  },
  "type": "industrialforegoing:dissolution_chamber"
})
})
