Changing recipes

Place to get help with not working mods / modding interface.
kanersps
Burner Inserter
Burner Inserter
Posts: 11
Joined: Sat Feb 28, 2015 12:06 am
Contact:

Changing recipes

Post 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!
albatrosv13
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Wed Apr 30, 2014 5:36 pm
Contact:

Re: Changing recipes

Post by albatrosv13 »

deleted
Last edited by albatrosv13 on Thu May 19, 2016 4:31 pm, edited 1 time in total.
kanersps
Burner Inserter
Burner Inserter
Posts: 11
Joined: Sat Feb 28, 2015 12:06 am
Contact:

Re: Changing recipes

Post 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.
Pickle

Re: Changing recipes

Post 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
Post Reply

Return to “Modding help”