i like to have a villager that trades a chestplate with a custom name that ignores attributes and damage value

Damage Leggings III Speed Helmet VI Health Chestplate IV

the villager buys these from players not selling them i like to have them sell no matter what attribute value they have and damage

so players sell them to villagers listed by name(with the colors) and lore ignores all other values how can i do this?


As far as I know it is not possible to ignore damage values for items in a villager trade, because this damage value is not only used to indicate damage on a tool or a piece of armor, but also to indicate the color for a shulker box, and for item types, such as different saplings and different kinds of stone. Since these attributes get a default value when they are not specified, you are unable to ignore them.