i wanna know how can i add dye able option to wearable .i mean like add to leg chest head or back.. any tutorial ? tnx
The color options parameter states what colors an item can be dyed. This is a sample from the human workout shirt. Its normal color is listed at the top of the list the rest of the colors are for when it is dyed. Now despite the fact that the shirt is the same blue as the dye it needs to be there or else it will not dye properly and you will end up with mud colors. The first option can be any color you wish it to be, weather its sky blue or rust red, but the other eleven color options should be like this. "colorOptions" : [ // BLUE { "ffca8a" : "96cbe7", "e0975c" : "5588d4", "a85636" : "344495", "6f2919" : "1a1c51" }, // BLACK { "ffca8a" : "838383", "e0975c" : "555555", "a85636" : "383838", "6f2919" : "151515" }, // GREY { "ffca8a" : "b5b5b5", "e0975c" : "808080", "a85636" : "555555", "6f2919" : "303030" }, // WHITE { "ffca8a" : "e6e6e6", "e0975c" : "b6b6b6", "a85636" : "7b7b7b", "6f2919" : "373737" }, // RED { "ffca8a" : "f4988c", "e0975c" : "d93a3a", "a85636" : "932625", "6f2919" : "601119" }, // ORANGE { "ffca8a" : "ffd495", "e0975c" : "ea9931", "a85636" : "af4e00", "6f2919" : "6e2900" }, // YELLOW { "ffca8a" : "ffffa7", "e0975c" : "e2c344", "a85636" : "a46e06", "6f2919" : "642f00" }, // GREEN { "ffca8a" : "b2e89d", "e0975c" : "51bd3b", "a85636" : "247824", "6f2919" : "144216" }, // BLUE { "ffca8a" : "96cbe7", "e0975c" : "5588d4", "a85636" : "344495", "6f2919" : "1a1c51" }, // PURPLE { "ffca8a" : "d29ce7", "e0975c" : "a451c4", "a85636" : "6a2284", "6f2919" : "320c40" }, // PINK { "ffca8a" : "eab3db", "e0975c" : "d35eae", "a85636" : "97276d", "6f2919" : "59163f" }, // BROWN { "ffca8a" : "ccae7c", "e0975c" : "a47844", "a85636" : "754c23", "6f2919" : "472b13" } ] }
so my base color should be blue. and what if i wanna patch the item i mean what i should write opp add what ? cause coding is not new to me but im not that expert. tnx
the base color can be anything. the dye colors should stay the same. if you want to patch it, it would be op replace
If your are altering an item in Starbound you will need to patch it (probably something like opp/replace/colorOptions/value though I have not tried it myself), but if you are simply creating a brand new item there is no patching involved. One more thing is that the sprites for your armors need to have a specific color scheme for Starbound to properly recolor it. Here are two samples from my own mod. The helmet looks like it is orange with a purple visor. The special orange color is recolored based on the color options value, it will not change the color if it is not totally correct; but the purple will remain the same. The orange will be changed into the first option and dyes will make it the other 11. When I make new armors I always have an item from Starbound as a color reference that I can copy the colors from. "colorOptions" : [ // CAMO GREEN { "ffca8a" : "d1e160", "e0975c" : "89a73a", "a85636" : "507244", "6f2919" : "244326" }, // BLACK { "ffca8a" : "838383", "e0975c" : "555555", "a85636" : "383838", "6f2919" : "151515" }, // GREY { "ffca8a" : "b5b5b5", "e0975c" : "808080", "a85636" : "555555", "6f2919" : "303030" }, // WHITE { "ffca8a" : "e6e6e6", "e0975c" : "b6b6b6", "a85636" : "7b7b7b", "6f2919" : "373737" }, // RED { "ffca8a" : "f4988c", "e0975c" : "d93a3a", "a85636" : "932625", "6f2919" : "601119" }, // ORANGE { "ffca8a" : "ffd495", "e0975c" : "ea9931", "a85636" : "af4e00", "6f2919" : "6e2900" }, // YELLOW { "ffca8a" : "ffffa7", "e0975c" : "e2c344", "a85636" : "a46e06", "6f2919" : "642f00" }, // GREEN { "ffca8a" : "b2e89d", "e0975c" : "51bd3b", "a85636" : "247824", "6f2919" : "144216" }, // BLUE { "ffca8a" : "96cbe7", "e0975c" : "5588d4", "a85636" : "344495", "6f2919" : "1a1c51" }, // PURPLE { "ffca8a" : "d29ce7", "e0975c" : "a451c4", "a85636" : "6a2284", "6f2919" : "320c40" }, // PINK { "ffca8a" : "eab3db", "e0975c" : "d35eae", "a85636" : "97276d", "6f2919" : "59163f" }, // BROWN { "ffca8a" : "ccae7c", "e0975c" : "a47844", "a85636" : "754c23", "6f2919" : "472b13" } ] }