   
ItemEvents.modification(event => {
  
  /*const HelmetDurabilityModifier = 13
  const ChestplateDurabilityModifier = 15
  const LeggingsDurabilityModifier = 16
  const BootsDurabilityModifier = 11*/


  var colors = ['red',
    'blue',
    'white',
    'gray',
    'light_gray',
    'black',
    'purple',
    'magenta',
    'yellow',
    'green',
    'lime',
    'light_blue',
    'blue',
    'orange',
    'pink',
    'brown', 
    'cyan']

  let stacking16 = ['minecraft:potion',
    'minecraft:saddle',
    "minecraft:writable_book",
    "enigmaticlegacy:recall_potion",
    "enigmaticlegacy:mending_mixture",
    "minecraft:splash_potion",
    "minecraft:lingering_potion",
    "enigmaticlegacy:common_potion",
    "enigmaticlegacy:common_potion_splash",
    "enigmaticlegacy:common_potion_lingering",
    "enigmaticlegacy:ultimate_potion",
    "enigmaticlegacy:ultimate_potion_splash",
    "enigmaticlegacy:ultimate_potion_lingering"]

  let stacking64 = ["minecraft:snowball",
    "twilightforest:meef_stroganoff",
    "ender_pearl",
    "minecraft:cake",
    "brewinandchewin:pizza",
    'minecraft:beetroot_soup',
    "farmersdelight:cooking_pot",
    'farmersdelight:cooked_rice',
    'farmersdelight:bone_broth',
    'farmersdelight:beef_stew',
    'farmersdelight:chicken_soup',
    'farmersdelight:vegetable_soup',
    'farmersdelight:fish_stew',
    'farmersdelight:fried_rice',
    'farmersdelight:squid_ink_pasta',
    'farmersdelight:ratatouille',
    'farmersdelight:steak_and_potatoes',
    'farmersdelight:vegetable_noodles',
    'farmersdelight:roasted_mutton_chops',
    'farmersdelight:mushroom_rice',
    'farmersdelight:pasta_with_mutton_chop',
    'farmersdelight:pasta_with_meatballs',
    'farmersdelight:bacon_and_eggs',
    'farmersdelight:noodle_soup',
    'farmersdelight:baked_cod_stew',
    'farmersdelight:pumpkin_soup',
    'farmersdelight:grilled_salmon',
    'farmersdelight:roast_chicken_block',
    'farmersdelight:roast_chicken',
    'farmersdelight:stuffed_pumpkin_block',
    'farmersdelight:stuffed_pumpkin',
    'farmersdelight:honey_glazed_ham_block',
    'farmersdelight:honey_glazed_ham',
    'farmersdelight:shepherds_pie_block',
    'farmersdelight:shepherds_pie',
    'farmersdelight:rice_roll_medley_block',
    'farmersdelight:dog_food',
    'farmersdelight:horse_feed',
    'farmersdelight:apple_cider',
    'farmersdelight:hot_cocoa',
    'farmersdelight:milk_bottle',
    'farmersdelight:nether_salad',
    'farmersdelight:mixed_salad',
    'farmersdelight:fruit_salad',
    'farmersdelight:glow_berry_custard',
    'fruitsdelight:mangosteen_tea',
    'biomeswevegone:aloe_vera_juice',
    'sob:cactus_juice',
    'fruitsdelight:lychee_cherry_tea',
    'fruitsdelight:kiwi_juice',
    'fruitsdelight:pear_juice',
    'fruitsdelight:lemon_juice',
    'fruitsdelight:orange_juice',
    'fruitsdelight:hamimelon_juice',
    'sob:glittering_gloop',
    'fruitsdelight:peach_tea',
    'fruitsdelight:mango_tea',
    'fruitsdelight:hawberry_tea',
    'arsdelight:source_berry_tea',
    'arsdelight:frostaya_tea',
    'arsdelight:bombegrante_tea',
    'arsdelight:bastion_tea',
    'arsdelight:mendosteen_tea',
    'create:builders_tea',
    'arsdelight:arch_soup',
    'arsdelight:bastion_hornbeer',
    'arsdelight:mendosteen_hornbeer',
    'arsdelight:frostaya_hornbeer',
    'arsdelight:bombegrante_hornbeer',
    'arsdelight:source_berry_hornbeer']
 
  let tooltype =['pickaxe','shovel','hoe','axe']
  
  let ArmorSlot = ['helmet','chestplate','boots','leggings']

  let NatureArmorSlot = ['helmet','chest','pants','shoes']

  let ArsArmorSlot =['hood','robes','leggings','boots']

  let ArsDurabilityBuffs = ['sorcerer','arcanist','battlemage']

  let DurabilityBuffs= ['minecraft:iron',
    'minecraft:leather',
    'minecraft:chainmail',
    'minecraft:diamond',
    'minecraft:golden',
    'minecraft:netherite',
    'thermal:diving',
    'aether:zanite',
    'deep_aether:skyjade',
    "irons_spellbooks:wandering_magician",
    "irons_spellbooks:pumpkin",
    "thermal:beekeeper",
    "twilightforest:fiery",
    "twilightforest:ironwood",
    "twilightforest:steeleaf",
    "twilightforest:knightmetal",
    "twilightforest:arctic",
    "twilightforest:yeti",
    "kubejs:copper",
    "kubejs:bronze",
    "kubejs:lead",
    "kubejs:silver",
    "aether:gravitite",
    "wizards_reborn:arcane_gold",
    "aether:neptune",
    "aether:obsidian",
    "wizards_reborn:inventor_wizard",
    "aether:phoenix",
    "irons_spellbooks:netherite_mage",
    "irons_spellbooks:cultist",
    "irons_spellbooks:priest",
    "irons_spellbooks:pyromancer",
    "irons_spellbooks:cryomancer",
    "irons_spellbooks:shadowwalker",
    "irons_spellbooks:plagued",
    "irons_spellbooks:archevoker",
    "deep_aether:stormforged",
    "deep_aether:stratus",
    ]

    let Unbreakables = [
      "constructionwand:stone_wand",
      "constructionwand:iron_wand",
      "constructionwand:diamond_wand",
      "constructionwand:infinity_wand",
      "aether:flaming_sword",
      "ancient_aether:ancient_sword",
      "enigmaticlegacy:enigmatic_elytra",
      "aether:holy_sword",
      "aether:lightning_sword",
      'umbral_skies:yeti_gloves',
      'umbral_skies:arctic_gloves',
      'umbral_skies:phantom_gloves',
      'umbral_skies:knightmetal_gloves',
      'umbral_skies:steeleaf_gloves',
      'umbral_skies:fiery_gloves',
      'umbral_skies:ironwood_gloves',
      'umbral_skies:naga_gloves',
      'aether:obsidian_gloves',
      'aether:phoenix_gloves',
      'deep_aether:stormforged_gloves',
      'aether:neptune_gloves',
      'deep_aether:stratus_gloves',
      'ancient_aether:valkyrum_gloves',
      'aether:gravitite_gloves',
      'deep_aether:skyjade_gloves',
      'aether:zanite_gloves',
      'aether:netherite_gloves',
      'aether:diamond_gloves',
      'aether:golden_gloves',
      'aether:iron_gloves',
      'aether:chainmail_gloves',
      'aether:leather_gloves',
      'deep_aether:wind_shield',
      'deep_aether:slider_eye',
      'aether:shield_of_repulsion',
      'deep_aether:spooky_ring',
      'aether:ice_pendant',
      'deep_aether:stratus_ring', 
      'deep_aether:gravitite_ring',
      "aether:ice_ring",
      "aether:vampire_blade",
      "aether:sentry_boots",
      "aether:pig_slayer",
      "aether:hammer_of_kingbdogz"
    ]

    let UnbreakableArmor = [
      "ancient_aether:valkyrum",
      "thermal:hazmat",
      "enigmaticlegacy:etherium"
    ]

    let NatureDurabilityBuffs = [
      'infused_iron',
      'sky',
      'depth']
  
  let FireResistant = ["rubinated_nether:ruby",
    "rubinated_nether:ruby_shard",
    "rubinated_nether:molten_ruby",
    "rubinated_nether:molten_ruby_nugget",
    "rubinated_nether:molten_ruby_ore",
    "rubinated_nether:nether_ruby_ore",
    "rubinated_nether:rubinated_blackstone",
    "thermal:ruby",
    "thermal:ruby_block",
    "minecraft:glowstone",
    "minecraft:glowstone_dust",
    "immersiveengineering:ore_uranium",
    "immersiveengineering:raw_uranium",
    "minecraft:nether_quartz_ore",
    "minecraft:quartz"
  ]

  Unbreakables.forEach(id => {
    event.modify(id,item=>{
      item.maxDamage = -1
    })
    
  });
  
  colors.forEach(color => {
    event.modify("minecraft:"+color+"_bed", item=>{
      item.maxStackSize = 64
    })
  });
  FireResistant.forEach(id => {
    event.modify(id, item=>{
      item.fireResistant = true
    })
  });


  stacking16.forEach((id)=>{

    event.modify(id, item=>{
      item.maxStackSize = 16
    })
  })

  stacking64.forEach((id)=>{

    event.modify(id, item=>{
      item.maxStackSize = 64
    })
  })
  //==========================================Knives
  event.modify("farmersdelight:iron_knife", item=>{
    item.maxDamage = 512
  })

  event.modify("farmersdelight:diamond_knife", item=>{
    item.maxDamage = 2048
  })

  event.modify("farmersdelight:netherite_knife", item=>{
    item.maxDamage = 4096
  })

  event.modify("farmersdelight:golden_knife", item=>{
    item.maxDamage = 512,
    item.digSpeed = 8
  })

  event.modify('farmersdelight:flint_knife', item=>{
    item.maxDamage = 128
  })

  //========================================Swords

  event.modify("twilightforest:knightmetal_sword", item=>{
    item.maxDamage = 1024
  })

  event.modify("twilightforest:glass_sword", item=>{
    item.maxDamage = 512,
    item.attackSpeed = -2.0,
    item.attackDamage = 3
  })
  event.modify('minecraft:iron_sword', item=>{
    item.maxDamage = 512
  })

  event.modify('minecraft:golden_sword', item=>{
    item.maxDamage = 512
  })

  event.modify('minecraft:wooden_sword', item=>{
    item.maxDamage = 128
  })

  event.modify('minecraft:stone_sword', item=>{
    item.maxDamage = 128
  })

  event.modify('naturesaura:infused_iron_sword', item=>{
    item.maxDamage = 1536
  })

  event.modify('deep_aether:skyjade_sword', item=>{
    item.maxDamage = 1024,
    item.attackDamage = 4
  })

  event.modify('aether:zanite_sword', item=>{
    item.maxDamage = 1024
  })

  event.modify('kubejs:golden_magic_feather', item=>{
    item.maxDamage = 64
  })

  event.modify('kubejs:fiery_magic_feather', item=>{
    item.maxDamage = 512
  })

  event.modify('kubejs:rainbow_magic_feather', item=>{
    item.maxDamage = 1024
  })

  event.modify('minecraft:diamond_sword', item=>{
    item.maxDamage = 2048
  })

  event.modify('minecraft:netherite_sword', item=>{
    item.maxDamage = 4096
  })

  event.modify("twilightforest:fiery_sword",item=>{
    item.attackDamage = 1
  })

  event.modify("deep_aether:storm_sword",item=>{
    item.attackDamage = 3
  })

  event.modify("twilightforest:ice_sword",item=>{
    item.attackDamage = 3
  })

  event.modify("tide:blazing_swordfish", item=>{
    item.maxDamage = 1024,
    item.attackSpeed = -2.0,
    item.attackDamage = 2
  })
  ////========================================Gloves
  function gloves(material,durability)
  {
    event.modify("aether:"+material+"_gloves", item=>{
      item.maxDamage = durability
    })
  }

  function otherGloves(mod,material,durability)
  {
    event.modify(mod+":"+material+"_gloves", item=>{
      item.maxDamage = durability
    })
  }

  gloves("golden",512)
  gloves("iron",512)
  gloves("chain",512)
  gloves("leather",128)
  gloves("diamond",2048)
  gloves("netherite",4096)
  gloves("zanite",512)
  otherGloves("deep_aether","skyjade",512)
  otherGloves("umbral_skies","ironwood",512)
  otherGloves("umbral_skies","naga",256)
  otherGloves("umbral_skies","steeleaf",512)
  otherGloves("umbral_skies","knightmetal",1024)
  otherGloves("umbral_skies","fiery",1024)
  
  ////========================================Tools

  

  const KnighmetalTools = ["pickaxe","axe"]

  KnighmetalTools.forEach(type => {
    event.modify("twilightforest:knightmetal_"+type, item=>{
      item.maxDamage = 1024
      item.digSpeed = 6
     })
  });
  

  event.modify("sophisticatedstorage:super_packing_tape", item=>{
    item.maxDamage = 2137
  })
  
  tooltype.forEach((id) => {
    
    event.modify('minecraft:wooden_'+id, item => {
      item.digSpeed = 6,
      item.maxDamage = 128
    })

    event.modify('minecraft:golden_'+id, item=>{
        item.maxDamage = 512,
        item.digSpeed = 8
        // +1 Luck and +2 looting or fortune
    })

    event.modify("wizards_reborn:arcane_gold_"+id, item=>{
        item.maxDamage = 1024,
        item.digSpeed = 9
        // +1 Luck and +2 looting or fortune
    })

    event.modify('minecraft:stone_'+id, item => {
      item.maxDamage = 128
    })

    event.modify('minecraft:iron_'+id, item=>{
      item.maxDamage = 512
      // +0.5 block range
    })

    event.modify('naturesaura:infused_iron_'+id, item=>{
      item.maxDamage = 1536,
      item.digSpeed = 7
      // +1 block range
    })

    event.modify('deep_aether:skyjade_'+id, item=>{
      item.maxDamage = 1024
      // +0.5 block range
    })

    event.modify('aether:zanite_'+id, item=>{
      item.maxDamage = 1024
      // +1 block range
    })

    event.modify('minecraft:diamond_'+id, item=>{
      item.maxDamage = 2048
      // ??+1 block range
    })

    event.modify('minecraft:netherite_'+id, item=>{
      item.maxDamage = 4096
      // ??+1 block range
    })

    event.modify('wizards_reborn:arcane_wood_'+id, item=>{
      item.digSpeed = 3,
      item.maxDamage = 16
      
    })

    event.modify('wizards_reborn:innocent_wood_'+id, item=>{
      item.digSpeed = 5,
      item.maxDamage = 256
      
    })

    event.modify("immersiveengineering:"+id+"_steel", item=>{
      item.digSpeed = 7.5,
      item.maxDamage = -1
      // ??+1 block range
    })

    event.modify("twilightforest:steeleaf_"+id, item=>{
      item.maxDamage = 512
    })

   
  })
   event.modify("twilightforest:steeleaf_sword", item=>{
      item.attackDamage = 3,
      item.maxDamage = 512
    })

    event.modify("twilightforest:ironwood_sword", item=>{
      item.attackDamage = 4
    })

    event.modify("immersiveengineering:sword_steel", item=>{
      item.maxDamage = -1
      // ??+1 block range
    })

    event.modify("immersiveengineering:sword_steel", item=>{
      item.maxDamage = -1
      // ??+1 block range
    })

    event.modify("kubejs:steel_knife", item=>{
      item.maxDamage = -1
      // ??+1 block range
    })
  //========================================Armor

  /// ZANITE
  event.modify("aether:zanite_helmet", item=>{
    item.armorProtection = 3,
    item.armorKnockbackResistance = 0.1
    item.armorToughness = 0.5
  })

  event.modify("aether:zanite_chestplate", item=>{
    item.armorProtection = 6,
    item.armorKnockbackResistance = 0.1
    item.armorToughness = 0.5
  })

  event.modify("aether:zanite_leggings", item=>{
    item.armorProtection = 4,
    item.armorKnockbackResistance = 0.1
    item.armorToughness = 0.5
  })

  event.modify("aether:zanite_boots", item=>{
    item.armorProtection = 3,
    item.armorKnockbackResistance = 0.1
    item.armorToughness = 0.5
  })

  /// SKYJADE
  event.modify("deep_aether:skyjade_helmet", item=>{
    item.armorProtection = 2
  
  })

  event.modify("deep_aether:skyjade_chestplate", item=>{
    item.armorProtection = 6.5
   
  })

  event.modify("deep_aether:skyjade_leggings", item=>{
    item.armorProtection = 4.5
    
  })

  event.modify("deep_aether:skyjade_boots", item=>{
    item.armorProtection = 2
    
  })


  /// DIAMOND
  event.modify("minecraft:diamond_helmet", item=>{
    item.armorProtection = 2,
    item.armorToughness = 1
  })  

  event.modify("minecraft:diamond_chestplate", item=>{
    item.armorProtection = 7,
    item.armorToughness = 1
  }) 
  
  event.modify("minecraft:diamond_leggings", item=>{
    item.armorProtection = 5,
    item.armorToughness = 1
  }) 

  event.modify("minecraft:diamond_boots", item=>{
    item.armorProtection = 2,
    item.armorToughness = 1
  })

  /// NETHERITE
   event.modify("minecraft:netherite_helmet", item=>{
    
    item.armorToughness = 1
  })  

  event.modify("minecraft:netherite_chestplate", item=>{
    
    item.armorToughness = 1
  }) 
  
  event.modify("minecraft:netherite_leggings", item=>{
    
    item.armorToughness = 1
  }) 

  event.modify("minecraft:netherite_boots", item=>{
    
    item.armorToughness = 1
  })

  /// IRONWOOD
  event.modify("twilightforest:ironwood_helmet", item=>{
    item.armorProtection = 1,
    item.armorKnockbackResistance = 0.05

  })

  event.modify("twilightforest:ironwood_chestplate", item=>{
    item.armorProtection = 4,
    item.armorKnockbackResistance = 0.05
  })

  event.modify("twilightforest:ironwood_leggings", item=>{
    item.armorProtection = 3,
    item.armorKnockbackResistance = 0.05
  })

  event.modify("twilightforest:ironwood_boots", item=>{
    item.armorProtection = 1,
    item.armorKnockbackResistance = 0.05
  })

  event.modify("twilightforest:steeleaf_helmet", item=>{
    item.armorProtection = 2,
    item.armorKnockbackResistance = 0.05

  })


  /// STEELEAF
  event.modify("twilightforest:steeleaf_chestplate", item=>{
    item.armorProtection = 7,
    item.armorKnockbackResistance = 0.05
  })

  event.modify("twilightforest:steeleaf_leggings", item=>{
    item.armorProtection = 5,
    item.armorKnockbackResistance = 0.05
  })

  event.modify("twilightforest:steeleaf_boots", item=>{
    item.armorProtection = 2,
    item.armorKnockbackResistance = 0.05
  })

  event.modify("twilightforest:steeleaf_helmet", item=>{
    item.armorProtection = 2,
    item.armorToughness = 0
  })

  /// PHANTOM
  event.modify("twilightforest:phantom_chestplate", item=>{
    item.armorKnockbackResistance = 0.1
  })

  event.modify("twilightforest:phantom_helmet", item=>{
    item.armorKnockbackResistance = 0.1
  })

  /// FIERY

  event.modify("twilightforest:fiery_boots", item=>{
    item.armorProtection = 3,
    item.armorToughness = 0
  })

  event.modify("twilightforest:fiery_chestplate", item=>{
    item.armorProtection = 7,
    item.armorToughness = 0
  })

  event.modify("twilightforest:fiery_leggings", item=>{
    item.armorProtection = 6,
    item.armorToughness = 0
  })

  event.modify("twilightforest:fiery_boots", item=>{
    item.armorProtection = 2,
    item.armorToughness = 0
  })

  /// BOTANIST/INFUSED IRON
  event.modify("naturesaura:infused_iron_helmet", item=>{
    item.armorProtection = 3,
    item.armorToughness = 0
  })

  event.modify("naturesaura:infused_iron_chest", item=>{
    item.armorProtection = 7,
    item.armorToughness = 0
  })

   event.modify("naturesaura:infused_iron_pants", item=>{
    item.armorProtection = 6,
    item.armorToughness = 0
  })

  event.modify("naturesaura:infused_iron_shoes", item=>{
    item.armorProtection = 3,
    item.armorToughness = 0
  })

  // ARCANE GOLD

  event.modify("wizards_reborn:arcane_gold_helmet", item=>{
    item.armorProtection = 3,
    item.armorToughness = 1
  })

  event.modify("wizards_reborn:arcane_gold_chestplate", item=>{
    item.armorProtection = 7.5,
    item.armorToughness = 1
  })

  event.modify("wizards_reborn:arcane_gold_leggings", item=>{
    item.armorProtection = 6.5,
    item.armorToughness = 1
  })

  event.modify("wizards_reborn:arcane_gold_boots", item=>{
    item.armorProtection = 2,
    item.armorToughness = 1
  })

  // GRAVITITE

  event.modify("aether:gravitite_helmet", item=>{
    item.armorProtection = 4,
    item.armorToughness = 2
  })

  event.modify("aether:gravitite_chestplate", item=>{
    item.armorProtection = 11,
    item.armorToughness = 2
  })

  event.modify("aether:gravitite_leggings", item=>{
    item.armorProtection = 9,
    item.armorToughness = 2
  })

  event.modify("aether:gravitite_boots", item=>{
    item.armorProtection = 4,
    item.armorToughness = 2
  })

  // STRATUS

  event.modify("deep_aether:stratus_helmet", item=>{
    item.armorProtection = 5,
    item.armorToughness = 3
  })

  event.modify("deep_aether:stratus_chestplate", item=>{
    item.armorProtection = 14,
    item.armorToughness = 3
  })

  event.modify("deep_aether:stratus_leggings", item=>{
    item.armorProtection = 12,
    item.armorToughness = 3
  })

  event.modify("deep_aether:stratus_boots", item=>{
    item.armorProtection = 5,
    item.armorToughness = 3
  })

  // OBSIDIAN

  event.modify("aether:obsidian_helmet", item=>{
    item.armorProtection = 5,
    item.armorToughness = 3,
    item.armorKnockbackResistance = 0.15
  })

  event.modify("aether:obsidian_chestplate", item=>{
    item.armorProtection = 12,
    item.armorToughness = 3,
    item.armorKnockbackResistance = 0.15
  })

  event.modify("aether:obsidian_leggings", item=>{
    item.armorProtection = 9,
    item.armorToughness = 3,
    item.armorKnockbackResistance = 0.15
  })

  event.modify("aether:obsidian_boots", item=>{
    item.armorProtection = 4,
    item.armorToughness = 3,
    item.armorKnockbackResistance = 0.15
  })

  // KNIGHTMETAL

  event.modify("twilightforest:knightmetal_helmet", item=>{
    item.armorProtection = 3.5,
    item.armorToughness = 1,
    item.armorKnockbackResistance = 0.15
  })

  event.modify("twilightforest:knightmetal_chestplate", item=>{
    item.armorProtection = 8.5,
    item.armorToughness = 1,
    item.armorKnockbackResistance = 0.15
  })

  event.modify("twilightforest:knightmetal_leggings", item=>{
    item.armorProtection = 7.5,
    item.armorToughness = 1,
    item.armorKnockbackResistance = 0.15
  })

  event.modify("twilightforest:knightmetal_boots", item=>{
    item.armorProtection = 2.5,
    item.armorToughness = 1,
    item.armorKnockbackResistance = 0.15
  })

  // NEPTUNE

  event.modify("aether:neptune_helmet", item=>{
    item.armorProtection = 3.5,
    item.armorToughness = 1
  })

  event.modify("aether:neptune_chestplate", item=>{
    item.armorProtection = 8.5,
    item.armorToughness = 1
  })

  event.modify("aether:neptune_leggings", item=>{
    item.armorProtection = 7.5,
    item.armorToughness = 1
  })

  event.modify("aether:neptune_boots", item=>{
    item.armorProtection = 2.5,
    item.armorToughness = 1
  })

  // SKYSEEKER

  event.modify("naturesaura:sky_helmet", item=>{
    item.armorProtection = 4,
    item.armorToughness = 2
  })

  event.modify("naturesaura:sky_chest", item=>{
    item.armorProtection = 11,
    item.armorToughness = 2
  })

  event.modify("naturesaura:sky_pants", item=>{
    item.armorProtection = 9,
    item.armorToughness = 2
  })

  event.modify("naturesaura:sky_shoes", item=>{
    item.armorProtection = 4,
    item.armorToughness = 2
  })

  // DEPTH

  event.modify("naturesaura:depth_helmet", item=>{
    item.armorProtection = 6,
    item.armorToughness = 3,
    item.armorKnockbackResistance = 0.25
  })

  event.modify("naturesaura:depth_chest", item=>{
    item.armorProtection = 15,
    item.armorToughness = 3,
    item.armorKnockbackResistance = 0.25
  })

  event.modify("naturesaura:depth_pants", item=>{
    item.armorProtection = 12,
    item.armorToughness = 3,
    item.armorKnockbackResistance = 0.25
  })

  event.modify("naturesaura:depth_shoes", item=>{
    item.armorProtection = 6,
    item.armorToughness = 3,
    item.armorKnockbackResistance = 0.25
  })

  // PHOENIX

  event.modify("aether:phoenix_helmet", item=>{
    item.armorProtection = 3.5,
    item.armorToughness = 3
  })

  event.modify("aether:phoenix_chestplate", item=>{
    item.armorProtection = 10.5,
    item.armorToughness = 3
  })

  event.modify("aether:phoenix_leggings", item=>{
    item.armorProtection = 8.5,
    item.armorToughness = 3
  })

  event.modify("aether:phoenix_boots", item=>{
    item.armorProtection = 3.5,
    item.armorToughness = 3
  })

  // STORMFORGED

   event.modify("deep_aether:stormforged_helmet", item=>{
    item.armorProtection = 5.5,
    item.armorToughness = 3
  })

  event.modify("deep_aether:stormforged_chestplate", item=>{
    item.armorProtection = 12.5,
    item.armorToughness = 3
  })

  event.modify("deep_aether:stormforged_leggings", item=>{
    item.armorProtection = 10.5,
    item.armorToughness = 3
  })

  event.modify("deep_aether:stormforged_boots", item=>{
    item.armorProtection = 5.5,
    item.armorToughness = 3
  })

  // STEEL

   event.modify("immersiveengineering:armor_steel_helmet", item=>{
    item.maxDamage = -1,
    item.armorProtection = 3.5
    item.armorToughness = 0
  })

  event.modify("immersiveengineering:armor_steel_chestplate", item=>{
    item.maxDamage = -1,
    item.armorProtection = 9,
    item.armorToughness = 0
  })

  event.modify("immersiveengineering:armor_steel_leggings", item=>{
    item.maxDamage = -1,
    item.armorProtection = 7,
    item.armorToughness = 0
  })

  event.modify("immersiveengineering:armor_steel_boots", item=>{
    item.maxDamage = -1,
    item.armorProtection = 3.5,
    item.armorToughness = 0
  })


  // VALKYRUM

   event.modify("ancient_aether:valkyrum_helmet", item=>{
    item.armorProtection = 5,
    item.armorToughness = 3
  })

  event.modify("ancient_aether:valkyrum_chestplate", item=>{
    item.armorProtection = 15,
    item.armorToughness = 3
  })

  event.modify("ancient_aether:valkyrum_leggings", item=>{
    item.armorProtection = 13,
    item.armorToughness = 3
  })

  event.modify("ancient_aether:valkyrum_boots", item=>{
    item.armorProtection = 5,
    item.armorToughness = 3
  })

  // ETHERIUM

   event.modify("enigmaticlegacy:etherium_helmet", item=>{
    item.armorProtection = 6,
    item.armorToughness = 3
  })

  event.modify("enigmaticlegacy:etherium_chestplate", item=>{
    item.armorProtection = 18,
    item.armorToughness = 3
  })

  event.modify("enigmaticlegacy:etherium_leggings", item=>{
    item.armorProtection = 14,
    item.armorToughness = 3
  })

  event.modify("enigmaticlegacy:etherium_boots", item=>{
    item.armorProtection = 6,
    item.armorToughness = 3
  })


  event.modify("quark:forgotten_hat", item=>{
    item.maxDamage = 110
  })

  event.modify("deep_aether:skyjade_helmet", item=>{
    item.maxDamage = 165
  })

  event.modify("deep_aether:skyjade_boots", item=>{
    item.maxDamage = 195
  })

  event.modify("deep_aether:skyjade_leggings", item=>{
    item.maxDamage = 225
  })
  
  event.modify("deep_aether:skyjade_chestplate", item=>{
    item.maxDamage = 240
  })

  event.modify("minecraft:golden_helmet", item=>{
    item.maxDamage = 165
  })

  event.modify("minecraft:golden_boots", item=>{
    item.maxDamage = 195
  })

  event.modify("minecraft:golden_leggings", item=>{
    item.maxDamage = 225
  })
  
  event.modify("minecraft:golden_chestplate", item=>{
    item.maxDamage = 240
  })

  event.modify('immersiveengineering:glider', item=>{
    item.maxDamage = 512
  })

  event.modify('minecraft:elytra', item=>{
    item.maxDamage = 512
  })

  event.modify('alexsmobs:tarantula_hawk_elytra', item=>{
    item.maxDamage = 1024,
    item.armorProtection = 8
  })


  event.modify('alexsmobs:tarantula_hawk_elytra', item=>{
    item.maxDamage = 1024,
    item.armorProtection = 8
  })

  event.modify("immersiveengineering:armor_faraday_helmet", item=>{
    item.maxDamage = -1
  })

  event.modify("immersiveengineering:armor_faraday_chestplate", item=>{
    item.maxDamage = -1
  })

  event.modify("immersiveengineering:armor_faraday_leggings", item=>{
    item.maxDamage = -1
  })

  event.modify("immersiveengineering:armor_faraday_boots", item=>{
    item.maxDamage = -1
  })

  DurabilityBuffs.forEach(id => {

    ArmorSlot.forEach(slot => {

      event.modify(id+"_"+slot, item=>{

        item.maxDamage = item.maxDamage*2
      })
    });
  });

  UnbreakableArmor.forEach(id => {

    ArmorSlot.forEach(slot => {

      event.modify(id+"_"+slot, item=>{

        item.maxDamage = -1
      })
    });
  });

  NatureDurabilityBuffs.forEach(id => {

    NatureArmorSlot.forEach(slot => {

      event.modify("naturesaura:"+id+"_"+slot, item=>{

        item.maxDamage = item.maxDamage*2
      })
    });
  });

  ArsDurabilityBuffs.forEach(id => {

    ArsArmorSlot.forEach(slot => {

      event.modify("ars_nouveau:"+id+"_"+slot, item=>{

        item.maxDamage = item.maxDamage*2
      })
    });
  });

  ///======================================== Hammers & Excavators

  /*const AoeTools = ["excavator","mining_hammer"]

  AoeTools.forEach(id => {

    event.modify("kubejs:primitive_"+id, item=>{
      item.maxDamage = 2048
      item.digSpeed = 1.5
    })

    event.modify("kubejs:basic_"+id, item=>{
      item.maxDamage = 4096
      item.digSpeed = 3
    })

    event.modify("kubejs:sturdy_"+id, item=>{
      item.maxDamage = 8192
      item.digSpeed = 5
    })
    
  });*/

  
  ///======================================== Other

  event.modify("create:sand_paper", item=>{
    item.maxDamage = 256
  })

  event.modify("create:red_sand_paper", item=>{
    item.maxDamage = 312
  })

  event.modify("create:extendo_grip", item=>{
    item.maxDamage = -1
  })

  event.modify("create:potato_cannon", item=>{
    item.maxDamage = 1024
  })

  event.modify("supplementaries:wrench", item=>{
    item.maxDamage = 1024
  })


  
})
