const tools = [ "minecraft:wooden_axe", "minecraft:stone_axe", "minecraft:iron_axe", "minecraft:diamond_axe", "minecraft:golden_axe", "minecraft:netherite_axe", "caverns_and_chasms:silver_axe", "caverns_and_chasms:necromium_axe", "minecraft:wooden_shovel", "minecraft:stone_shovel", "minecraft:iron_shovel", "minecraft:diamond_shovel", "minecraft:golden_shovel", "minecraft:netherite_shovel", "caverns_and_chasms:silver_shovel", "caverns_and_chasms:necromium_shovel", "minecraft:wooden_hoe", "minecraft:stone_hoe", "minecraft:iron_hoe", "minecraft:golden_hoe", "minecraft:diamond_hoe", "minecraft:netherite_hoe", "caverns_and_chasms:silver_hoe", "caverns_and_chasms:necromium_hoe", "minecraft:wooden_pickaxe", "minecraft:stone_pickaxe", "minecraft:iron_pickaxe", "minecraft:golden_pickaxe", "minecraft:diamond_pickaxe", "minecraft:netherite_pickaxe", "caverns_and_chasms:silver_pickaxe", "caverns_and_chasms:necromium_pickaxe", "minecraft:wooden_sword", "minecraft:stone_sword", "minecraft:iron_sword", "minecraft:golden_sword", "minecraft:diamond_sword", "minecraft:netherite_sword", "caverns_and_chasms:silver_sword", "caverns_and_chasms:necromium_sword", "minecraft:shield", "minecraft:bow", "minecraft:crossbow", "minecraft:fishing_rod", "minecraft:trident", "quark:pickarang", "quark:flamerang", "quark:echorang" ] const armors = [ "environmental:thief_hood", "minecraft:leather_helmet", "minecraft:turtle_helmet", "minecraft:chainmail_helmet", "minecraft:iron_helmet", "minecraft:golden_helmet", "minecraft:diamond_helmet", "minecraft:netherite_helmet", "caverns_and_chasms:silver_helmet", "caverns_and_chasms:necromium_helmet", "caverns_and_chasms:sanguine_helmet", "quark:forgotten_hat", "environmental:healer_pouch", "minecraft:leather_chestplate", "minecraft:chainmail_chestplate", "minecraft:iron_chestplate", "minecraft:golden_chestplate", "minecraft:diamond_chestplate", "minecraft:netherite_chestplate", "caverns_and_chasms:silver_chestplate", "caverns_and_chasms:necromium_chestplate", "caverns_and_chasms:sanguine_chestplate", "environmental:architect_belt", "environmental:yak_pants", "minecraft:leather_leggings", "minecraft:chainmail_leggings", "minecraft:iron_leggings", "minecraft:golden_leggings", "minecraft:diamond_leggings", "minecraft:netherite_leggings", "caverns_and_chasms:silver_leggings", "caverns_and_chasms:necromium_leggings", "caverns_and_chasms:sanguine_leggings", "environmental:wanderer_boots", "minecraft:leather_boots", "minecraft:chainmail_boots", "minecraft:iron_boots", "minecraft:golden_boots", "minecraft:diamond_boots", "minecraft:netherite_boots", "caverns_and_chasms:silver_boots", "caverns_and_chasms:necromium_boots", "caverns_and_chasms:sanguine_boots" ] ItemEvents.modification(event => { //const whitelist = Ingredient.of(/minecraft:.*/); tools.forEach(tool => { console.info(tool); /*if (whitelist.test(tool)) { console.info('pass'); }*/ event.modify(tool, item => { item.maxDamage = 1; }); }); armors.forEach(armor => { console.info(armor); event.modify(armor, item => { item.maxDamage = 1; }); }); });