modding recipe

Place to get help with not working mods / modding interface.
Lee_newsum
Filter Inserter
Filter Inserter
Posts: 436
Joined: Wed Jan 15, 2014 9:41 am
Contact:

modding recipe

Post by Lee_newsum »

Code: Select all

data.raw["recipe"]["alien-science-pack"].category = {"crafting-with-fluid"}
data.raw["recipe"]["alien-science-pack"].ingredients = {{"light-oil",5},{"sulfur",1},{"processing-unit",1},{"electric-engine-unit",1}}
---------------------------
Error
---------------------------
Error in assignID, 'light-oil' was not recognized id of item

what am I missing :?:

thanks for your help
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: modding recipe

Post by FreeER »

Lee_newsum wrote:what am I missing :?:
the fact that fluids in recipes are specified as {type="fluid", name="light-oil", amount=1} :lol:
Don't worry, that threw me the first time as well :D
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net
Post Reply

Return to “Modding help”