Interchanging Item Texture

I kind of want to do what armor trims do but for items, where I can have multiple different "types" and modify the texture if an item depending on that type without having to make a separate texture file for every single combination. like a sword with an exchangeable hilt color/shape depending on a material, and it could go on any sword. is this even possible? Ive seen things kinda like this with horse and tropical fish but idk if its possible for items.

Continue to help post