Modding Help Custom Codex

Discussion in 'Starbound Modding' started by bconlon, Jan 21, 2017.

  1. bconlon

    bconlon Subatomic Cosmonaut

    I have been trying to make a custom codex that will be purchasable at the Terramart, but the codex isn't at the Terramart and I can't seem to spawn it in, so I don't think I have even implemented it into the game. What is wrong with my code?

    farmguide-codex.codex File
    Code:
    {
      "id" : "farmguide-codex",
      "title" : "Encyclopedia Plantae",
      "description" : "A guide to plants across the universe and where to find them. Published by BC Corp.",
      "icon" : "farmguide.png",
      "contentPages" : [
     
      "Enyclopedia Plantae
    A guide to plants across the universe and where to find them.
    Published by BC Corp",
    
    "Table Of Contents
    
    Page 1 - Tree Fruits",
    "Tree Fruits
    
    Apples - Lush Planets
    Green Apples - Lush Planets"
      ],
      "itemConfig" : {
      "rarity" : "Common",
      "price" : 25
      }
    }
    terramart.object.patch File
    Code:
    [
    { "op" : "add", "path" : "/interactData/items/-", "value" : {"item" : "farmguide-codex"} }
    ]
    EDIT: I have tried looking at other mods and guides but I have found nothing yet. .codexitems are nonexistent, so how do I make the game register the codex as an item?
     
    Last edited: Jan 22, 2017
  2. bconlon

    bconlon Subatomic Cosmonaut

    Ok I solved it, I put the -codex extension in the wrong file
     

Share This Page