Page 1 of 1

Overriding base ore generation

Posted: Sun Dec 27, 2015 4:48 pm
by xiphias
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 :P

All help is welcome!

Re: Overriding base ore generation

Posted: Sun Dec 27, 2015 6:37 pm
by Klonan
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

Posted: Mon Dec 28, 2015 7:17 am
by xiphias
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 :D

Solved!