events.listen('jei.hide.items', function (e) {
  e.hide([
    '#quark:candles',
    'aiotbotania:manasteel_hoe',
    'amb:terracotta_slab',
    'amb:terracotta_stairs',
    'amb:terracotta_wall',
    'architects_palette:withered_bone',
    'byg:chain_plating',
    'compactmachines:solid_wall',
    'create:brass_sheet',
    'create:copper_ingot',
    'create:copper_nugget',
    'create:copper_ore',
    'create:copper_sheet',
    'create:golden_sheet',
    'create:iron_sheet',
    'create:lapis_sheet',
    'create:zinc_ingot',
    'create:zinc_ore',
    'createaddition:diamond_grit',
    'createaddition:zinc_sheet',
    'cyclic:uncrafter',
    'eidolon:lead_nugget',
    'eidolon:lead_ore',
    'envirocore:charcoal_powder',
    'envirocore:creative_energy_source',
    'envirocore:quartz_powder',
    'extendedcrafting:handheld_table',
    'extrastorage:block_1024k',
    'extrastorage:block_1048576k_fluid',
    'extrastorage:block_16384k',
    'extrastorage:block_16384k_fluid',
    'extrastorage:block_256k',
    'extrastorage:block_262144k_fluid',
    'extrastorage:block_4096k',
    'extrastorage:block_65536k_fluid',
    'extrastorage:disk_1024k',
    'extrastorage:disk_1048576k_fluid',
    'extrastorage:disk_16384k',
    'extrastorage:disk_16384k_fluid',
    'extrastorage:disk_256k',
    'extrastorage:disk_262144k_fluid',
    'extrastorage:disk_4096k',
    'extrastorage:disk_65536k_fluid',
    'extrastorage:storagepart_1024k',
    'extrastorage:storagepart_1048576k_fluid',
    'extrastorage:storagepart_16384k',
    'extrastorage:storagepart_16384k_fluid',
    'extrastorage:storagepart_256k',
    'extrastorage:storagepart_262144k_fluid',
    'extrastorage:storagepart_4096k',
    'extrastorage:storagepart_65536k_fluid',
    'ftbquests:barrier',
    'ftbquests:custom_icon',
    'ftbquests:detector',
    'ftbquests:missing_item',
    'ftbquests:stage_barrier',
    'gildedingot:heart_basalt',
    'iceandfire:copper_ingot',
    'iceandfire:copper_nugget',
    'iceandfire:copper_ore',
    'iceandfire:sapphire_ore',
    'iceandfire:silver_ingot',
    'iceandfire:silver_nugget',
    'iceandfire:silver_ore',
    'immersiveengineering:dust_aluminum',
    'immersiveengineering:dust_constantan',
    'immersiveengineering:dust_copper',
    'immersiveengineering:dust_electrum',
    'immersiveengineering:dust_gold',
    'immersiveengineering:dust_iron',
    'immersiveengineering:dust_lead',
    'immersiveengineering:dust_nickel',
    'immersiveengineering:dust_silver',
    'immersiveengineering:dust_steel',
    'immersiveengineering:dust_sulfur',
    'immersiveengineering:dust_uranium',
    'immersiveengineering:dust_wood',
    'immersiveengineering:dust_wood',
    'immersiveengineering:ingot_aluminum',
    'immersiveengineering:ingot_constantan',
    'immersiveengineering:ingot_copper',
    'immersiveengineering:ingot_electrum',
    'immersiveengineering:ingot_lead',
    'immersiveengineering:ingot_nickel',
    'immersiveengineering:ingot_silver',
    'immersiveengineering:ingot_steel',
    'immersiveengineering:ingot_uranium',
    'immersiveengineering:nugget_constantan',
    'immersiveengineering:nugget_copper',
    'immersiveengineering:nugget_electrum',
    'immersiveengineering:nugget_lead',
    'immersiveengineering:nugget_nickel',
    'immersiveengineering:nugget_silver',
    'immersiveengineering:nugget_steel',
    'immersiveengineering:nugget_uranium',
    'immersiveengineering:ore_aluminum',
    'immersiveengineering:ore_copper',
    'immersiveengineering:ore_lead',
    'immersiveengineering:ore_nickel',
    'immersiveengineering:ore_silver',
    'immersiveengineering:ore_uranium',
    'immersiveengineering:slag',
    'immersiveengineering:stick_iron',
    'immersivepetroleum:bitumen',
    'industrialforegoing:black_hole_controller',
    'ironchest:copper_to_iron_chest_upgrade',
    'ironchest:copper_to_silver_chest_upgrade',
    'ironchest:diamond_to_crystal_chest_upgrade',
    'ironchest:diamond_to_obsidian_chest_upgrade',
    'ironchest:gold_to_diamond_chest_upgrade',
    'ironchest:iron_to_gold_chest_upgrade',
    'ironchest:silver_to_gold_chest_upgrade',
    'ironchest:wood_to_copper_chest_upgrade',
    'ironchest:wood_to_iron_chest_upgrade',
    'ironfurnaces:upgrade_copper',
    'ironfurnaces:upgrade_iron',
    'janoeo:amethyst',
    'janoeo:amethyst_ore',
    'janoeo:coal_dust',
    'janoeo:copper_dust',
    'janoeo:copper_ingot',
    'janoeo:copper_ore',
    'janoeo:diamond_dust',
    'janoeo:emerald_dust',
    'janoeo:gold_dust',
    'janoeo:iron_dust',
    'janoeo:lapis_dust',
    'janoeo:lead_dust',
    'janoeo:lead_ingot',
    'janoeo:lead_ore',
    'janoeo:nickel_dust',
    'janoeo:osmium_ingot',
    'janoeo:osmium_ore',
    'janoeo:ruby',
    'janoeo:ruby_nether_ore',
    'janoeo:ruby_ore',
    'janoeo:sapphire',
    'janoeo:sapphire_nether_ore',
    'janoeo:sapphire_ore',
    'janoeo:silver_dust',
    'janoeo:silver_ingot',
    'janoeo:silver_ore',
    'janoeo:tin_dust',
    'janoeo:tin_ingot',
    'janoeo:tin_ore',
    'janoeo:uranium_ingot',
    'kubejs:astralsorcery_trophy',
    'kubejs:bloodmagic_trophy',
    'kubejs:botania_trophy',
    'kubejs:create_trophy',
    'kubejs:draconicevolution_trophy',
    'kubejs:eidolon_trophy',
    'kubejs:envirotech_trophy',
    'kubejs:extendedcrafting_trophy',
    'kubejs:forbidden_arcanus_trophy',
    'kubejs:gobber2_trophy',
    'kubejs:immersiveengineering_trophy',
    'kubejs:industrialforegoing_trophy',
    'kubejs:jellyfishing_trophy',
    'kubejs:kitchen_trophy',
    'kubejs:mahoutsukai_trophy',
    'kubejs:mekanism_trophy',
    'kubejs:miscellaneous_trophy',
    'kubejs:mlsexy',
    'kubejs:mysticalagriculture_trophy',
    'kubejs:pneumaticcraft_trophy',
    'kubejs:powah_trophy',
    'kubejs:powergen_trophy',
    'kubejs:projecte_trophy',
    'kubejs:psi_trophy',
    'kubejs:rats_trophy',
    'kubejs:refined_trophy',
    'kubejs:resourcefulbees_trophy',
    'kubejs:rftools_trophy',
    'kubejs:sonicraft_trophy',
    'kubejs:thermal_trophy',
    'kubejs:twilightforest_trophy',
    'kubejs:woot_trophy',
    'mapperbase:flatter_hammer',
    'mapperbase:iron_plate',
    'mapperbase:iron_rod',
    'mapperbase:raw_bitumen',
    'mapperbase:raw_steel',
    'mapperbase:steel_axe',
    'mapperbase:steel_boots',
    'mapperbase:steel_chestplate',
    'mapperbase:steel_fence',
    'mapperbase:steel_helmet',
    'mapperbase:steel_hoe',
    'mapperbase:steel_ingot',
    'mapperbase:steel_leggings',
    'mapperbase:steel_nugget',
    'mapperbase:steel_pickaxe',
    'mapperbase:steel_plate',
    'mapperbase:steel_rod',
    'mapperbase:steel_shovel',
    'mapperbase:steel_sword',
    'masterfulmachinery:autoastral_dark_celestial_starlight_port_astral_starlight_output',
    'masterfulmachinery:autopsi_autopsi_energy_port_energy_output',
    'masterfulmachinery:quarkonium_qfe_port_energy_output',
    'masterfulmachinery:sonicrings_ringenergy_port_energy_output',
    'mekanism:copper_ore',
    'mekanism:dust_bronze',
    'mekanism:dust_copper',
    'mekanism:dust_diamond',
    'mekanism:dust_emerald',
    'mekanism:dust_gold',
    'mekanism:dust_iron',
    'mekanism:dust_lapis_lazuli',
    'mekanism:dust_lead',
    'mekanism:dust_obsidian',
    'mekanism:dust_quartz',
    'mekanism:dust_sulfur',
    'mekanism:dust_tin',
    'mekanism:dust_uranium',
    'mekanism:ingot_bronze',
    'mekanism:ingot_copper',
    'mekanism:ingot_lead',
    'mekanism:ingot_tin',
    'mekanism:lead_ore',
    'mekanism:nugget_bronze',
    'mekanism:nugget_copper',
    'mekanism:nugget_lead',
    'mekanism:nugget_tin',
    'mekanism:sawdust',
    'mekanism:tin_ore',
    'mekanism:uranium_ore',
    'metalbarrels:copper_to_crystal',
    'metalbarrels:copper_to_diamond',
    'metalbarrels:copper_to_gold',
    'metalbarrels:copper_to_iron',
    'metalbarrels:copper_to_obsidian',
    'metalbarrels:copper_to_silver',
    'metalbarrels:diamond_to_crystal',
    'metalbarrels:diamond_to_obsidian',
    'metalbarrels:gold_to_crystal',
    'metalbarrels:gold_to_diamond',
    'metalbarrels:gold_to_obsidian',
    'metalbarrels:iron_to_crystal',
    'metalbarrels:iron_to_diamond',
    'metalbarrels:iron_to_gold',
    'metalbarrels:iron_to_obsidian',
    'metalbarrels:iron_to_silver',
    'metalbarrels:silver_to_crystal',
    'metalbarrels:silver_to_diamond',
    'metalbarrels:silver_to_gold',
    'metalbarrels:silver_to_obsidian',
    'metalbarrels:wood_to_copper',
    'metalbarrels:wood_to_crystal',
    'metalbarrels:wood_to_diamond',
    'metalbarrels:wood_to_gold',
    'metalbarrels:wood_to_iron',
    'metalbarrels:wood_to_netherite',
    'metalbarrels:wood_to_obsidian',
    'metalbarrels:wood_to_silver',
    'minecraft:lectern',
    'mysticalagriculture:chrome_essence',
    'mysticalagriculture:chrome_seeds',
    'mysticalagriculture:experience_capsule',
    'mysticalagriculture:hostile_soulium_dagger',
    'mysticalagriculture:infusion_crystal',
    'mysticalagriculture:infusion_crystal',
    'mysticalagriculture:iridium_essence',
    'mysticalagriculture:iridium_seeds',
    'mysticalagriculture:mithril_essence',
    'mysticalagriculture:mithril_seeds',
    'mysticalagriculture:passive_soulium_dagger',
    'mysticalagriculture:soul_extractor',
    'mysticalagriculture:titanium_essence',
    'mysticalagriculture:titanium_seeds',
    'mysticalagriculture:ultimate_essence',
    'mysticalagriculture:ultimate_seeds',
    'overloaded:almost_infinite_barrel',
    'overloaded:almost_infinite_capacitor',
    'overloaded:almost_infinite_tank',
    'overloaded:fluid_core',
    'overloaded:hyper_energy_receiver',
    'overloaded:hyper_energy_sender',
    'overloaded:hyper_fluid_receiver',
    'overloaded:hyper_fluid_sender',
    'overloaded:hyper_item_receiver',
    'overloaded:hyper_item_sender',
    'overloaded:item_core',
    'overloaded:true_infinite_barrel',
    'overloaded:true_infinite_capacitor',
    'overloaded:true_infinite_tank',
    'pneumaticcraft:wheat_flour',
    // 'projecte:collector_mk1',
    // 'projecte:collector_mk2',
    // 'projecte:collector_mk3',
    // 'projecte:condenser_mk1',
    // 'projecte:condenser_mk2',
    // 'projecte:philosophers_stone_alt',
    // 'projecte:relay_mk1',
    // 'projecte:relay_mk2',
    // 'projecte:relay_mk3',
    // 'projecte:repair_talisman_alt',
    // 'projecte:tome',
    // 'projectex:collector/mk1_alt',
    // 'projectex:collector/mk2_alt',
    // 'projectex:collector/mk3_alt',
    // 'projectex:compressed_refined_link',
    // 'projectex:personal_link',
    // 'projectex:refined_link',
    // 'projectex:relay/mk1_alt',
    // 'projectex:relay/mk2_alt',
    // 'projectex:relay/mk3_alt',
    // 'projectex:tome',
    'quark:apple_crate',
    'quark:beetroot_crate',
    'quark:carrot_crate',
    'quark:potato_crate',
    'quark:sugar_cane_block',
    'sophisticatedbackpacks:tank_upgrade',
    'tconstruct:copper_ingot',
    'tconstruct:copper_nugget',
    'tconstruct:copper_ore',
    'titanium:diamond_gear',
    'titanium:gold_gear',
    'titanium:iron_gear',
    'woot:debug',
    'zerocore:debugtool',
    /compactmachines:tunnel/,
    /mysticalagriculture:soul_jar/,
    /ftblibrary:fluid_container/,
    /tconstruct:part_builder/,
    /tconstruct:tinker_station/,
    /tconstruct:crafting_station/
  ]);

  // var projecteEnergyGen = ['basic', 'dark', 'red', 'magenta', 'pink', 'purple', 'violet', 'blue', 'cyan', 'green', 'lime', 'yellow', 'orange', 'white', 'fading', 'final'];
  // projecteEnergyGen.forEach(name => {
  //   e.hide([
  //     'projectex:'+name+'_collector',
  //     'projectex:'+name+'_compressed_collector',
  //     'projectex:'+name+'_relay',
  //     'projectex:'+name+'_power_flower'
  //   ]);
  // });
})

onEvent('jei.add.items', e => {
  e.add([
    'tconstruct:crafting_station',
    Item.of('appliedenergistics2:facade', '{item:"minecraft:stone"}'),
    Item.of('tconstruct:part_builder', '{texture:"minecraft:oak_planks"}'),
    Item.of('tconstruct:tinker_station', '{texture:"minecraft:oak_planks"}')
  ])
})