Modding Help Help with treasure pools

Discussion in 'Starbound Modding' started by GoldenstarArtist, Nov 16, 2014.

  1. GoldenstarArtist

    GoldenstarArtist Cosmic Narwhal

    I have been trying to add a file that will make apples rarely drop from all mobs, however it crashes on loadup... any help?..

    Code:
    {
      "__merge" : [],
      "basicMonsterTreasure" : [
        [1, {
            "pool" : [
             
              [ 0.10, [ "redapple", 1] ],
              [ 0.10, [ "greenapple", 1] ]
    
              ]
              }
            ]
          ]
    }
     
  2. The merge system does not allow that sort of merge, you basically have to overwrite the entire array or add to it. You cannot specify individual elements to add. The new Patch system in the Nightly does allow for this, however. You just have to wait until that comes out.
     
  3. GoldenstarArtist

    GoldenstarArtist Cosmic Narwhal

    Alright... Is it possible then maybe to craft your own tree type with these sort of drops, and then just make the sapling craftable?
     
  4. That would certainly be a work-around, yes.
     

Share This Page