Modding Help Question. How do I change .item to .consumable?

Discussion in 'Starbound Modding' started by Andrej363, Jul 20, 2018.

  1. Andrej363

    Andrej363 Phantasmal Quasar

    So I wanted to make old crystal plant edible but when i changed .item to .consumable in the mod folder it crashed the game. Probably because in reuglar game assets its .item . How can I make item already in game to be edible? Thanks. Sorry for bad English.
     
  2. bk3k

    bk3k Oxygen Tank

    Well you really can't change the file extension of a vanilla asset via modding. You'd have to actually unpack everything, rename it, and repack the assets thus replacing vanilla's packed.pak file. This is totally non-viable if you wanted to distribute a mod, and not recommended anyhow.

    Your error comes from there now being 2 files that identify as the same thing aka duplicate ID. Instead make a new .consumable item with a different ID. Make a .recipe to turn the regular item into the consumable item (presumably by cooking it).
     
  3. projectmayhem

    projectmayhem Spaceman Spiff

    Id say your best bet, is to patch the normal .item file and change the item name to something like "itemName" : "REMOVEDcrystalplant"

    This will keep the game from finding it when it gets referenced. Now, you create your own consumable file, and name it "itemName" : "crystalplant"

    Now, everytime the game looks for crystalplant, it will find your consumable and not the removed item
     
  4. Andrej363

    Andrej363 Phantasmal Quasar

    thats genius. thanks :D
     

Share This Page