I know it is possible to give a player head with say ID of whatever skin you want but, I want to make it give the player head with the precise skin at the time the player is killed. I just don't want when the skin has changed the head to change to the new skin I want it to preserve the current skin when you are killed.
For instance, if Player X has Skin A, it gives the player head with Skin A, but if it has Skin B, it gives Skin B.
So the question is can you test for which skin ID it is and can you pass that skin ID onto the give command?
I can work out most of the command myself but I am not sure if there any way to test which skin is on to retrieve that skin ID and then set that skin ID and the skull you give.
This one gives you how you give the specific head with certain skin How to make custom player heads without making multiple accounts? just not how you can find it.