Modding Help How can I make an item craftable?

Discussion in 'Starbound Modding' started by Ertas10, Sep 16, 2016.

Tags:
  1. Ertas10

    Ertas10 Void-Bound Voyager

    I'm trying to create an item that's able to be craftable and placeable as a tile, but I can't seem to be able to make it craftable. I'll include the code I'm using so you guys can help me.
    This is the code I use for the item:
    Code:
    {
      "itemName" : "crimtaneore",
      "price" : 55,
      "rarity" : "Uncommon",
      "category" : "craftingMaterial",
      "inventoryIcon" : "crimtaneore.png",
      "description" : "Crimtane Ore. Made from the flesh of crimson foes.",
      "shortdescription" : "Crimtane Ore",
      "itemTags" : [ "reagent" ]
    }
    
    This is the code I use for crafting the item
    Code:
    {
      "input" : [
        { "item" : "durasteelore", "count" : 10 },
        { "item" : "fleshblock", "count" : 5 }
      ],
      "output" : { "item" : "crimtaneore", "count" : 10 },
      "duration" : 0.15,
      "groups" : [ "craftingfurnace2", "bars", "all" ]
    }
    
    This I use for the tile:
    Code:
    {
      "modId" : 500,
      "modName" : "crimsonore",
      "itemDrop" : "crimtaneore",
      "description" : "Crimtane Ore.",
      "breaksWithTile" : true,
      "health" : 3,
      "harvestLevel" : 4,
    
      "miningSounds" : [ "/sfx/tools/pickaxe_ore.ogg", "/sfx/tools/pickaxe_ore2.ogg" ],
      "miningParticle" : "orespark",
    
      "renderTemplate" : "/tiles/classicmaterialtemplate.config",
      "renderParameters" : {
        "texture" : "crimsonore.png",
        "variants" : 1,
        "multiColored" : false,
        "zLevel" : 0
      }
    }
    
    And the player.config.patch code:
    Code:
    [
        {"op":"add","path":"/defaultBlueprints/tier1/-","value":{"item":"crimtaneore"} },
    ]
    I'm pretty new to modding in general, so if you guys could point me in the right direction I would be thankful.
     
  2. Iris Blanche

    Iris Blanche Pudding Paradox Forum Moderator

    You forgot to remove a , in the player.config.patch
    Code:
    [
        {"op":"add","path":"/defaultBlueprints/tier1/-","value":{"item":"crimtaneore"} }
    ]
    This should work.

    ~ Iris ~
     
  3. Mackinz

    Mackinz The Waste of Time

    Remove the final comma in your player.config.patch. Always use a patch validator for patch files, like this one.
     
    Mirau likes this.
  4. Ertas10

    Ertas10 Void-Bound Voyager

    It still didn't work, but would you guys mind if I send you my files so you can look through it?
     
  5. Iris Blanche

    Iris Blanche Pudding Paradox Forum Moderator

    You can do this if you want :)

    ~ Iris ~
     
  6. Ertas10

    Ertas10 Void-Bound Voyager

  7. Iris Blanche

    Iris Blanche Pudding Paradox Forum Moderator

    It appears after the 1st upgrade of the furnace like it's written in the recipe. If you want it to have it available at the first furnace you'll have to change the recipe group from "craftingfurnace2" to "craftingfurnace"

    ~ Iris ~
     
  8. Ertas10

    Ertas10 Void-Bound Voyager

    I actually want it like that, but it doesn't even appear on the second upgrade, which is what's really making me question my entire code
     
  9. Iris Blanche

    Iris Blanche Pudding Paradox Forum Moderator

    Hm with the files you sent it's working like a charm. Maybe you have another mod running that overrides the player.config which is loaded after this mod? Your files are clean as far as i can say.

    ~ Iris ~
     
  10. Ertas10

    Ertas10 Void-Bound Voyager

    I just tested something out and it seems that if I place it in the mods folder it works, but whenver I try to do it from the workshop it doesn't work. It raises me a question: am I supposed to pack it or not when I send it to the workshop?
     
  11. Iris Blanche

    Iris Blanche Pudding Paradox Forum Moderator

    Just use the moduploader provided by starbound. It will pak it automatically.
    If you're testing mods from the workshop you're required to start starbound over steam.

    ~ Iris ~
     
  12. Ertas10

    Ertas10 Void-Bound Voyager

    I'm gonna try not to pack it before, since it packs automatically that could be my proble. Thanks for help!
     
  13. Iris Blanche

    Iris Blanche Pudding Paradox Forum Moderator

    Let me know if it helped ^-^

    ~ Iris ~
     
  14. Ertas10

    Ertas10 Void-Bound Voyager

    Yup, it worked, so once again, thank you!
     
    Iris Blanche likes this.
  15. Mirau

    Mirau Pangalactic Porcupine

    Just a little extra input here - it has been my experience that if you have a mod directory and .pak file in your ../mods/ directory then the .pak will take precedence over the 'directory' version. This is important if you are working on a mod and you notice that nothing is changing in game.
     

Share This Page