Quote from Lithimlin
I was wondering if it is possible to give the player an item that shoots wither skulls and if these wither skulls could somehow be colored as well.
Maybe by right clicking with a colored leather cap when you don't wear one and it will detect that and then give the player another leather cap of the same color and deletes the cap he wears...
But I have no clue how to make it work so that I can make it shoot a wither skull in the direction the player looks.
It would be great, if someone could help me.
There is no way to color the wither skulls. Also, all wither skulls spawned from a command block will not be visible. However, if you want to have a mechanism that allows you to shoot depending on the player's direction, you would require hundreds of command blocks using rotational parameters.
I've created a mechanism that uses those parameters to simulate throwable TNT.
It's possible to do this with wither skulls; however, you will not be able to see them and unlike being shot from withers, they will loose velocity over time. This could lead to the existence of excess invisible wither skulls that you will not be aware of that exist in your world.
Here is a filter created by CrushedPixel that will simply your work if you decide to do something with rotational parameters.