const jei_to_hide = [
    'iceandfire:silver_sword',
    'iceandfire:silver_shovel',
    'iceandfire:silver_pickaxe',
    'iceandfire:silver_axe',
    'iceandfire:silver_hoe',
    'iceandfire:copper_sword',
    'iceandfire:copper_shovel',
    'iceandfire:copper_pickaxe',
    'iceandfire:copper_axe',
    'iceandfire:copper_hoe',
        //draconic evolution modules
    'draconicevolution:chaotic_flight_module',
    'draconicevolution:chaotic_undying_module',
    'draconicevolution:chaotic_jump_module',,
    'draconicevolution:chaotic_energy_module',
    'draconicevolution:chaotic_speed_module',
    'draconicevolution:chaotic_damage_module',
    'draconicevolution:chaotic_aoe_module',
    'draconicevolution:chaotic_proj_velocity_module',
    'draconicevolution:chaotic_proj_damage_module',
    'draconicevolution:chaotic_proj_penetration_module',
    'draconicevolution:chaotic_proj_grav_comp_module',
    'draconicevolution:chaotic_proj_accuracy_module',
    'draconicevolution:chaotic_shield_recovery_module',
    'draconicevolution:chaotic_large_shield_capacity_module',
    'draconicevolution:chaotic_shield_capacity_module',
    'draconicevolution:chaotic_shield_control_module',

    //draconic evolution tools and roba
    'draconicevolution:chaotic_shovel',
    'draconicevolution:chaotic_hoe',
    'draconicevolution:chaotic_pickaxe',
    'draconicevolution:chaotic_bow',
    'draconicevolution:large_chaos_frag',
    'draconicevolution:chaos_shard',
    'draconicevolution:chaotic_energy_core',
    'draconicevolution:chaotic_core',
    'draconicevolution:dislocator',
    'draconicevolution:advanced_magnet',
    'draconicevolution:magnet',
    'draconicevolution:reactor_prt_focus_ring',
    'draconicevolution:reactor_prt_rotor_full',
    'draconicevolution:reactor_prt_out_rotor',
    'draconicevolution:reactor_prt_in_rotor',
    'draconicevolution:reactor_prt_stab_frame',
    'draconicevolution:crystal_binder',
    'draconicevolution:info_tablet',
    'draconicevolution:mob_soul',
    'draconicevolution:chaotic_capacitor',
    'draconicevolution:creative_capacitor',
    'draconicevolution:chaotic_axe',
    'draconicevolution:chaotic_chestpiece',
    'draconicevolution:chaotic_staff',
    'draconicevolution:chaotic_sword',

    //draconic evolution modules
    'draconicevolution:chaotic_flight_module',
    'draconicevolution:chaotic_undying_module',,
    'draconicevolution:chaotic_jump_module',
    'draconicevolution:chaotic_energy_module',
    'draconicevolution:chaotic_speed_module',
    'draconicevolution:chaotic_damage_module',
    'draconicevolution:chaotic_aoe_module',
    'draconicevolution:chaotic_proj_velocity_module',
    'draconicevolution:chaotic_proj_damage_module',
    'draconicevolution:chaotic_proj_penetration_module',
    'draconicevolution:chaotic_proj_grav_comp_module',
    'draconicevolution:chaotic_proj_accuracy_module',
    'draconicevolution:chaotic_shield_recovery_module',
    'draconicevolution:chaotic_large_shield_capacity_module',
    'draconicevolution:chaotic_shield_capacity_module',
    'draconicevolution:chaotic_shield_control_module',

    //draconic evolution tools and roba
    'draconicevolution:chaotic_shovel',
    'draconicevolution:chaotic_hoe',
    'draconicevolution:chaotic_pickaxe',
    'draconicevolution:chaotic_bow',
    'draconicevolution:large_chaos_frag',
    'draconicevolution:chaos_shard',
    'draconicevolution:chaotic_energy_core',
    'draconicevolution:chaotic_core',
    'draconicevolution:advanced_magnet',
    'draconicevolution:magnet',
    'draconicevolution:reactor_prt_focus_ring',
    'draconicevolution:reactor_prt_rotor_full',
    'draconicevolution:reactor_prt_out_rotor',
    'draconicevolution:reactor_prt_in_rotor',
    'draconicevolution:reactor_prt_stab_frame',
    'draconicevolution:crystal_binder',
    'draconicevolution:info_tablet',
    'draconicevolution:mob_soul',
    'draconicevolution:chaotic_capacitor',
    'draconicevolution:creative_capacitor',
    'draconicevolution:chaotic_axe',
    'draconicevolution:chaotic_chestpiece',
    'draconicevolution:chaotic_staff',
    'draconicevolution:chaotic_sword',

    //draconic evolution blocks anc machines
    'draconicevolution:basic_relay_crystal',
    'draconicevolution:wyvern_relay_crystal',
    'draconicevolution:draconic_relay_crystal',
    'draconicevolution:basic_wireless_crystal',
    'draconicevolution:wyvern_wireless_crystal',
    'draconicevolution:draconic_wireless_crystal',
    'draconicevolution:particle_generator',
    'draconicevolution:draconium_chest',
    'draconicevolution:potentiometer',
    'draconicevolution:stabilized_spawner',
    'draconicevolution:creative_op_capacitor',
    'draconicevolution:grinder',
    'draconicevolution:generator',
    'draconicevolution:flux_gate',
    'draconicevolution:fluid_gate',
    'draconicevolution:basic_crafting_injector',
    'draconicevolution:wyvern_crafting_injector',
    'draconicevolution:awakened_crafting_injector',
    'draconicevolution:chaotic_crafting_injector',
    'draconicevolution:crafting_core',
    'draconicevolution:energy_core', 
    'draconicevolution:energy_core_stabilizer',
    'draconicevolution:energy_pylon',
    'draconicevolution:reactor_core',
    'draconicevolution:reactor_stabilizer',
    'draconicevolution:reactor_injector',
    'draconicevolution:awakened_draconium_block',
    'draconicevolution:basic_io_crystal',
    'draconicevolution:wyvern_io_crystal',
    'draconicevolution:draconic_io_crystal',
    'draconicevolution:dislocation_inhibitor',
    'draconicevolution:medium_chaos_frag',
    'draconicevolution:small_chaos_frag',
    'createautomated:drill_head',
    'rats:rat_upgrade_basic_energy',
    'rats:rat_upgrade_advanced_energy',
    'rats:rat_upgrade_elite_energy',
    'rats:rat_upgrade_extreme_energy',
    'rats:rat_upgrade_ore_doubling',
    'rats:rat_upgrade_tick_accelerator',
    'createdeco:zinc_sheet',
    
    //kubejs
    'kubejs:crif',
    'kubejs:siren',
    'kubejs:worm',
    'kubejs:stymphalian_bird',
    'kubejs:myrmex',
    'kubejs:cockatrice',
    'kubejs:sea_dragon',
    'kubejs:troll', 
    'kubejs:fire_dragon',
    'kubejs:ice_dragon',
    'kubejs:gorgon',
    'kubejs:cyclop',
    'kubejs:hydra',
    'kubejs:ghost',
    'kubejs:lightnin_dragon',
    'kubejs:create_title',
    'kubejs:adjacent',
    'kubejs:perpendicular',
    'kubejs:cogwheel',
    'kubejs:water_wheel',
    'kubejs:precision_screenshot',
    'kubejs:fill_a_repairkit',
    'kubejs:use_a_rapairkit',
    'kubejs:core',
    'kubejs:rat',
    'kubejs:phantom_head',

    //ores
    'immersiveengineering:uranium'
]
//Remove applied facades
onEvent('jei.hide.items', event => {
    event.hide(Item.of('appliedenergistics2:facade').ignoreNBT())
})


onEvent('jei.hide.items', event => {
    for (i of jei_to_hide){
        event.hide(i)
    }
})

//Durability

const jei_durability_to_hide = [
    'create_stuff_additions:copper_armor_helmet',
    'create_stuff_additions:copper_armor_chestplate',
    'create_stuff_additions:copper_armor_leggings',
    'create_stuff_additions:copper_armor_boots'
]

onEvent('jei.hide.items', event => {
    for (x of jei_durability_to_hide){
        event.hide(Item.of(x).ignoreNBT())
    }
})


//CRAFTING CATEGORY
    const jei_crafting_category_to_hide = [
    'ars_nouveau:apprentic_book_dye',
    'ars_nouveau:archmage_book_dye'
    ]
    onEvent('jei.remove.recipes', event => {
        for (c of jei_crafting_category_to_hide){
            event.remove('minecraft:crafting',(c)
            )}
        })
