Modding Help Ore analysis, and generation.

Discussion in 'Starbound Modding' started by ChocolateMilk555, Nov 30, 2016.

  1. ChocolateMilk555

    ChocolateMilk555 Aquatic Astronaut

    I am currently making a chocolate mod, and have different ores, items, etc.
    I know how to make the ore generate, but not how to make it generate on certain planets, such as I have "vanillachocolateore" and I want that to generate on snowy planets only. As well I would like for it to show up on the ore analysis.
    Any thoughts, on whether it's not possible, or what needs to be done?
     
  2. IHart

    IHart Scruffy Nerf-Herder

    I think I can help
    ore analysis inclusion can be found here: /interface/cockpit/cockpit.config line 314

    untested theory for snow planet specific ore generation would be to change the "ore" reference in /biomes/surface/snow.biome:144 to a new term ex. "surfaceSnow"
    then in /biomes/oredistributions.configfunctions copy from "surface" to "surfaceSnow" and add your additions to the "surfaceSnow" entry

    further, this may only appear in the surface portions actually given the snow biome ID, and the same portions on midnight planets etc. To prevent the latter only add yours to difficulty 2.5, to prevent a false positive. I hope to the old gods and the new that there is a better solution to this.
     

Share This Page