Modding Help Adding a new ore?

Discussion in 'Starbound Modding' started by YoloJoe, Aug 2, 2016.

  1. YoloJoe

    YoloJoe Space Hobo

    Hi everyone. Does anybody know how I can create a custom ore for Starbound 1.0?
     
  2. YoloJoe

    YoloJoe Space Hobo

    Bump! :nuruhappy:
     
  3. Zavender

    Zavender Scruffy Nerf-Herder


    Current three part series by @Naddox, he goes through how to make a new ore and add it to terrain generation.
     
    foxtails and Naddox like this.
  4. YoloJoe

    YoloJoe Space Hobo

    I'm sure this helps a lot! Thanks!!!
     
    Naddox likes this.
  5. Naddox

    Naddox Cosmic Narwhal

    Actually released episode 5 yesterday :p

    I'm eventually going to cover how to add basically everything in the game. Items, Missions, NPC's, Race, Quests, Ships, ect.
     
    AmazonValkyrie, foxtails and Zavender like this.
  6. YoloJoe

    YoloJoe Space Hobo

    Awesome, thanks! Do you by any chance know how I can make the ore glow? :D
     
    foxtails likes this.
  7. Naddox

    Naddox Cosmic Narwhal

    I do actually. We'll use Ageisalt ore for an example. In your matmod for your ore, you should have a line that reads "renderParameters", where it chooses the texture of your ore and everything. You can add a line inside the render parameters to add a glow effect, which would be:
    Code:
    "radiantLight" : [
      0-255,
      0-255,
      0-255
    ]
    To look like this in your code:
    Code:
    {
      "modId": 26,
      "modName": "aegisalt",
      "itemDrop": "aegisaltore",
      "description": "Aegisalt.",
      "health": 5,
      "harvestLevel": 5,
      "breaksWithTile": true,
      "miningSounds": [
        "/sfx/tools/pickaxe_ore.ogg",
        "/sfx/tools/pickaxe_ore2.ogg"
      ],
      "miningParticle": "orespark",
      "renderTemplate": "/tiles/classicmaterialtemplate.config",
      "renderParameters": {
        "texture": "aegisalt.png",
        "variants": 8,
        "multiColored": false,
        "zLevel": 0,
        "radiantLight": [
          75,
          75,
          75
        ]
      }
    }
    the 3 different numbers are going to work on a RGB(Red, Green, Blue) scale. Keeping them all the same number will use a grey scale and the higher you get to 255 the brighter they will glow. 0,0,0 is black or not at all, and 255, 255, 255 is going to be pure white and very bright.
     
    foxtails and AmazonValkyrie like this.
  8. YoloJoe

    YoloJoe Space Hobo

    Wow, thats super, thanks!
     
  9. Mackinz

    Mackinz The Waste of Time

    And to add your new ore to world generation, patch into the oredistributions.configfunctions file in /biomes/. Be forewarned, however, that this file is pretty big and the patch file will have a pretty complex "path" value.
     
  10. Blackwood

    Blackwood Phantasmal Quasar

    Regarding oredistributions.configfunctions: am I correct in assuming that that rows beginning with 0.5 control the distribution for Tier 1 planets, 1.5 being Tier 2, 2.5 being Tier 3, etc?
     
  11. Mackinz

    Mackinz The Waste of Time

    Yes, that is right AFAIK.
     

Share This Page