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!
Changing recipes
-
- Long Handed Inserter
- Posts: 80
- Joined: Wed Apr 30, 2014 5:36 pm
- Contact:
Re: Changing recipes
deleted
Last edited by albatrosv13 on Thu May 19, 2016 4:31 pm, edited 1 time in total.
Re: Changing recipes
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.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
Re: Changing recipes
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.
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
Refer to this post:
https://forums.factorio.com/forum/vie ... =25&t=4858
Specifically:
https://forums.factorio.com/wiki/inde ... g_Tutorial
https://forums.factorio.com/forum/vie ... =25&t=4858
Specifically:
https://forums.factorio.com/wiki/inde ... g_Tutorial