ServerEvents.recipes(event => {

    event.replaceInput(
        { input: 'minecraft:compass' }, // Arg 1: the filter
        'minecraft:compass',            // Arg 2: the item to replace
        'firmaciv:firmaciv_compass'         // Arg 3: the item to replace it with
      )

      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.shapeless(
        Item.of('minecraft:map', 1), 
        [
          '#forge:leather',
          'minecraft:paper'
        ]
      )


      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()
                  }
                ]
              }
            )






})