I have recently made a mod which adds a new ore and it works fine, but in my next step I want to change the base ore generation.
I want copper, iron and coal to generate more like stone, i.e fewer ore "patches" and smaller in size, but I have no idea how to change the base once.
I have played around with the influence, noise_layer, etc. of my own ore generation, I just don't know which lua-code to override the base generation
All help is welcome!
Overriding base ore generation
Re: Overriding base ore generation
in your data.lua you can do something like this
Code: Select all
data.raw["resource"]["copper-ore"].autoplace = { new autoplace stuff here },
data.raw["resource"]["iron-ore"].autoplace = { new autoplace stuff },
Re: Overriding base ore generation
Klonan wrote:in your data.lua you can do something like this
Code: Select all
data.raw["resource"]["copper-ore"].autoplace = { new autoplace stuff here }, data.raw["resource"]["iron-ore"].autoplace = { new autoplace stuff },
I tried it out and it worked like a charm, thank you Klonan! Not the first time you helped me
Solved!