custom trim materials

im trying to make an ender pearl custom trim material for a datapack but I can put it in the smithing table but it does not let me put it on armor please help me

Continue to help post