ServerEvents.recipes(event=>{
    let levelList = [
        "basic",
        "advanced",
        "elite",
        "ultimate"
    ]
    let removeList = [
        'smelting',
        'enriching',
        'crushing',
        'compressing',
        'combining',
        'purifying',
        'injecting',
        'infusing',
        'sawing',
        "energy_cube"
    ]
    levelList.forEach(value=>{
        removeList.forEach(id=>{
            if (id == "energy_cube"){
                if (value == "basic") return;
                event.remove({id:`mekanism:${id}/${value}`})
            }
            let recipeId = `mekanism:factory/${value}/${id}`
            event.remove({id:recipeId})
        })
    })
    const removeId = [
        "mekanism:processing/steel/enriched_iron_to_dust",
        "mekanism:nucleosynthesizing/wither_skeleton_skull",
        "mekanism:processing/iron/enriched",
        "mekanism:control_circuit/basic",
        "mekanism:chemical_tank/advanced",
        "mekanism:chemical_tank/elite",
        "mekanism:chemical_tank/ultimate",
        "mekanism:fluid_tank/advanced",
        "mekanism:fluid_tank/elite",
        "mekanism:fluid_tank/ultimate",
        "mekanism:control_circuit/advanced",
        "mekanism:enriching/conversion/obsidian_to_obsidian_dust",
        "mekanism:control_circuit/elite",
        "mekanism:control_circuit/ultimate",
        "mekanism:metallurgic_infusing/alloy/infused",
        "mekanism:metallurgic_infusing/alloy/reinforced",
        "mekanism:infusion_conversion/carbon/from_charcoal",
        "mekanism:infusion_conversion/carbon/from_enriched",
        "mekanism:infusion_conversion/carbon/from_charcoal_block",
        "mekanism:infusion_conversion/carbon/from_coal_block",
        "mekanism:infusion_conversion/carbon/from_coal",
        "mekanism:nucleosynthesizing/diamond",
        "mekanism:jetpack",
        "mekanism:gas_conversion/osmium_from_block",
        "mekanism:gas_conversion/osmium_from_ingot"
    ]
    removeId.forEach(value=>{
        event.remove({id:value})
    })
    
})