ServerEvents.recipes(event => {



    //DFC

    event.replaceInput(
        { input: 'dfc:metal/sheet/aluminum' }, // Arg 1: the filter
        'dfc:metal/sheet/aluminum',            // Arg 2: the item to replace
        'tfc_ie_addon:metal/sheet/aluminum'         // Arg 3: the item to replace it with
      )
 



        //Crafting

        event.shapeless(
          Item.of('dfc:leaded_silica_glass_batch', 1), 
          [
            'tfc:silica_glass_batch',
            'tfc_ie_addon:powder/galena'
          ]
        )

        event.shapeless(
          Item.of('dfc:leaded_hematitic_glass_batch', 1), 
          [
            'tfc:hematitic_glass_batch',
            'tfc_ie_addon:powder/galena'
          ]
        )

        event.shapeless(
          Item.of('dfc:leaded_olivine_glass_batch', 1), 
          [
            'tfc:olivine_glass_batch',
            'tfc_ie_addon:powder/galena'
          ]
        )

        event.shapeless(
          Item.of('dfc:leaded_volcanic_glass_batch', 1), 
          [
            'tfc:volcanic_glass_batch',
            'tfc_ie_addon:powder/galena'
          ]
        )


            //Blast Furnace
            event.custom({
                "type": "tfc:blast_furnace",
                "fluid": {
                  "ingredient": "dfc:metal/dfc_alumina",
                  "amount": 1
                },
                "result": {
                  "fluid": "tfc_ie_addon:metal/aluminum",
                  "amount": 1
                },
                "catalyst": {
                  "tag": "tfc:flux"
                }
              }
              )


            //Arc Furnace
            event.custom({
                "type": "immersiveengineering:arc_furnace",
                "results": [
                  {
                    "count": 1,
                    "base_ingredient": {
                      "item": "immersiveengineering:ingot_aluminum"
                    }
                  }
                ],
                "additives": [
                  {
                    "count": 1,
                    "base_ingredient": {
                      "item": "tfc:powder/flux"
                    }
                  }
                ],
                "input": {
                  "count": 1,
                  "base_ingredient": {
                    "item": "dfc:metal/ingot/alumina"
                  }
                },
                "time": 100,
                "energy": 51200
              }
            )


            //Alloy
            event.custom(
              {
                  "type": "tfc:alloy",
                  "result": "dfc:pewter",
                  "contents": [
                    {
                      "metal": "tfc:tin",
                      "min": 0.5,
                      "max": 0.7
                    },
                    {
                      "metal": "tfc_ie_addon:lead",
                      "min": 0.0,
                      "max": 0.3
                    },
                    {
                      "metal": "tfc:bismuth",
                      "min": 0.0,
                      "max": 0.2
                    }
                  ]
                }
            )



    //Metal Press


    event.custom({
      "__comment__": "This file was automatically created by mcresources",
      "type": "immersiveengineering:metal_press",
      "mold": "tfc_ie_addon:mold_sheet",
      "input": {
        "count": 2,
        "base_ingredient": {
          "item": "dfc:metal/ingot/alumina"
        }
      },
      "result": {
        "item": "dfc:metal/sheet/alumina"
      },
      "energy": 2400
    }
  )

  event.custom({
    "__comment__": "This file was automatically created by mcresources",
    "type": "immersiveengineering:metal_press",
    "mold": "tfc_ie_addon:mold_sheet",
    "input": {
      "count": 2,
      "base_ingredient": {
        "item": "dfc:metal/ingot/pewter"
      }
    },
    "result": {
      "item": "dfc:metal/sheet/pewter"
    },
    "energy": 2400
  }
)

event.custom({
  "__comment__": "This file was automatically created by mcresources",
  "type": "immersiveengineering:metal_press",
  "mold": "tfc_ie_addon:mold_sheet",
  "input": {
    "count": 2,
    "base_ingredient": {
      "item": "dfc:metal/ingot/platinum"
    }
  },
  "result": {
    "item": "dfc:metal/sheet/platinum"
  },
  "energy": 2400
}
)

          //Create Pressing
          event.custom({
            "type": "create:pressing",
            "ingredients": [
              {
                "item": "dfc:metal/ingot/alumina"
              }
            ],
            "results": [
              {
                "item": "dfc:metal/sheet/alumina"
              }
            ]
          }
        )
        
        event.custom({
          "type": "create:pressing",
          "ingredients": [
            {
              "item": "dfc:metal/ingot/pewter"
            }
          ],
          "results": [
            {
              "item": "dfc:metal/sheet/pewter"
            }
          ]
        }
      )
        
      event.custom({
        "type": "create:pressing",
        "ingredients": [
          {
            "item": "dfc:metal/ingot/platinum"
          }
        ],
        "results": [
          {
            "item": "dfc:metal/sheet/platinum"
          }
        ]
      }
    )


})