Page 1 of 1

modding recipe

Posted: Tue Apr 01, 2014 12:49 am
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

Re: modding recipe

Posted: Tue Apr 01, 2014 12:53 am
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