settings.logAddedRecipes = true
settings.logRemovedRecipes = true
settings.logSkippedRecipes = false
settings.logErroringRecipes = true

onEvent('recipes', event => {
//Removing
event.remove({output: 'immersiveengineering:dust_hop_graphite'})
event.remove({output: 'extendedcrafting:ender_component'})
event.remove({output: 'extendedcrafting:enhanced_ender_component'})

//Creation
event.shaped('kubejs:plutonium_ingot', [
    'AAA',
    'AAA',
    'AAA'
  ], {
    A: 'kubejs:pu239pellet'
  })

event.shaped(Item.of('custommachinery:custom_machine_item', {machine:"skymachines:centrifuge"}), [
    'PSP',
    'JMJ',
    'PBP'
 ], {
    M: 'industrialforegoing:machine_frame_simple',
    P: 'industrialforegoing:plastic',
    J: 'supplementaries:jar',
    S: 'minecraft:sticky_piston',
    B: 'titanium:iron_gear'
})

event.shaped(Item.of('custommachinery:custom_machine_item', {machine:"skymachines:uranium_furnace"}), [
    'PSP',
    'JMJ',
    'PBP'
 ], {
    M: 'minecraft:furnace',
    P: 'immersiveengineering:sheetmetal_lead',
    J: 'immersiveengineering:ingot_hop_graphite',
    S: 'powah:battery_basic',
    B: 'mekanism:block_charcoal'
})

event.shaped(Item.of('custommachinery:custom_machine_item', {machine:"skymachines:alloy_smelter"}), [
    'SPS',
    'JMJ',
    'SBS'
 ], {
    M: 'tconstruct:smeltery_controller',
    P: 'mekanism:basic_fluid_tank',
    J: 'industrialforegoing:machine_frame_simple',
    S: '#forge:ingots/steel',
    B: 'kubejs:plutonium_ingot'
})

//Speed Upgrade
event.custom(
  {
      "input": [
          {
              "item": "extendedcrafting:ender_ingot"
          },
          {
              "item": "enderioalloys:item_alloy_nugget_redstone_alloy"
          },
          {
              "item": "extendedcrafting:ender_ingot"
          },
          {
              "item": "enderioalloys:item_alloy_nugget_redstone_alloy"
          },
          {
              "item": "enderioalloys:item_alloy_nugget_redstone_alloy"
          },
          {
              "item": "enderioalloys:item_alloy_ingot_dark_steel"
          },
          {
              "item": "enderioalloys:item_alloy_ingot_dark_steel"
          },
          {
              "item": "enderioalloys:item_alloy_ingot_dark_steel"
          }
      ],
      "inputFluid": "{FluidName:\"industrialforegoing:latex\",Amount:1000}",
      "processingTime": 120,
      "output": {
          "item": "extendedcrafting:ender_component",
          "count": 1
      },
      "type": "industrialforegoing:dissolution_chamber"
  }
)

//Advanced Speed Upgrade
event.custom(
  {
      "input": [
          {
              "item": "enderioalloys:item_alloy_ingot_vibrant_alloy"
          },
          {
              "item": "extendedcrafting:ender_component"
          },
          {
              "item": "enderioalloys:item_alloy_ingot_vibrant_alloy"
          },
          {
              "item": "extendedcrafting:ender_component"
          },
          {
              "item": "extendedcrafting:ender_component"
          },
          {
              "item": "kubejs:pyro_electrum_ingot"
          },
          {
              "item": "kubejs:pyro_electrum_ingot"
          },
          {
              "item": "kubejs:pyro_electrum_ingot"
          }
      ],
      "inputFluid": "{FluidName:\"industrialforegoing:latex\",Amount:1000}",
      "processingTime": 120,
      "output": {
          "item": "extendedcrafting:enhanced_ender_component",
          "count": 1
      },
      "type": "industrialforegoing:dissolution_chamber"
  }
)

})

events.listen('recipes', function (event) {
  event.replaceInput({type: 'minecraft:crafting_shaped'}, '#forge:plates/nickel', 'enderioalloys:item_alloy_ingot_redstone_alloy')
  event.replaceInput({type: 'minecraft:crafting_shapeless'}, '#forge:plates/nickel', 'enderioalloys:item_alloy_ingot_redstone_alloy')
  })

events.listen('item.tags', function (event) {
  event.get('forge:plates/nickel').add('extendedcrafting:redstone_ingot')
  event.get('forge:plates/nickel').add('extendedcrafting:redstone_ingot')
})

events.listen('fluid.tags', function (event) {
  event.get('kubejs:biomass').add('kubejs:biomass')   
})
