I need some help with a 1.21.1 resource pack.

I am trying to make a shield that when it has the Custom Model Data of 1, becomes my texture, and when it doesn't, stay as a normal shield. I don't know why my shield is black and purple.

Continue to help post