Page 1 of 1

Changing recipes

Posted: Tue Mar 03, 2015 3:32 pm
by kanersps
Hello!
So ive been looking around the forum and inside the source of other mods for the past few days, but i cant find out how i am able to change recipes. Like increase the output of iron plates for example.
I would be greatful if someone could post an example of this!

Re: Changing recipes

Posted: Tue Mar 03, 2015 4:29 pm
by albatrosv13
deleted

Re: Changing recipes

Posted: Tue Mar 03, 2015 4:32 pm
by kanersps
albatrosv13 wrote:C:\Program Files\Factorio\data\base\prototypes\recipe - file demo-furnace-recipe.lua
Open up notepad and change from
result = "iron-plate"
to
results = {"iron-plate", 100000}
Something like that
I already knew this, but i want to make a mod out of it, as if a new release comes i don't need to edit every file aggain.

Re: Changing recipes

Posted: Tue Mar 03, 2015 5:16 pm
by Pickle
You need to use data.raw to change the default values.

I think this should give you two iron Plates for every Iron Ore you smelt but I don't know how to make a mod to test it.

Code: Select all

data.raw.recipe["iron-plate"].result_count = 2

Re: Changing recipes

Posted: Tue Mar 03, 2015 5:27 pm
by Piranha