ServerEvents.recipes(event => {
    event.remove({output: 'projecte:philosophers_stone'})
    event.remove({id: 'projecte:collector_mk1'})
    event.remove({id: 'projecte:collector_mk2'})
    event.remove({id: 'projecte:collector_mk3'})
    event.remove({id: 'projecte:relay_mk1'})
    event.remove({id: 'projecte:relay_mk2'})
    event.remove({id: 'projecte:relay_mk3'})
    event.remove({id: 'projecte:alchemical_chest'})
    event.remove({id: 'projecte:low_covalence_dust'})
    event.remove({id: 'projecte:medium_covalence_dust'})
    event.remove({id: 'projecte:high_covalence_dust'})
})

ServerEvents.recipes(event => {
    //Philosopher's Stone
    event.custom({
        "type": "extendedcrafting:shaped_table",
        "pattern": [
          "         ",
          "  ABCBA  ",
          " ADEAEDA ",
          " BEDFDEB ",
          " CAFGFAC ",
          " BEDFDEB ",
          " ADEAEDA ",
          "  ABCBA  ",
          "         "
        ],
        "key": {
          "A": {
            "item": "powah:crystal_nitro"
          },
          "B": {
            "item": "rftoolsdim:legendary_essence"
          },
          "C": {
            "item": "mysticalagradditions:creative_essence"
          },
          "D": {
            "item": "mekanism:pellet_antimatter"
          },
          "E": {
            "item": "mekanism:pellet_polonium"
          },
          "F": {
            "item": "bigreactors:insanite_ingot"
          },
          "G": {
            "item": "extendedcrafting:the_ultimate_block"
          }
        },
        "result": {
          "item": "projecte:philosophers_stone"
        }
      }).id('projecte:philosophers_stone')
    
      //Alchemical Coal
      event.replaceInput(
        { output: 'projecte:alchemical_coal' }, // Arg 1: the filter
        'minecraft:coal',            // Arg 2: the item to replace
        'mysticalagradditions:insanium_coal'         // Arg 3: the item to replace it with
      )
    
      //Alchemical Coal -> Coal
      event.replaceOutput(
        { input: 'projecte:alchemical_coal' }, // Arg 1: the filter
        'minecraft:coal',            // Arg 2: the item to replace
        'mysticalagradditions:insanium_coal'         // Arg 3: the item to replace it with
      )
})