ServerEvents.tags('item', e => {
  // ─── Netherite tier (+1) pickaxes ───
  const netheriteOneTags = [
    'minecraft:tools',
    'forge:tools/pickaxes',
    'terramity:netherite_tier',
    'terramity:plus_one_tier'
  ]
  const netheriteOnePickaxes = [
    'ancient_elements:ancient_metal_pickaxe',
    'ancient_elements:titanium_pickaxe',
    'undergarden:forgotten_pickaxe',
    'ancient_elements:jungle_steel_pickaxe',
    'ancient_elements:ender_steel_pickaxe',
    'composite_material:obsidian_pickaxe',
    'aether:gravitite_pickaxe',
    'ancient_elements:abyssal_pickaxe',
    'ancient_elements:nether_steel_pickaxe',
    'aether:zanite_pickaxe',
    'composite_material:allay_steel_pickaxe',
    'ancient_elements:meteorite_pickaxe',
    'undergarden:utherium_pickaxe',
    'hltweaker:ancient_elements_tier_five',
    'hltweaker:ancient_elements_tier_six',
    'hltweaker:ancient_elements_tier_seven',
    'minecraft:netherite_pickaxe'
  ]
  netheriteOneTags.forEach(tag => e.add(tag, netheriteOnePickaxes))

  // ─── Plus two tier pickaxes ───
  const plusTwoTags = [
    'minecraft:tools',
    'forge:tools/pickaxes',
    'terramity:netherite_tier',
    'terramity:plus_one_tier',
    'terramity:plus_two_tier'
  ]
  const plusTwoPickaxes = [
    'composite_material:echoium_pickaxe',
    'ancient_elements:elementinium_pickaxe',
    'ancient_elements:hellstone_pickaxe',
    'ancient_elements:infernal_pickaxe',
    'ancient_elements:aetherium_pickaxe',
    'ancient_elements:frost_pickaxe',
    'ancient_elements:void_steel_pickaxe',
    'mekanismtools:refined_obsidian_pickaxe',
    'allthemodium:allthemodium_pickaxe',
    'allthemodium:vibranium_pickaxe',
    'armageddon_mod:elvenite_pickaxe',
    'armageddon_mod:elvenite_paxel',
    'armageddon_mod:voiderite_pickaxe',
    'armageddon_mod:the_hungery_pickaxe',
    'armageddon_mod:voiderite_paxel',
    'deeperdarker:warden_pickaxe',
    'hltweaker:ancient_elements_tier_eight',
    'hltweaker:ancient_elements_tier_nine',
    'enigmaticlegacy:etherium_pickaxe'
  ]
  plusTwoTags.forEach(tag => e.add(tag, plusTwoPickaxes))

  // ─── Plus three tier pickaxes ───
  const plusThreeTags = [
    'minecraft:tools',
    'forge:tools/pickaxes',
    'terramity:netherite_tier',
    'terramity:plus_one_tier',
    'terramity:plus_two_tier',
    'terramity:plus_three_tier'
  ]
  const plusThreePickaxes = [
    'composite_material:etherite_pickaxe',
    'ancient_elements:aeonite_pickaxe',
    'ancient_elements:galactrium_pickaxe',
    'ancient_elements:celestium_pickaxe',
    'ancient_elements:endrium_pickaxe',
    'ancient_elements:spectrillium_pickaxe',
    'armageddon_mod:helionite_pickaxe',
    'armageddon_mod:helionite_paxel',
    'armageddon_mod:bloody_pickaxe',
    'armageddon_mod:bloody_paxel',
    'allthemodium:unobtainium_pickaxe',
    'armageddon_mod:hollow_pickaxe',
    'composite_material:primitive_pickaxe',
    'cataclysm_tools:ignitium_pickaxe',
    'cataclysm_weaponery:ignitium_pickaxe',
    'hltweaker:ancient_elements_tier_ten',
    'hltweaker:ancient_elements_tier_twelve',
    'cataclysm_tools:cursium_pickaxe'
  ]
  plusThreeTags.forEach(tag => e.add(tag, plusThreePickaxes))

  // ─── Helionite armor tags ───
  ;['forge:armors', 'forge:armors/chestplates'].forEach(tag =>
    e.add(tag, [
      'armageddon_mod:helionite_armor_helmet',
      'armageddon_mod:helionite_armor_chestplate',
      'armageddon_mod:helionite_armor_leggings',
      'armageddon_mod:helionite_armor_boots'
    ])
  )

  // ─── Move crystal heart & cloud in a bottle: belt → charm ───
  const curioItems = [
    'artifacts:crystal_heart',
    'artifacts:cloud_in_a_bottle'
  ]

  ;['curios:charm', 'artifacts:slot/charm'].forEach(tag =>
    e.add(tag, curioItems)
  )
  ;['curios:belt', 'artifacts:slot/belt'].forEach(tag =>
    e.remove(tag, curioItems)
  )
})
