Modding Help Dyed items in treasure pools?

Discussion in 'Starbound Modding' started by the_bru, Mar 20, 2016.

  1. the_bru

    the_bru Void-Bound Voyager

    Is there a way to get the items dropped as part of a treasure pool to be one of the dyed variants instead of the default color?
     
  2. C0bra5

    C0bra5 Oxygen Tank

    yup!
    instead of using this
    Code:
    { "weight" : 1.0, "item" : "itemid" }
    
    you use this
    Code:
    {"weight" : 1.0, "item" : { "name" : "itemid", "parameters" : { "colorIndex" : colorOptionIndex } } }
    
    the color option index is the index of the color option in your item file. it starts at 1
     
  3. the_bru

    the_bru Void-Bound Voyager

    Perfect! Thank you.
     

Share This Page