ServerEvents.recipes(event => {


      event.replaceInput(
        { input: 'minecraft:iron_ingot' }, // Arg 1: the filter
        'minecraft:iron_ingot',            // Arg 2: the item to replace
        'tfc:metal/ingot/wrought_iron'        // Arg 3: the item to replace it with
      )

      event.replaceInput(
        { input: 'minecraft:iron_bars' }, // Arg 1: the filter
        'minecraft:iron_bars',            // Arg 2: the item to replace
        'tfc:metal/bars/wrought_iron'        // Arg 3: the item to replace it with
      )




    //Minecraft
      
    event.shaped(
        Item.of('minecraft:stonecutter', 1), 
        [
        ' A ',
        'BBB'
        ],
        {
        A: 'immersiveengineering:sawblade',
        B: '#tfc:rock/hardened'
        }
    )    

    event.shaped(
        Item.of('minecraft:bucket', 1), 
        [
        'AHB',
        'CGD',
        ' F '
        ],
        {
        A: 'tfc:metal/ingot/blue_steel',
        B: 'tfc:metal/ingot/steel',
        C: 'tfc:metal/ingot/black_steel',
        D: 'tfc:metal/ingot/red_steel',
        F: 'firmalife:metal/ingot/stainless_steel',
        G: 'tfc:metal/bucket/red_steel',
        H: 'tfc:metal/bucket/blue_steel'
        }
    )
          
    event.shaped(
      Item.of('minecraft:end_rod', 1), 
      [
      'A',
      'B',
      'C'
      ],
      {
      A: 'minecraft:glowstone_dust',
      B: 'minecraft:blaze_rod',
      C: 'minecraft:popped_chorus_fruit'
      }
  )
          
  event.shaped(
    Item.of('minecraft:redstone_lamp', 1), 
    [
    'ABA',
    'BCB',
    'DED'
    ],
    {
    A: 'minecraft:glowstone_dust',
    B: 'minecraft:glass_pane',
    C: 'immersiveengineering:electric_lantern',
    D: 'minecraft:redstone',
    E: 'minecraft:redstone_block'
    }
)
          
event.shaped(
  Item.of('minecraft:respawn_anchor', 1), 
  [
  'AAA',
  'BCB',
  'AAA'
  ],
  {
  A: 'minecraft:crying_obsidian',
  B: 'minecraft:glowstone_dust',
  C: 'tfc:silk_cloth'
  }
)
          
event.shaped(
  Item.of('minecraft:anvil', 1), 
  [
  'AAA',
  ' B ',
  'BBB'
  ],
  {
  A: 'minecraft:iron_block',
  B: 'tfc:metal/double_ingot/cast_iron'
  }
)
          
event.shaped(
  Item.of('minecraft:conduit', 1), 
  [
  'AAA',
  'ABA',
  'AAA'
  ],
  {
  A: 'firmalife:hollow_shell',
  B: 'minecraft:heart_of_the_sea'
  }
)
          
event.shaped(
  Item.of('minecraft:emerald_block', 1), 
  [
  'AAA',
  'AAA',
  'AAA'
  ],
  {
  A: 'tfc:gem/emerald'
  }
)


    event.shapeless(
        Item.of('minecraft:map', 1), 
        [
          '#forge:leather',
          'minecraft:paper'
        ]
      )

      event.shapeless(
        Item.of('minecraft:trident', 1), // arg 1: output
        [
          'minecraft:trident',
          'progressivebosses:elder_guardian_spike'
        ]
      )

      
      event.shapeless(
        Item.of('tfc:gem/emerald', 9), // arg 1: output
        [
          'minecraft:emerald_block'
        ]
      )


      

      event.custom({
        "type": "create:mixing",
        "ingredients": [
          {
            "item": "tfc:powder/sulfur",
            "count": 4
          },
          {
            "item": "tfc:powder/native_gold",
            "count": 8
          },
          {
            "item": "tfcorewashing:chromium_powder",
            "count": 2
          },
          {
            "fluid": "tfmg:kerosene",
            "amount": 100
          }
        ],
        "results": [
          {
            "item": "minecraft:glowstone_dust",
            "count": 4
          }
        ],
        "heatRequirement": "heated"
      }
    )

    
    //Metal Press

    event.custom(
      {
          "type": "immersiveengineering:metal_press",
          "mold": "tfc_ie_addon:mold_block",
          "input": {
            "base_ingredient": {
              "tag": "forge:gems/diamond"
            },
            "count": 9
          },
          "result": {
            "item": "minecraft:diamond_block"
          },
          "energy": 100000
        }
  )

  event.custom(
    {
        "type": "immersiveengineering:metal_press",
        "mold": "tfc_ie_addon:mold_block",
        "input": {
          "base_ingredient": {
            "item": "tfc:metal/double_ingot/gold"
          },
          "count": 9
        },
        "result": {
          "item": "minecraft:gold_block"
        },
        "energy": 100000
      }
)

event.custom(
  {
      "type": "immersiveengineering:metal_press",
      "mold": "tfc_ie_addon:mold_block",
      "input": {
        "base_ingredient": {
          "item": "firmalife:metal/double_ingot/stainless_steel"
        },
        "count": 9
      },
      "result": {
        "item": "minecraft:iron_block"
      },
      "energy": 100000
    }
)




  //Potions
 

  event.custom(
    {
      "type": "tfc:barrel_instant",
      "input_item": {
        "ingredient": {
          "item": "minecraft:glass_bottle"
        }
      },
      "input_fluid": {
        "ingredient": "minecraft:water",
        "amount": 100
      },
      "output_item": {
        "item": "tfc:silica_glass_bottle"
      }
    }
  )


  //Refinery

  event.custom({"type":"immersiveengineering:refinery",
    "catalyst":{"item": "tfc:metal/sheet/silver"},
    "energy":2000,
    "input0":{"amount":250,"tag":"tfcagedalcohol:aged_cider"},
    "input1":{"amount":250,"tag":"tfcagedalcohol:aged_beer"},
    "result":{"amount":250,"fluid":"kubejs:night_vision_potion"}})

    event.custom({"type":"immersiveengineering:refinery",
      "catalyst":{"item": "tfc:metal/sheet/silver"},
      "energy":2000,
      "input0":{"amount":250,"tag":"tfcagedalcohol:aged_vodka"},
      "input1":{"amount":250,"tag":"tfcagedalcohol:aged_beer"},
      "result":{"amount":250,"fluid":"kubejs:healing_potion"}})

      event.custom({"type":"immersiveengineering:refinery",
        "catalyst":{"item": "tfc:metal/sheet/silver"},
        "energy":2000,
        "input0":{"amount":250,"tag":"tfcagedalcohol:aged_sake"},
        "input1":{"amount":250,"tag":"tfcagedalcohol:aged_whiskey"},
        "result":{"amount":250,"fluid":"kubejs:strength_potion"}})

        event.custom({"type":"immersiveengineering:refinery",
          "catalyst":{"item": "tfc:metal/sheet/silver"},
          "energy":2000,
          "input0":{"amount":250,"tag":"tfcagedalcohol:aged_sake"},
          "input1":{"amount":250,"tag":"forge:creosote"},
          "result":{"amount":250,"fluid":"kubejs:fire_resistance_potion"}})


       
          //Bottling Machine

            event.custom({
                "type": "immersiveengineering:bottling_machine",
                "fluid": {
                  "amount": 500,
                  "fluid": "kubejs:night_vision_potion"
                },
                "input": {
                  "item": "tfc:silica_glass_bottle"
                },
                "results": [
                  {
                    "item": Item.of('minecraft:potion', '{Potion:"minecraft:long_night_vision"}').toJson()
                  }
                ]
              }
            )






            //Crusher
            

        event.custom({
          "type":"immersiveengineering:crusher",
          "energy":1600,
          "input":
          {
            "item":"minecraft:soul_sand"
          },
          "result":
          {
            "count":1,
          "item":"minecraft:bone_meal"
        },
          "secondaries":[
            {
            "chance":0.05,
            "output":
            {
              "item":"tfc:powder/sulfur"
        
            }
          }
          ]
        }
        )            

        event.custom({
          "type":"immersiveengineering:crusher",
          "energy":1600,
          "input":
          {
            "item":"minecraft:soul_soil"
          },
          "result":
          {
            "count":1,
          "item":"minecraft:bone_meal"
        },
          "secondaries":[
            {
            "chance":0.10,
            "output":
            {
              "item":"tfc:powder/sulfur"
        
            }
          }
          ]
        }
        )




})