Modding Discussion Easy way to spawn items.

Discussion in 'Starbound Modding' started by Zidonuke, Dec 5, 2013.

  1. Aigis

    Aigis Tentacle Wrangler

    Oh, apologies. As far as I know, there is no (known) way to spawn items with certain parameters.

    There is a set of hex colour values before the item in the .player file if you're feeling adventurous, but the input of someone more knowledgeable is probably needed.

    Are you sure it wasn't a silly mistake? :p
     
  2. Mewbone

    Mewbone Phantasmal Quasar

    We all had different types of code....
     
  3. AdelaisAer

    AdelaisAer Industrial Terraformer

    Can you specify which are techs exactly? I recognize some of them, but I want to make sure I got them all.

    EDIT: I used ARTdrakon's code, but my game crashed.

    Code:
    {
      "id" : "humantutorial.gearup",
      "title" : "^#9be3d6;There's No Place Like Home",
      "text" : "Earth has been ripped apart. You have been in search of a new home for some time. Finally your ship has run out of fuel in orbit of an unknown planet. Before setting out in search of fuel, ^green;search your ship's storage for a ^pink;matter manipulator^white;. Press ^green;E ^white;to interact with objects.",
      "completionText" : "Well done! The matter manipulator allows you to manipulate almost anything in the gameworld.",
      "conditions" : [
        { "kind" : "gather", "item" : [ "beamaxe", 1] }
      ],
      "moneyRange" : [10, 10],
      "rewards" : [
        [ [ "buster", 1],
        [ "bubblegun", 1],
        [ "superjump", 1],
        [ "rocketjump", 1],
        [ "morphball", 1],
        [ "miningdrill", 1],
        [ "humanmech", 1],
        [ "hover", 1],
        [ "gravitybubble", 1],
        [ "gravityball", 1],
        [ "doublejump", 1],
        [ "dash", 1],
        [ "butterflyboost", 1],
        [ "bubbleboost", 1],
        [ "booster", 1],
        [ "blink", 1],
        [ "banana", 1],
        [ "gravgun", 1],
        [ "chainsaw", 1],
        [ "humantier10hammer", 1],          Change "Human" to race you want to use.
        [ "humantier10broadsword", 1],    Change "Human" to race you want to use.
        [ "harp", 1],
        [ "saxophone", 1],
        [ "rocket1", 1],
        [ "cameramanhead", 1],
        [ "fishsomething", 1],
        [ "grapplinghook", 1],
        [ "superfishaxe", 1],
        [ "humantier10pants", 1],  Change "Human" to race you want to use.
        [ "humantier10head", 1],    Change "Human" to race you want to use.
        [ "humantier10chest", 1],  Change "Human" to race you want to use.
        [ "beamaxe", 1] ]
      ],
      "planetMode" : "none",
      "questDungeons" : [ ],
      "followUp" : "tutorial2.gearup"
    }
     
    Last edited: Dec 8, 2013
  4. Nexusv

    Nexusv Void-Bound Voyager

    You left "Change "Human" to race you want to use." by the human tier armor/weapon rewards, remove those and it should work fine.(though some items won't spawn right)

    Also, the techs need to have -chip as a suffix, and some have odd names.
     
  5. zeriodgravity

    zeriodgravity Tentacle Wrangler

    Code:
    {
    "id" : "humantutorial.gearup",
    "title" : "^#9be3d6;There's No Place Like Home",
    "text" : "Earth has been ripped apart. You have been in search of a new home for some time. Finally your ship has run out of fuel in orbit of an unknown planet. Before setting out in search of fuel, ^green;search your ship's storage for a ^pink;matter manipulator^white;. Press ^green;E ^white;to interact with objects.",
    "completionText" : "Well done! The matter manipulator allows you to manipulate almost anything in the gameworld.",
    "conditions" : [
    { "kind" : "gather", "item" : [ "beamaxe", 1] }
    ],
    "moneyRange" : [10, 10],
    "rewards" : [
    [ [ "buster", 1],
    [ "bubblegun", 1],
    [ "rocketjump-chip", 1],
    [ "morphballTech-chip", 1],
    [ "miningdrill", 1],
    [ "humanMechTech-chip", 1],
    [ "hoverTech-chip", 1],
    [ "jetpackTech-chip", 1],
    [ "doublejumpTech-chip", 1],
    [ "dashTech-chip", 1],
    [ "butterflyboost-chip", 1],
    [ "bubbleboost-chip", 1],
    [ "cameramanboost-chip", 1],
    [ "targetblinktech-chip", 1],
    [ "banana", 1],
    [ "gravgun", 1],
    [ "chainsaw", 1],
    [ "humantier10hammer", 1],
    [ "humantier10broadsword", 1],
    [ "harp", 1],
    [ "saxophone", 1],
    [ "rocket1", 1],
    [ "cameramanhead", 1],
    [ "fishsomething", 1],
    [ "grapplinghook", 1],
    [ "superfishaxe", 1],
    [ "humantier10pants", 1],
    [ "humantier10head", 1],
    [ "humantier10chest", 1],
    [ "beamaxe", 1] ]
    ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : "tutorial2.gearup"
    }

    Fixed the Tech chips if anyone wants to use this :)

    -Rod.
     
  6. AdelaisAer

    AdelaisAer Industrial Terraformer

    Worked like a charm; thanks! ^_^

    EDIT: Another question, actually. Is there an armour set that glows or gives light off? I want to add that to my rewards. Also, which armours do you use to prevent air-loss (on moons, for example, or in the ocean)?
     
    Last edited: Dec 8, 2013
    HoltK likes this.
  7. zeriodgravity

    zeriodgravity Tentacle Wrangler

    No idea about the breath thing, but I saw a mod here somewhere that adds some sort of mining hat that will shine a light in a 360 degrees around you. You could look into installing that mod perhaps ?
     
  8. moomadom52

    moomadom52 Intergalactic Tourist

    now none of my characters work
    Each time you create a new character it will spawn those items, it doesn't modify the quest on servers as well so you don't get duplicate items each time you join a new server.[/quote]
     
  9. moomadom52

    moomadom52 Intergalactic Tourist

    now none of my characters work can someone help me
     
  10. Mate

    Mate Void-Bound Voyager

    Can someone make tutorial file to spawn all musical instruments, please?
     
  11. moomadom52

    moomadom52 Intergalactic Tourist

    how do i change the file back
     
  12. moomadom52

    moomadom52 Intergalactic Tourist

    can somebody get my chars back none will load now
     
  13. Nexusv

    Nexusv Void-Bound Voyager

    Code:
    "rewards" : [
        [       
            [ "rainbowcapeback", 1],
            [ "beamaxe", 1],
            [ "tiychest", 1],
            [  "tiyhead", 1],
            [  "tiylegs", 1],
            [  "aviantier10chest", 1],
            [  "aviantier10head", 1],
            [  "aviantier10pants", 1],
            [  "superfishaxe", 1],
            [  "grapplinghook", 1],
            [  "fishsomething", 1],
            [  "aviantier9shortsword", 1],
            [  "cameramanhead", 1]
        ]
      ],
    Fixed it for you, it should load now. Remember to read the thread when dealing with code, most problems are already fixed/unfixable.
     
  14. BathSalts

    BathSalts Big Damn Hero

    Would someone make a list of vanity items, that would be great.
     
  15. Lollipac

    Lollipac Void-Bound Voyager

    Anyone knows what I did wrong?


    Code:
    {
      "id" : "hylotltutorial.gearup",
      "title" : "^#9be3d6;Fish Out Of Water",
      "text" : "You have been drifting in space for some time, unable to choose a planet to explore. Finally your ship has run out of fuel in orbit of an unknown planet, making your choice for you. Before setting out in search of fuel, ^green;search your ship's storage for a ^pink;matter manipulator^white;. Press ^green;E ^white;to interact with objects.",
      "completionText" : "Well done! The matter manipulator allows you to manipulate almost anything in the gameworld.",
      "conditions" : [
        { "kind" : "gather", "item" : [ "beamaxe", 1] }
      ],
      "moneyRange" : [10, 10],
      "rewards" : [
        [       
            [ "rainbowcapeback", 1],
            [ "beamaxe", 1],
            [ "aquatier10chest", 1],
            [ "aquatier10head", 1],
            [ "aquatier10pants", 1],
            [ "superfishaxe", 1],
            [ "grapplinghook", 1],
            [ "aquatier10shortsword", 1],
            [ "cameramanhead", 1],
            [ "horsehead", 1],
            [ "butterflyboosttech-chip", 1],
            [ "targetblinktech-chip", 1],
        ]
      ],
      "planetMode" : "none",
      "questDungeons" : [ ],
      "followUp" : "tutorial2.gearup"
    }
    
     
  16. Shadoxx-Aurion

    Shadoxx-Aurion Scruffy Nerf-Herder

    Here you go:
    Code:
      "rewards" :
      [
        [
          [ "beamaxe", 1],
          [ "accordion", 1],
          [ "acousticguitar", 1],
          [ "banjo", 1],
          [ "bassguitar", 1],
          [ "bones", 1],
          [ "clarinet", 1],
          [ "drumkit", 1],
          [ "dulcimer", 1],
          [ "electricbass", 1],
          [ "femmicrophone", 1],
          [ "flute", 1],
          [ "harmonica", 1],
          [ "harp", 1],
          [ "koto", 1],
          [ "leadguitar", 1],
          [ "microphone", 1],
          [ "musicbox", 1], 
          [ "nylonguitar", 1],
          [ "oboe", 1],
          [ "ocarina", 1],
          [ "overdriveguitar", 1],
          [ "piano", 1],
          [ "reedorgan", 1],
          [ "rockorgan", 1],
          [ "saxophone", 1],
          [ "steeldrum", 1],
          [ "trumpet", 1],
          [ "violin", 1]
        ] 
      ],
     
  17. Mate

    Mate Void-Bound Voyager

    I made it to look like this, and it is crashes. What did i do wrong? >_<
    Code:
    {
    "id" : "humantutorial.gearup",
    "title" : "^#9be3d6;There's No Place Like Home",
    "text" : "Earth has been ripped apart. You have been in search of a new home for some time. Finally your ship has run out of fuel in orbit of an unknown planet. Before setting out in search of fuel, ^green;search your ship's storage for a ^pink;matter manipulator^white;. Press ^green;E ^white;to interact with objects.",
    "completionText" : "Well done! The matter manipulator allows you to manipulate almost anything in the gameworld.",
    "conditions" : [
    { "kind" : "gather", "item" : [ "beamaxe", 1] }
    ],
    "moneyRange" : [10, 10],
    "rewards" :
      [
        [
          [ "beamaxe", 1],
          [ "accordion", 1],
          [ "acousticguitar", 1],
          [ "banjo", 1],
          [ "bassguitar", 1],
          [ "bones", 1],
          [ "clarinet", 1],
          [ "drumkit", 1],
          [ "dulcimer", 1],
          [ "electricbass", 1],
          [ "femmicrophone", 1],
          [ "flute", 1],
          [ "harmonica", 1],
          [ "harp", 1],
          [ "koto", 1],
          [ "leadguitar", 1],
          [ "microphone", 1],
          [ "musicbox", 1],
          [ "nylonguitar", 1],
          [ "oboe", 1],
          [ "ocarina", 1],
          [ "overdriveguitar", 1],
          [ "piano", 1],
          [ "reedorgan", 1],
          [ "rockorgan", 1],
          [ "saxophone", 1],
          [ "steeldrum", 1],
          [ "trumpet", 1],
          [ "violin", 1]
        ]
      ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : "tutorial2.gearup"
    }
     
  18. zeriodgravity

    zeriodgravity Tentacle Wrangler


    Fixed. Don't put a comma after the last square bracket of the list ( this case targetblinktech-chip ).
     
  19. zeriodgravity

    zeriodgravity Tentacle Wrangler

    Can't see anything wrong after checking for 10 mins o,o. Maybe try cutting it in half and see if that works ? Just go up to Flute for example and delete the rest, might be because you try to spawn too much items.
     
  20. Mate

    Mate Void-Bound Voyager

    Nope, tried to cut it. Crashes anyway :(
     

Share This Page