const tier1Items = [
    'enicreo:basesword',
    'alexsmobs:music_disc_daze',
    'alexsmobs:music_disc_thime',
    'aquamirae:music_disc_forsaken_drownage',
    'aquamirae:music_disc_horizon',
    'ars_nouveau:music_disc_thistle_the_sound_of_glass',
    'ars_nouveau:music_disc_firel_the_wild_hunt',
    'botania:record_gaia_1',
    'botania:record_gaia_2',
    'born_in_chaos_v1:anluka_doors',
    'born_in_chaos_v1:serpumpkinhead_m',
    'cataclysm:void_core',
    'cataclysm:necklace_of_the_desert',
    'cataclysm:music_disc_the_harbinger',
    'cataclysm:music_disc_the_leviathan',
    'cataclysm:music_disc_netherite_monstrosity',
    'cataclysm:music_disc_ender_guardian',
    'cataclysm:music_disc_ignis',
    'celestial_artifacts:yellow_duck',
    'celestial_artifacts:spirit_arrow_bag',
    'celestial_artifacts:unowned_pendant',
    'celestial_artifacts:spirit_bracelet',
    'celestial_artifacts:red_ruby_bracelet',
    'celestial_artifacts:demon_heart',
    'celestial_artifacts:sands_talisman',
    'celestial_artifacts:spirit_necklace',
    'celestial_artifacts:magic_horseshoe',
    'celestial_artifacts:traveler_scroll',
    'celestial_artifacts:spirit_crown',
    'celestial_artifacts:leech_scabbard',
    'celestial_artifacts:freeze_ring',
    'celestial_artifacts:thunder_ring',
    'celestial_artifacts:heart_of_revenge',
    'enigmaticlegacy:blazing_core',
    'enigmaticlegacy:void_stone',
    'enigmaticlegacy:golem_heart',
    'enigmaticaddons:hell_blade_charm',
    'enigmaticaddons:antique_bag',
    'ars_nouveau:caster_tome',
    'mowziesmobs:music_disc_petiole',
    'mowziesmobs:ice_crystal',
    'mowziesmobs:sol_visage',
    'mowziesmobs:wrought_axe',
    'mowziesmobs:wrought_helmet',
    'minecraft:music_disc_pigstep',
    'minecraft:music_disc_relic',
    'minecraft:music_disc_5',
    'minecraft:music_disc_otherside',
    'minecraft:music_disc_13',
    'minecraft:music_disc_cat',
    'minecraft:music_disc_blocks',
    'minecraft:music_disc_chirp',
    'minecraft:music_disc_far',
    'minecraft:music_disc_mall',
    'minecraft:music_disc_mellohi',
    'minecraft:music_disc_wait',
    'minecraft:music_disc_11',
    'minecraft:music_disc_ward',
    'minecraft:music_disc_strad',
    'minecraft:music_disc_stal',
    'idas:music_disc_slither',
    'biomeswevegone:music_disc_pixie_club',
    'idas:music_disc_calidum',
    'ars_technica:pocket_factory_disc',
    'celestial_artifacts:cross_necklace',
    'celestial_artifacts:fang_necklace',
    'celestial_artifacts:red_heart_necklace',
    'celestial_artifacts:heirloom_necklace',
    'supplementaries:quiver',
    'botanicpledge:rune_gem',
    'betterarcheology:torrent_totem',
    'born_in_chaos_v1:charmof_power',
    'born_in_chaos_v1:charmof_fury',
    'born_in_chaos_v1:charmof_endurance',
    'born_in_chaos_v1:charmof_stealth',
    'botania:dice',
    'minecraft:totem_of_undying',
    'upgradedtotems:ender_totem',
    'upgradedtotems:netherite_totem',
    'upgradedtotems:ender_netherite_totem',
    'born_in_chaos_v1:charmof_resistance',
    'born_in_chaos_v1:orbofthe_summoner',
    'born_in_chaos_v1:fel_lamp',
    'netherexp:music_disc_buckshot_wonderland',
    'upgradedtotems:ender_totem_upgrade_smithing_template',
    'irons_spellbooks:rotten_spell_book',
    'enigmaticaddons:forger_gem',
    'ars_nouveau:music_disc_aria_biblio',
    'quark:music_disc_fire',
    'aquamirae:dagger_of_greed',
    'aquamirae:three_bolt_helmet',
    'aquamirae:shell_horn',
    'aquamirae:rune_of_the_storm',
    'netherexp:sanctum_compass',
    'minecraft:trident',
    'quark:music_disc_ocean'
];

const tier2Items = [
    'enigmaticaddons:lost_engine',
    'enigmaticlegacy:unholy_grail',
    'enigmaticaddons:revival_leaf',
    'enigmaticlegacy:forbidden_fruit',
    'enigmaticaddons:forgotten_ice',
    'enigmaticlegacy:void_pearl',
    'enigmaticlegacy:ocean_stone',
    'enigmaticlegacy:guardian_heart',
    'enigmaticlegacy:angel_blessing',
    'enigmaticaddons:void_tome',
    'enigmaticlegacy:eye_of_nebula',
    'celestial_artifacts:nihility_etching',
    'celestial_artifacts:life_etching',
    'celestial_artifacts:end_etching',
    'celestial_artifacts:twisted_heart',
    'celestial_artifacts:demon_curse',
    'celestial_artifacts:guardian_eye',
    'celestial_artifacts:chaotic_etching',
    'celestial_artifacts:origin_etching',
    'celestial_artifacts:twisted_brain',
    'celestial_artifacts:truth_etching',
    'celestial_artifacts:charming_bracelet',
    'celestial_artifacts:desire_etching',
    'ars_elemental:fire_caster_tome',
    'ars_elemental:water_caster_tome',
    'ars_elemental:air_caster_tome',
    'ars_elemental:earth_caster_tome',
    'ars_elemental:anima_caster_tome',
    'ars_elemental:manipulation_caster_tome',
    'quark:ancient_tome',
    'simplyswords:runic_tablet'
];

const tier3Items = [
    'cataclysm:sandstorm_in_a_bottle',
    'lootr:trophy',
    'cataclysm:monstrous_horn',
    'cataclysm:infernal_forge',
    'cataclysm:tidal_claws',
    'born_in_chaos_v1:lord_pumpkinheads_lamp',
    'cataclysm:gauntlet_of_guard'
];

const tier4Items = [
    'enigmaticlegacy:cursed_ring'
];

const tier1_50Items = [
    'endrem:rogue_eye',
    'endrem:wither_eye',
    'endrem:guardian_eye',
    'endrem:evil_eye',
    'endrem:cursed_eye',
    'endrem:undead_eye',
    'endrem:cold_eye',
    'endrem:old_eye',
    'endrem:cryptic_eye',
    'endrem:exotic_eye',
    'endrem:black_eye',
    'endrem:witch_eye',
    'endrem:corrupted_eye',
    'endrem:lost_eye',
    'endrem:nether_eye',
    'endrem:magical_eye'
];

// Создаем массив netherdelItems для предметов из mynethersdelight
const netherdelItems = [
    'mynethersdelight:spicy_noodle_soup',
    'mynethersdelight:striderloaf',
    'mynethersdelight:plate_of_striderloaf',
    'mynethersdelight:plate_of_cold_striderloaf',
    'mynethersdelight:ghasta',
    'mynethersdelight:ghasmati',
    'mynethersdelight:ghast_dough',
    'mynethersdelight:ghast_salad',
    'mynethersdelight:spicy_cotton',
    'mynethersdelight:strider_with_grilled_fungus',
    'mynethersdelight:bleeding_tartar',
    'mynethersdelight:hot_wings_bucket',
    'mynethersdelight:spicy_curry',
    'mynethersdelight:rock_soup',
    'mynethersdelight:burnt_roll',
    'mynethersdelight:magma_cake',
    'mynethersdelight:magma_cake_slice',
    'mynethersdelight:hot_cream',
    'mynethersdelight:plate_of_ghasta_with_cream',
    'mynethersdelight:ghasta_with_cream',
    'mynethersdelight:hot_wings',
    'mynethersdelight:spicy_hoglin_stew',
    'mynethersdelight:chilidog',
    'mynethersdelight:spicy_skewer',
    'mynethersdelight:bullet_pepper',
    'mynethersdelight:hot_cream_cone',
    'mynethersdelight:roast_ear',
    'mynethersdelight:roast_stuffed_hoglin',
    'mynethersdelight:raw_stuffed_hoglin',
    'mynethersdelight:fried_hoglin_chop',
    'mynethersdelight:blue_tenderloin_steak',
    'mynethersdelight:cooked_loin',
    'mynethersdelight:breakfast_sampler',
    'mynethersdelight:sausage_and_potatoes',
    'mynethersdelight:strider_rock',
    'mynethersdelight:plate_of_stuffed_hoglin',
    'mynethersdelight:plate_of_stuffed_hoglin_ham',
    'mynethersdelight:plate_of_stuffed_hoglin_snout',
    'mynethersdelight:crimson_stroganoff',
    'mynethersdelight:hoglin_loin',
    'mynethersdelight:hoglin_sausage',
    'mynethersdelight:roasted_sausage',
    'mynethersdelight:hotdog',
    'mynethersdelight:strider_egg',
    'mynethersdelight:boiled_egg',
    'mynethersdelight:deviled_egg',
    'mynethersdelight:strider_slice',
    'mynethersdelight:minced_strider',
    'mynethersdelight:strider_stew'
];
const pineappleItems = [
    'pineapple_delight:pineapple',
    'pineapple_delight:pineapple_pie_side',
    'pineapple_delight:pineapple_juice',
    'pineapple_delight:pineapple_fried_rice',
    'pineapple_delight:pineapple_milk_shake',
    'pineapple_delight:pineapple_ice_cream',
    'pineapple_delight:pineapple_pie',
    'pineapple_delight:pineapple_side'
];
const fossilHeads = [
    'betterarcheology:creeper_fossil_head',
    'betterarcheology:villager_fossil_head',
    'betterarcheology:chicken_fossil_head',
    'betterarcheology:ocelot_fossil_head',
    'betterarcheology:wolf_fossil_head',
    'betterarcheology:sheep_fossil_head',
    'betterarcheology:guardian_fossil_head'
];
const goldenArmorItems = [
    'minecraft:golden_helmet',
    'minecraft:golden_chestplate',
    'minecraft:golden_leggings',
    'minecraft:golden_boots',
    'shieldexp:golden_shield',
    'luckys_armory:heavy_golden_armor_helmet',
    'luckys_armory:heavy_golden_armor_chestplate',
    'luckys_armory:heavy_golden_armor_leggings',
    'luckys_armory:heavy_golden_armor_boots',
    'royalvariations:royal_staff'
];
const goldenToolItems = [
    'minecraft:golden_hoe',
    'minecraft:golden_sword',
    'minecraft:golden_axe',
    'minecraft:golden_pickaxe',
    'farmersdelight:golden_knife',
    'minecraft:golden_shovel',
    'simplyswords:gold_rapier',
    'simplyswords:gold_longsword',
    'simplyswords:gold_twinblade',
    'simplyswords:gold_spear',
    'simplyswords:gold_greathammer',
    'simplyswords:gold_claymore',
    'simplyswords:gold_greataxe',
    'simplyswords:gold_chakram',
    'simplyswords:gold_halberd',
    'simplyswords:gold_scythe',
    'simplyswords:gold_cutlass',
    'simplyswords:gold_warglaive',
    'simplyswords:gold_glaive',
    'simplyswords:gold_sai',
    'simplyswords:gold_katana'
];
// Железная броня и инструменты
const ironArmorItems = [
    'minecraft:iron_helmet',
    'minecraft:iron_chestplate',
    'minecraft:iron_leggings',
    'minecraft:iron_boots',
    'shieldexp:iron_shield',
    'luckys_armory:heavy_iron_armor_helmet',
    'luckys_armory:heavy_iron_armor_chestplate',
    'luckys_armory:heavy_iron_armor_leggings',
    'luckys_armory:heavy_iron_armor_boots',
    'royalvariations:royal_knight_helmet_helmet',
    'enigmaticlegacy:iron_ring',
    'minecraft:chainmail_helmet',
    'minecraft:chainmail_chestplate',
    'minecraft:chainmail_leggings',
    'minecraft:chainmail_boots'
];

const ironToolItems = [
    'minecraft:iron_hoe',
    'minecraft:iron_sword',
    'minecraft:iron_axe',
    'minecraft:iron_pickaxe',
    'farmersdelight:iron_knife',
    'minecraft:iron_shovel',
    'simplyswords:iron_rapier',
    'simplyswords:iron_longsword',
    'simplyswords:iron_twinblade',
    'simplyswords:iron_spear',
    'simplyswords:iron_greathammer',
    'simplyswords:iron_claymore',
    'simplyswords:iron_greataxe',
    'simplyswords:iron_chakram',
    'simplyswords:iron_halberd',
    'simplyswords:iron_scythe',
    'simplyswords:iron_cutlass',
    'simplyswords:iron_warglaive',
    'simplyswords:iron_glaive',
    'simplyswords:iron_sai',
    'simplyswords:iron_katana'
];
const diamondArmorItems = [
    'minecraft:diamond_helmet',
    'minecraft:diamond_chestplate',
    'minecraft:diamond_leggings',
    'minecraft:diamond_boots',
    'shieldexp:diamond_shield',
    'luckys_armory:heavy_diamond_armor_helmet',
    'luckys_armory:heavy_diamond_armor_chestplate',
    'luckys_armory:heavy_diamond_armor_leggings',
    'luckys_armory:heavy_diamond_armor_boots'
];

const diamondToolItems = [
    'minecraft:diamond_hoe',
    'minecraft:diamond_sword',
    'minecraft:diamond_axe',
    'minecraft:diamond_pickaxe',
    'farmersdelight:diamond_knife',
    'minecraft:diamond_shovel',
    'simplyswords:diamond_rapier',
    'simplyswords:diamond_longsword',
    'simplyswords:diamond_twinblade',
    'simplyswords:diamond_spear',
    'simplyswords:diamond_greathammer',
    'simplyswords:diamond_claymore',
    'simplyswords:diamond_greataxe',
    'simplyswords:diamond_chakram',
    'simplyswords:diamond_halberd',
    'simplyswords:diamond_scythe',
    'simplyswords:diamond_cutlass',
    'simplyswords:diamond_warglaive',
    'simplyswords:diamond_glaive',
    'simplyswords:diamond_sai',
    'simplyswords:diamond_katana'
];
const netheriteArmorItems = [
    'minecraft:netherite_helmet',
    'minecraft:netherite_chestplate',
    'minecraft:netherite_leggings',
    'minecraft:netherite_boots',
    'shieldexp:netherite_shield',
    'luckys_armory:heavy_netherite_armor_helmet',
    'luckys_armory:heavy_netherite_armor_chestplate',
    'luckys_armory:heavy_netherite_armor_leggings',
    'luckys_armory:heavy_netherite_armor_boots',
    'create:netherite_backtank',
    'create:netherite_diving_boots',
    'create:netherite_diving_helmet',
    'irons_spellbooks:netherite_mage_chestplate',
    'irons_spellbooks:netherite_mage_helmet',
    'irons_spellbooks:netherite_mage_leggings',
    'irons_spellbooks:netherite_mage_boots',
    'create_nj:netherite_jetpack_chestplate',
    'create_nj:netherite_exoskeleton_chestplate'
];

const netheriteToolItems = [
    'minecraft:netherite_hoe',
    'minecraft:netherite_sword',
    'minecraft:netherite_axe',
    'minecraft:netherite_pickaxe',
    'farmersdelight:netherite_knife',
    'minecraft:netherite_shovel',
    'simplyswords:netherite_rapier',
    'simplyswords:netherite_longsword',
    'simplyswords:netherite_twinblade',
    'simplyswords:netherite_spear',
    'simplyswords:netherite_greathammer',
    'simplyswords:netherite_claymore',
    'simplyswords:netherite_greataxe',
    'simplyswords:netherite_chakram',
    'simplyswords:netherite_halberd',
    'simplyswords:netherite_scythe',
    'simplyswords:netherite_cutlass',
    'simplyswords:netherite_warglaive',
    'simplyswords:netherite_glaive',
    'simplyswords:netherite_sai',
    'simplyswords:netherite_katana',
    'crossbowverhaul:crossbow_netherite'
];
const brassArmor = [
    'create_sa:brass_exoskeleton_chestplate',
    'create_sa:brass_jetpack_chestplate',
    'create_sa:brass_helmet',
    'create_sa:brass_chestplate',
    'create_sa:brass_leggings',
    'create_sa:brass_boots'
];

const brassTools = [
    "create_sa:brass_pickaxe",
    "create_sa:brass_axe",
    "create_sa:brass_sword",
    "create_sa:brass_shovel",
    "create_sa:brass_hoe"
];
const copperArmor = [
    "create_sa:copper_jetpack_chestplate",
    "create_sa:copper_exoskeleton_chestplate",
    "create_sa:copper_helmet",
    "create_sa:copper_chestplate",
    "create_sa:copper_leggings",
    "create_sa:copper_boots",
    "create:copper_diving_boots",
    "create:copper_diving_helmet",
    "create:copper_backtank"
];

const copperTools = [
    "create_sa:copper_hoe",
    "create_sa:copper_shovel",
    "create_sa:copper_sword",
    "create_sa:copper_axe",
    "create_sa:copper_pickaxe"
];
const willItems = [
    'botania:ancient_will_ahrim',
    'botania:ancient_will_dharok',
    'botania:ancient_will_guthan',
    'botania:ancient_will_torag',
    'botania:ancient_will_verac',
    'botania:ancient_will_karil'
];
const aquamirae_delight = [
    'aquamirae_delight:spinefish_slice',
    'aquamirae_delight:cooked_spinefish_slice',
    'aquamirae_delight:ground_wisteria',
    'aquamirae_delight:wisteria_leaves',
    'aquamirae_delight:golden_puree',
    'aquamirae_delight:oxygeliumbulbs',
    'aquamirae_delight:spinefishroll',
    'aquamirae_delight:spinefish_kelp_roll',
    'aquamirae_delight:spinefish_kelp_roll_slice',
    'aquamirae_delight:aquatic_feast',
    'aquamirae_delight:deepsea_pie',
    'aquamirae_delight:deepsea_pie_slice',
    'aquamirae_delight:fishermans_delicacy',
    'aquamirae_delight:fishermans_delicacy_slice',
    'aquamirae_delight:glazed_grilled_spinefish',
    'aquamirae_delight:golden_puree_pasta',
    'aquamirae_delight:abyssal_risotto',
    'aquamirae_delight:spinefish_alfredo',
    'aquamirae_delight:esca_gelium_soup',
    'aquamirae_delight:anglers_soup',
    'aquamirae_delight:angled_kebab',
    'aquamirae:ship_graveyard_echo'
];
const steel = [
    'samurai_dynasty:steel_ingot',
    'epicpaladins:steel_ingot'
]
const stell2 = [
    'forge:ingots',
    'forge:ingots/steel',
    'c:ingots',
    'balm:ingots'
]
const zincArmor = [
    "create_sa:zinc_helmet",
    "create_sa:zinc_chestplate",
    "create_sa:zinc_leggings",
    "create_sa:zinc_boots",
];

const zincTools = [
    "create_sa:zinc_hoe",
    "create_sa:zinc_shovel",
    "create_sa:zinc_sword",
    "create_sa:zinc_axe",
    "create_sa:zinc_pickaxe"
];
ServerEvents.tags('item', event => {
    event.add('custom:tier1', tier1Items);
    event.add('custom:tier2', tier2Items);
    event.add('custom:tier3', tier3Items);
    event.add('custom:tier4', tier4Items);
    event.add('custom:tier1_50', tier1_50Items);
    event.add('custom:netherdel', netherdelItems);
    event.add('custom:pineapple', pineappleItems);
    event.add('custom:skull', fossilHeads);
    event.add('custom:golden_tools', goldenToolItems);
    event.add('custom:golden_armor', goldenArmorItems);
    event.add('custom:iron_armor', ironArmorItems);
    event.add('custom:iron_tools', ironToolItems);
    event.add('custom:diamond_armor', diamondArmorItems);
    event.add('custom:diamond_tools', diamondToolItems);
    event.add('custom:netherite_armor', netheriteArmorItems);
    event.add('custom:netherite_tools', netheriteToolItems);
    event.add('custom:brass_armor', brassArmor);
    event.add('custom:brass_tools', brassTools);
    event.add('custom:copper_armor', copperArmor);
    event.add('custom:copper_tools', copperTools);
    event.remove('forge:wires/copper', 'tfmg:copper_wire');
    event.add('custom:will', willItems);
    event.add('custom:aquadel', aquamirae_delight);
    stell2.forEach(tag => {
        steel.forEach(item => {
            event.get(tag).remove(item);
        });
    });
    event.add('custom:zinc_armor', zincArmor);
    event.add('custom:zinc_tools', zincTools);
    event.add('minecraft:beacon_payment_items', 'samurai_dynasty:silver_ingot');
    event.add('minecraft:beacon_base_blocks', 'samurai_dynasty:silver_block');
    event.remove('minecraft:bookshelf_books', 'quark:ancient_tome');
    event.remove('minecraft:bookshelf_books', 'ars_nouveau:caster_tome');
});
