Modding Help Crafting Randomly Generated Items..

Discussion in 'Starbound Modding' started by Grugore, Dec 14, 2013.

  1. Grugore

    Grugore Tentacle Wrangler

    So I'm working on a mod to change generated items into other generated items.

    So far I've made a furnace like object which takes an input and is supposed to output a generated item. However I've not been able to get an output to work.

    This is the recipe I have setup..

    {
    "input": [
    {
    "item": "darkwoodmaterial",
    "count": 1
    }
    ],
    "output": {
    "item": "generatedsword",
    "definition": "crappyaxe",
    "count": 1
    },
    "groups": [
    "reatomizer"
    ]
    }

    This is the error message I get..

    Error: Could not instantiate item '[generatedsword, 1, {}]'. StarException: Instancing a generated sword but no level was provided.

    Edits like this don't seem to work.

    "level": 1,
    "levelVariance": [1,2]

    I would appreciate help if possible. Thanks! :D
     
  2. jordo

    jordo Aquatic Astronaut

    Try:

    Code:
    "output" : {
      "item" : {
        "name" : "generatedsword",
        "data" : { "definition" : "crappyaxe", "level" : 1 }
      },
      "count" : 1
    }
     

Share This Page