Setting up Lights

Discussion in 'Starbound Modding' started by Tomohawkmissile2, Dec 7, 2013.

  1. Tomohawkmissile2

    Tomohawkmissile2 Void-Bound Voyager

    I was doing a little experimenting with the light effects in the game and this is what I found so far:

    The effect has three basic parts:
    lightColor, flickerDistance and flickerStrength

    From what I've found so far:
    • lightColor is the color of the light
    • flickerDistance is the brightness of the effect
    • flickerStrength is what causes the flickering effect. 0 = no flickering, 1 = powerful flickering
    To add heat to a light source, it requires a statusEffect tag, as shown here.

    This is the default torch's statusEffect:

    "statusEffects" : [
    {
    "kind" : "Warmth",
    "amount" : 8,
    "range" : 4
    } ],

    The elements of the statusEffect should be self-explanatory. Remember your commas.

    Just putting this out there for others if they wanted to add light effects.
     
  2. G4M5T3R

    G4M5T3R Cosmic Narwhal

    I tried adding lights to ores this way the other day (without heat), using only Color, Distance, and Strength. It didn't seem to work. I also tried using "category" : "light" with color, distance, and Strength. Nothin...
     
    Last edited: Dec 7, 2013
  3. Tomohawkmissile2

    Tomohawkmissile2 Void-Bound Voyager

    What was the code? Maybe I can help.

    This is just a post to record things I've tinkered with regarding lights.
     

Share This Page