I'm trying to prevent armors from dropping from Endermans. But this doesn't work because the armors have different durability. Is there a way to make the code detect all nbts/durabilities?
event.addEntityLootModifier("minecraft:enderman").removeLoot(Item.of("minecraft:iron_helmet"));
event.addEntityLootModifier("minecraft:enderman").removeLoot(Item.of("minecraft:iron_chestplate"));
event.addEntityLootModifier("minecraft:enderman").removeLoot(Item.of("minecraft:iron_leggings"));
event.addEntityLootModifier("minecraft:enderman").removeLoot(Item.of("minecraft:iron_boots"));
});```