How to make a texture changed based on a specific NBT tag

Im making an smp where there is custom items but idk how to make it so that a texture changes based on a specific NBT tag

Continue to help post