I modified a hat by using a /spawnitem command and "DrawablesGenerator" to deal with my images. Here is my problem,I used the "directives" commond to change image,when i used the page 1(A square picture ),the ICON could be displayed exactly but the player's hat was displayed in a lower position. when i used the page 2(The length is twice as long as the previous one, and it moves the hat up ,I applied the transparent area to judge the position of the hat ),the player's hat could be displayed exactly,but the ICON couldn't be displayed. I just used "directives" to modify the hat. /spawnitem bananahead 1 '{ "directives": "the color code" }'Thank you for your help and tolerance of my poor English.
The drawables generator isn't really meant for such items (unless you really know what you're doing and how to work with directives). I made the Hatter for that instead. Unlike the Drawables Generator, the Hatter can be accessed online at: https://silverfeelin.github.io/Starbound-Hatter/. You can also download the sources and run it offline, if you really need that.
Thank you for telling me the information I didn't know,and could you tell me why the icon is not properly displayed