Im trying to overhaul the flashlights in starbound, starting with the standard blue one.. I have custom textures waiting for it but for now i just want it to understand my merge code. Heres the code: Simple code in flashlight.flashlight, if im not mistaken this will make the light a light yellow tint. (it is R, G, B i assume.) Heres the error it spits out: The object appears ingame in the shiplocker as "Perfectly generic item" cube. So whats up with this error? I figure as soon as i get this problem out the window i can just add this to the code to get my textures ingame: to make it work. (seems logical) Thanks in advance for the help regarding the error i get.
hello try using the overwrite command Code: { "__merge" : [[ "overwrite", "lightColor" ]], "lightColor" : [255,255,14] } also you must spawn in or generate a new flashlight.
Yeah, i was thinking of spawning it in place of the original blue flashlight via the defaulttreasure file. Gonna try your code example and report back here with my findings.
If all he's doing is altering the existing flashlight, then no, he doesn't need to spawn in a new one. I just tested it and my existing flashlight's beam changed colour.
You actually need to include the entire stanza that you're trying to change. I ran into this issue trying to make the Lantern on a Stick twice as bright. This did not work: Code: { "__merge" : [], "statusEffects" : [ { "amount" : 2 } ] } But this did: Code: { "__merge" : [], "statusEffects" : [ { "kind" : "glow", "amount" : 2, "color" : [89, 83, 71] } ] }