events.listen('item.tags', function (e) {
  
  //Valid Apiary  
  e.add('resourcefulbees:valid_apiary', ['glassential:glass_dark_ethereal', 'glassential:glass_dark_ethereal_reverse', 'glassential:glass_ethereal', 'glassential:glass_ghostly', 'glassential:glass_ethereal_reverse'])
  //Yellorium
  e.get('forge:ingots/uranium').remove('bigreactors:yellorium_ingot')
  e.get('forge:dusts/uranium').remove('bigreactors:yellorium_dust')
  e.get('forge:ores/uranium').remove('bigreactors:yellorite_ore')
  e.add('forge:ores/yellorite', 'bigreactors:yellorite_ore')
  e.add('forge:ores/endumium', 'farlanders:endumium_ore')
  //Plates
  e.add('forge:plates', ['kubejs:zinc_plate', 'kubejs:lapis_plate', 'kubejs:brass_plate'])
  //Lapis Plate
  e.add('forge:plates/lapis_lazuli', 'kubejs:lapis_plate')
  //Brass Plate
  e.add('forge:plates/brass', 'kubejs:brass_plate')
  //Zinc Plate
  e.add('forge:plates/zinc', 'kubejs:zinc_plate')
  e.add('forge:ingots/red_alloy', 'bluepower:red_alloy_ingot')
  e.add('forge:ingots/redstone_alloy', 'bluepower:red_alloy_ingot')
  e.add('forge:ingots/platinum', 'kubejs:platinum_ingot')
  e.add('forge:nuggets/platinum', 'kubejs:platinum_nugget')
  e.add('forge:storage_blocks/platinum', 'kubejs:platinum_block')
  //Beehives
  e.add('minecraft:beehives', ['buzzier_bees:spruce_beehive', 'buzzier_bees:birch_beehive', 'buzzier_bees:jungle_beehive', 'buzzier_bees:acacia_beehive', 'buzzier_bees:dark_oak_beehive', 'buzzier_bees:crimson_beehive', 'buzzier_bees:warped_beehive', 'endergetic:poise_beehive', 'endergetic:puffbug_hive', 'upgrade_aquatic:river_beehive', 'upgrade_aquatic:driftwood_beehive'])
  e.get('minecraft:beehives').remove(['resourcefulbees:t1_beehive', 'resourcefulbees:t2_beehive', 'resourcefulbees:t3_beehive', 'resourcefulbees:t4_beehive'])
  e.get('forge:ingots/iron').remove('dustrial_decor:rusty_iron_ingot')
  e.get('forge:ingots/lead').remove('eidolon:lead_ingot')
  e.get('forge:ingots/copper').remove('iceandfire:copper_ingot')
  e.get('forge:nuggets/copper').remove('iceandfire:copper_nugget')
  e.remove('twilightforest:portal/activator', '#forge:gems/diamond')  
  e.add('twilightforest:portal/activator', 'rats:psionic_rat_brain')
  e.add('forge:ores/gold', ['byg:brimstone_nether_gold_ore', 'byg:blue_nether_gold_ore'])
  e.add('forge:ores/quartz', 'byg:brimstone_nether_quartz_ore')
  e.add('forge:ores/quartz', 'byg:blue_nether_quartz_ore')
  e.add('forge:ores/coal', 'janoeo:coal_gravel_ore')
  e.add('forge:ores/emerald', 'janoeo:emerald_gravel_ore')
  e.add('forge:ores/dimshard', ['rftoolsbase:dimensionalshard_overworld', 'rftoolsbase:dimensionalshard_nether', 'rftoolsbase:dimensionalshard_end'])
  e.add('forge:ores/prosperity', ['mysticalagradditions:nether_prosperity_ore', 'mysticalagradditions:end_prosperity_ore'])
  e.add('forge:ores/inferium', ['mysticalagradditions:nether_inferium_ore', 'mysticalagradditions:end_inferium_ore'])
  //ores
  e.add('forge:ores/lapis', ['gildedingot:basalt_lapis', 'janoeo:lapis_gravel_ore'])
  e.get('forge:ores/copper').remove(['mekanism:copper_ore', 'immersiveengineering:ore_copper', 'iceandfire:copper_ore', 'tconstruct:copper_ore', 'janoeo:copper_ore', 'create:copper_ore', 'bluepower:copper_ore'])
  e.get('forge:ores/tin').remove(['mekanism:tin_ore', 'janoeo:tin_ore'])
  e.get('forge:ores/silver').remove(['immersiveengineering:ore_silver', 'janoeo:silver_ore', 'bluepower:silver_ore', 'iceandfire:silver_ore'])
  e.get('forge:ores/uranium').remove(['mekanism:uranium_ore', 'immersiveengineering:ore_uranium'])
  e.get('forge:ores/zinc').remove(['create:zinc_ore', 'bluepower:zinc_ore'])
  e.get('forge:ores/lead').remove(['mekanism:lead_ore', 'immersiveengineering:ore_lead', 'eidolon:lead_ore', 'janoeo:lead_ore'])
  e.get('forge:ores/nickel').remove('immersiveengineering:ore_nickel')
  e.get('forge:ores/aluminum').remove('immersiveengineering:ore_aluminum')
  e.get('forge:ores/osmium').remove('janoeo:osmium_ore')
  e.get('forge:ores/sapphire').remove(['janoeo:sapphire_ore', 'janoeo:sapphire_nether_ore', 'thermal:sapphire_ore'])
  e.get('forge:ores/ruby').remove(['janoeo:ruby_ore', 'janoeo:ruby_nether_ore', 'thermal:ruby_ore'])
  e.get('forge:ores/amethyst').remove('janoeo:amethyst_ore')
  //Dust
  e.get('forge:dusts/copper').remove(['immersiveengineering:dust_copper', 'janoeo:copper_dust', 'mekanism:dust_copper'])
  e.get('forge:dusts/coal').remove('janoeo:coal_dust')
  e.get('forge:dusts/lapis').remove(['mekanism:dust_lapis_lazuli', 'janoeo:lapis_dust'])
  e.get('forge:dusts/steel').remove('immersiveengineering:dust_steel')
  e.get('forge:dusts/aluminum').remove('immersiveengineering:dust_aluminum')
  e.get('forge:dusts/emerald').remove(['mekanism:dust_emerald', 'janoeo:emerald_dust'])
  e.get('forge:dusts/iron').remove(['immersiveengineering:dust_iron', 'mekanism:dust_iron', 'janoeo:iron_dust'])
  e.get('forge:dusts/gold').remove(['janoeo:gold_dust', 'mekanism:dust_gold', 'immersiveengineering:dust_gold'])
  e.get('forge:dusts/diamond').remove('mekanism:dust_diamond')
  e.get('forge:dusts/nickel').remove('immersiveengineering:dust_nickel')
  e.get('forge:dusts/silver').remove('immersiveengineering:dust_silver')
  e.get('forge:dusts/lead').remove(['immersiveengineering:dust_lead', 'mekanism:dust_lead'])
  e.get('forge:dusts/tin').remove('mekanism:dust_tin')
  e.get('forge:dusts/uranium').remove(['mekanism:dust_uranium', 'immersiveengineering:dust_uranium'])
  e.get('forge:dusts/sulfur').remove(['immersiveengineering:dust_sulfur', 'mekanism:dust_sulfur', 'eidolon:sulfur'])
  e.get('forge:dusts/obsidian').remove('mekanism:dust_obsidian')
  e.get('forge:dusts/quartz').remove('mekanism:dust_quartz')
  e.get('forge:dusts/wood').remove(['mekanism:sawdust', 'immersiveengineering:dust_wood'])
  e.get('forge:dusts/sapphire').remove('thermal:sapphire_dust')
  e.get('forge:dusts/ruby').remove('thermal:ruby_dust')
  e.get('forge:dyes/yellow').remove('mekanism:dust_sulfur')
  e.get('forge:dyes').remove('mekanism:dust_sulfur')
  //Other
  e.get('forge:rods/wooden').remove('immersiveengineering:stick_treated')
  e.get('forge:rods').remove('immersiveengineering:stick_treated')
  e.get('forge:wires/copper').remove('immersiveengineering:wire_copper')
  e.get('forge:bones/wither').remove('iceandfire:witherbone')
  e.get('architects_palette:withered_bones').remove('iceandfire:witherbone')
  e.get('forge:wither_bones').remove('bhc:wither_bone')
  e.get('forge:gems/ruby').remove(['thermal:ruby', 'janoeo:ruby'])
  e.get('forge:gems/sapphire').remove(['thermal:sapphire', 'janoeo:sapphire', 'iceandfire:sapphire_gem'])
  e.get('forge:gems/amethyst').remove(['iceandfire:amythest_gem', 'janoeo:amethyst'])
  e.get('forge:rods/steel').remove('mapperbase:steel_rod')
  e.get('forge:bitumen').remove('immersivepetroleum:bitumen')
  e.get('forge:ingots/brass').remove('bluepower:brass_ingot')
  e.get('forge:ingots/tin').remove('mekanism:ingot_tin')
  e.get('forge:ingots/copper').remove(['mekanism:ingot_copper', 'immersiveengineering:ingot_copper'])
  e.add('forge:shard/prosperity', 'mysticalagriculture:prosperity_shard')
  e.add('forge:shard/dimshard', 'rftoolsbase:dimensionalshard')
  e.add('forge:essence/inferium', 'mysticalagriculture:inferium_essence')
  e.add('forge:ores/emeraldite', 'byg:emeraldite_ore')
  e.add('forge:gems/ratlantis', 'rats:gem_of_ratlantis')
  e.add('forge:gems/endumium', 'farlanders:endumium_crystal')
  e.add('forge:ores/lapis', 'gildedingot:basalt_lapis')
  e.add('forge:ores/cheese', 'rats:cheese_ore')
  e.add('forge:ores/ratlantean', 'rats:ratlantean_gem_ore')
  e.add('forge:ores/starmetal', 'astralsorcery:starmetal_ore')
  e.add('forge:shard/ender', 'betterendforge:ender_shard')
  e.add('forge:gems/amber', 'betterendforge:raw_amber')
  e.add('forge:anthracite', 'byg:anthracite')
  e.add('forge:lignite', 'byg:lignite')
  e.add('forge:dusts/soulium', 'mysticalagriculture:soulium_dust')
  e.add('forge:pendorite', 'byg:raw_pendorite')
  e.add('forge:emeraldite', 'byg:emeraldite_shards')
  e.add('forge:rats/cheese', 'rats:cheese')
  e.add('forge:coals', 'minecraft:coal')
  e.add('forge:ores/tungsten', 'kubejs:tungsten_nether_ore')
  //DENSE
  e.get('forge:ores/coal').remove(['janoeo:dense_coal_ore', 'janoeo:dense_coal_nether_ore'])
  e.get('forge:ores/diamond').remove(['janoeo:dense_diamond_ore', 'janoeo:dense_diamond_nether_ore'])
  e.get('forge:ores/emerald').remove(['janoeo:dense_emerald_ore', 'janoeo:dense_emerald_nether_ore'])
  e.get('forge:ores/gold').remove(['janoeo:dense_gold_ore', 'janoeo:dense_gold_nether_ore'])
  e.get('forge:ores/iron').remove(['janoeo:dense_iron_ore', 'janoeo:dense_iron_nether_ore'])
  e.get('forge:ores/lapis').remove(['janoeo:dense_lapis_ore', 'janoeo:dense_lapis_nether_ore'])
  e.get('forge:ores/redstone').remove(['janoeo:dense_redstone_ore', 'janoeo:dense_redstone_nether_ore'])
  e.get('forge:ores/copper').remove('janoeo:dense_copper_ore')
  e.get('forge:ores/tin').remove('janoeo:dense_tin_ore')
  e.get('forge:ores/quartz').remove('janoeo:dense_quartz_nether_ore')
  
  e.add('forge:ores/dense/coal',['janoeo:dense_coal_nether_ore', 'janoeo:dense_coal_ore'])
  e.add('forge:ores/dense/diamond',['janoeo:dense_diamond_nether_ore', 'janoeo:dense_diamond_ore'])
  e.add('forge:ores/dense/emerald',['janoeo:dense_emerald_nether_ore', 'janoeo:dense_emerald_ore'])
  e.add('forge:ores/dense/gold',['janoeo:dense_gold_nether_ore', 'janoeo:dense_gold_ore'])
  e.add('forge:ores/dense/iron',['janoeo:dense_iron_nether_ore', 'janoeo:dense_iron_ore'])
  e.add('forge:ores/dense/lapis',['janoeo:dense_lapis_nether_ore', 'janoeo:dense_lapis_ore'])
  e.add('forge:ores/dense/redstone',['janoeo:dense_redstone_nether_ore', 'janoeo:dense_redstone_ore'])
  e.add('forge:ores/dense/copper','janoeo:dense_copper_ore')
  e.add('forge:ores/dense/tin','janoeo:dense_tin_ore')
  e.add('forge:ores/dense/quartz','janoeo:dense_quartz_nether_ore')
  //Disk
  e.get('refinedstorage:parts/items/256k').remove('extrastorage:storagepart_256k')
  e.get('refinedstorage:parts/items/1024k').remove('extrastorage:storagepart_1024k')
  e.get('refinedstorage:parts/items/4096k').remove('extrastorage:storagepart_4096k')
  e.get('refinedstorage:parts/items/16384k').remove('extrastorage:storagepart_16384k')
  e.get('refinedstorage:parts/fluids/16384k').remove('extrastorage:storagepart_16384k_fluid')
  e.get('refinedstorage:parts/fluids/65536k').remove('extrastorage:storagepart_65536k_fluid')
  e.get('refinedstorage:parts/fluids/262144k').remove('extrastorage:storagepart_262144k_fluid')
  e.get('refinedstorage:parts/fluids/1048576k').remove('extrastorage:storagepart_1048576k_fluid')
  //Chisel
  e.add('chisel:metals/bronze', ['mekanism:block_bronze', 'thermal:bronze_block'])
  e.add('chisel:charcoal', ['amb:charcoal_block', 'thermal:charcoal_block', 'mekanism:block_charcoal', 'quark:charcoal_block'])
  e.add('chisel:sandstone', 'minecraft:sandstone')
  e.add('chisel:coal', 'minecraft:coal_block')
  e.add('chisel:basalt', 'embellishcraft:basalt')
  e.add('chisel:emerald', 'minecraft:emerald_block')
  e.add('chisel:metals/aluminum', 'immersiveengineering:storage_aluminum')
  e.add('chisel:redstone', 'minecraft:redstone_block')
  e.add('chisel:marble', ['embellishcraft:marble', 'bluepower:marble', 'astralsorcery:marble_runed', 'astralsorcery:marble_raw', 'astralsorcery:marble_pillar', 'astralsorcery:marble_engraved', 'astralsorcery:marble_chiseled', 'astralsorcery:marble_arch', 'astralsorcery:marble_bricks'])
  //BYG Planks
  e.add('forge:other/planks',['integrateddynamics:menril_planks', 'byg:maple_planks', 'byg:mangrove_planks', 'byg:mahogany_planks', 'byg:lament_planks', 'byg:jacaranda_planks', 'byg:imparius_planks', 'byg:holly_planks', 'byg:green_enchanted_planks', 'byg:fir_planks', 'byg:embur_planks', 'byg:sythian_planks', 'byg:zelkova_planks', 'byg:witch_hazel_planks', 'byg:willow_planks', 'byg:skyris_planks', 'byg:redwood_planks', 'byg:rainbow_eucalyptus_planks', 'byg:pine_planks', 'byg:palm_planks', 'byg:nightshade_planks', 'byg:ether_planks', 'byg:ebony_planks', 'byg:cypress_planks', 'byg:aspen_planks', 'byg:baobab_planks', 'byg:blue_enchanted_planks', 'byg:bulbis_planks', 'byg:cherry_planks', 'byg:cika_planks'])
  e.add('forge:other/logs', ['integrateddynamics:menril_log', 'integrateddynamics:menril_log_stripped', 'integrateddynamics:menril_wood', 'integrateddynamics:menril_wood_stripped', 'byg:aspen_log', 'byg:aspen_wood', 'byg:stripped_aspen_log', 'byg:stripped_aspen_wood', 'byg:stripped_cherry_wood', 'byg:ether_log', 'byg:ether_wood', 'byg:stripped_ether_log', 'byg:stripped_ether_wood', 'byg:bulbis_stem', 'byg:bulbis_wood', 'byg:stripped_bulbis_stem', 'byg:stripped_bulbis_wood', 'byg:cherry_log', 'byg:cika_log', 'byg:cika_wood', 'byg:stripped_cika_log', 'byg:stripped_cika_wood', 'byg:blue_enchanted_log', 'byg:blue_enchanted_wood', 'byg:stripped_blue_enchanted_log', 'byg:stripped_blue_enchanted_wood', 'byg:cherry_wood', 'byg:cypress_log', 'byg:cypress_wood', 'byg:stripped_cypress_log', 'byg:stripped_cypress_wood', 'byg:baobab_log', 'byg:baobab_wood', 'byg:stripped_baobab_log', 'byg:stripped_baobab_wood', 'byg:stripped_cherry_log', 'byg:ebony_log', 'byg:ebony_wood', 'byg:stripped_ebony_log', 'byg:stripped_ebony_wood', 'byg:imparius_stem', 'byg:imparius_hyphae', 'byg:fungal_imparius_stem', 'byg:fungal_imparius_hyphae', 'byg:stripped_jacaranda_wood', 'byg:maple_log', 'byg:maple_wood', 'byg:stripped_maple_log', 'byg:stripped_maple_wood', 'byg:fir_log', 'byg:fir_wood', 'byg:stripped_fir_log', 'byg:stripped_fir_wood', 'byg:jacaranda_log', 'byg:lament_log', 'byg:lament_wood', 'byg:stripped_lament_log', 'byg:stripped_lament_wood', 'byg:green_enchanted_log', 'byg:green_enchanted_wood', 'byg:stripped_green_enchanted_log', 'byg:stripped_green_enchanted_wood', 'byg:jacaranda_wood', 'byg:mahogany_log', 'byg:mahogany_wood', 'byg:stripped_mahogany_log', 'byg:stripped_mahogany_wood', 'byg:holly_log', 'byg:holly_wood', 'byg:stripped_holly_log', 'byg:stripped_holly_wood', 'byg:stripped_jacaranda_log', 'byg:mangrove_log', 'byg:mangrove_wood', 'byg:stripped_mangrove_log', 'byg:stripped_mangrove_wood', 'byg:pine_log', 'byg:pine_wood', 'byg:stripped_pine_log', 'byg:stripped_pine_wood', 'byg:stripped_rainbow_eucalyptus_wood', 'byg:witch_hazel_log', 'byg:witch_hazel_wood', 'byg:stripped_witch_hazel_log', 'byg:stripped_witch_hazel_wood', 'byg:nightshade_log', 'byg:nightshade_wood', 'byg:stripped_nightshade_log', 'byg:stripped_nightshade_wood', 'byg:rainbow_eucalyptus_log', 'byg:redwood_log', 'byg:redwood_wood', 'byg:stripped_redwood_log', 'byg:stripped_redwood_wood', 'byg:palm_log', 'byg:palm_wood', 'byg:stripped_palm_log', 'byg:stripped_palm_wood', 'byg:rainbow_eucalyptus_wood', 'byg:skyris_log', 'byg:skyris_wood', 'byg:stripped_skyris_log', 'byg:stripped_skyris_wood', 'byg:palo_verde_log', 'byg:palo_verde_wood', 'byg:stripped_palo_verde_log', 'byg:stripped_palo_verde_wood', 'byg:stripped_rainbow_eucalyptus_log', 'byg:willow_log', 'byg:willow_wood', 'byg:stripped_willow_log', 'byg:stripped_willow_wood', 'byg:withering_oak_log', 'byg:withering_oak_wood', 'byg:zelkova_log', 'byg:zelkova_wood', 'byg:stripped_zelkova_log', 'byg:stripped_zelkova_wood', 'byg:sythian_stem', 'byg:sythian_hyphae', 'byg:stripped_sythian_stem', 'byg:stripped_sythian_hyphae', 'byg:embur_pedu', 'byg:embur_hyphae', 'byg:stripped_embur_pedu', 'byg:stripped_embur_hyphae'])
})
events.listen('block.tags', function (e) {
  //ores
  e.get('forge:ores/copper').remove('mekanism:copper_ore')
  e.get('forge:ores/copper').remove('immersiveengineering:ore_copper')
  e.get('forge:ores/copper').remove('iceandfire:copper_ore')
  e.get('forge:ores/copper').remove('tconstruct:copper_ore')
  e.get('forge:ores/copper').remove('janoeo:copper_ore')
  e.get('forge:ores/copper').remove('create:copper_ore')
  e.get('forge:ores/copper').remove('bluepower:copper_ore')
  e.get('forge:ores/tin').remove('mekanism:tin_ore')
  e.get('forge:ores/tin').remove('janoeo:tin_ore')
  e.get('forge:ores/silver').remove('immersiveengineering:ore_silver')
  e.get('forge:ores/silver').remove('iceandfire:silver_ore')
  e.get('forge:ores/silver').remove('bluepower:silver_ore')
  e.get('forge:ores/silver').remove('janoeo:silver_ore')
  e.get('forge:ores/uranium').remove('mekanism:uranium_ore')
  e.get('forge:ores/uranium').remove('immersiveengineering:ore_uranium')
  e.get('forge:ores/zinc').remove('create:zinc_ore')
  e.get('forge:ores/zinc').remove('bluepower:zinc_ore')
  e.get('forge:ores/lead').remove('mekanism:lead_ore')
  e.get('forge:ores/lead').remove('immersiveengineering:ore_lead')
  e.get('forge:ores/lead').remove('eidolon:lead_ore')
  e.get('forge:ores/lead').remove('janoeo:lead_ore')
  e.get('forge:ores/nickel').remove('immersiveengineering:ore_nickel')
  e.get('forge:ores/aluminum').remove('immersiveengineering:ore_aluminum')
  e.get('forge:ores/osmium').remove('janoeo:osmium_ore')
  e.get('forge:ores/sapphire').remove('janoeo:sapphire_ore')
  e.get('forge:ores/sapphire').remove('janoeo:sapphire_nether_ore')
  e.get('forge:ores/sapphire').remove('thermal:sapphire_ore')
  e.get('forge:ores/ruby').remove('janoeo:ruby_ore')
  e.get('forge:ores/ruby').remove('janoeo:ruby_nether_ore')
  e.get('forge:ores/ruby').remove('thermal:ruby_ore')
  e.get('forge:ores/amethyst').remove('janoeo:amethyst_ore')
  e.get('forge:ores/uranium').remove('bigreactors:yellorite_ore')
  e.add('forge:ores/gold', ['byg:brimstone_nether_gold_ore', 'byg:blue_nether_gold_ore'])
  //Valid Apiary  
  e.add('resourcefulbees:valid_apiary', ['glassential:glass_dark_ethereal', 'glassential:glass_dark_ethereal_reverse', 'glassential:glass_ethereal', 'glassential:glass_ethereal_reverse', 'glassential:glass_ghostly'])

})