Page 1 of 1

Changing A Base Technology

Posted: Thu Dec 05, 2019 6:04 am
by theshadowbyte
I need to modify the type of science pack necessary for a base technology, specifically Fluid Handling. I created a mod and placed the following code in data.lua but it doesn't work:

Code: Select all

data.raw.technology["fluid-handling"].unit.ingredients = {{"crude-science-pack", 1}}
Please advice.

Re: Changing A Base Technology

Posted: Thu Dec 05, 2019 6:43 am
by DaveMcW
Is that your entire data.lua?

You need to create a new item and a new recipe for crude-science-pack. https://wiki.factorio.com/Tutorial:Modd ... e_creation

Re: Changing A Base Technology

Posted: Thu Dec 05, 2019 10:45 pm
by theshadowbyte
I forgot to mention: crude-science-pack exists already in another active mod.

Re: Changing A Base Technology

Posted: Fri Dec 06, 2019 6:30 am
by DaveMcW
Put your code in data-updates.lua to ensure the other mod is loaded first.