Hello! I am looking for a solution to a problem. I know it's possible, because I've seen a few mods out there that make this happen.
In short, I'm making 3d models for things like ears and hats and I want to find a way to pull color data from a player's skin so everyone can customize the colors of their own hats and/or ears. I also want the customizations to be visible to other players. I would like the data to be pulled from the "empty" spaces on the player skin (The black areas on the skin map that I added to this post). So say the player is wearing a hat, and they want part 1 of the hat to be brown, part 2 of the hat to be green, and part 3 of the hat to be purple, they can make the pixels in the upper left most part of the skin (or right or whatever assigned pixels) the specific shades of brown, green, and purple that they want the parts of the hat to be.
I've also seen a mod that will detect a specific color hex code to apply a different cosmetic feature based on which color code a specific pixel is. For example, if the upper most right pixel is #1a1a1a then you will have a cowboy hat, but if the code is #1b1b1b you'll have a super stylish fedora to tip at all the m'ladies you meet.
Once again, I'll reiterate that I want each player to be able to set the appearance for their own, individual character, and I want these things to be visible to other players on the server.