Page 1 of 1

tech to change a recipe

Posted: Mon Aug 22, 2016 12:43 pm
by nicname123
is it possible to change the recipe of something by research a tech.
by exemple, the cost of iron plate is 1 iron ore.
I want it become 2 iron ore for 1 iron plate after the furnace tech.
Thanks

Re: tech to change a recipe

Posted: Mon Aug 22, 2016 1:37 pm
by SeelenJaegerTee
Most of the stuff is read only. I'd assume you need to disable the old recipe (listen in control.lua to the on_research_finished and set the enabled flag of the old recipe to false) and add a new expensive recipe with the research.
Relevant API pages:
http://lua-api.factorio.com/0.13.17/LuaRecipe.html
http://lua-api.factorio.com/0.13.17/events.html