help with armor trim datapack

So I made a datapack/resource pack using a template thingy and it mostly works. Its just the inventory item that keep bugging and showing me the black and pink glitch sqaure. I am willing to send the resource and datapacks if anyone trying to resolve my problem needs it.
Continue to help post