after i finished my mod i saw ingame that i cant use productive modules in my recipes
can someone have a look at this pls
![Mad :x](./images/smilies/icon_mad.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
http://www.file-upload.net/download-116 ... 1.zip.html
Code: Select all
table.insert(data.raw.module["productivity-module"].limitation, "your recipe")
Code: Select all
data:extend({
table.insert(data.raw.module[function productivitymodulelimitation()
return
"advanced-electronic-circuit",
"advanced-advanced-circuit",
"advanced-processing-unit"
])
})
WTF are you trying to do there?iCamper wrote:I changed somethink by my own new errorcode: mistake near "productivitymodulelimitation"Code: Select all
data:extend({ table.insert(data.raw.module[function productivitymodulelimitation() return "advanced-electronic-circuit", "advanced-advanced-circuit", "advanced-processing-unit" ]) })
Code: Select all
table.insert(data.raw.module["productivity-module"].limitation, "advanced-electronic-circuit")
table.insert(data.raw.module["productivity-module"].limitation, "advanced-advanced-circuit")
table.insert(data.raw.module["productivity-module"].limitation, "advanced-processing-unit")
Code: Select all
table.insert(data.raw.module["productivity-module"].limitation, "recipe_name")
table.insert(data.raw.module["productivity-module-2"].limitation, "recipe_name")
table.insert(data.raw.module["productivity-module-3"].limitation, "recipe_name")
Just remember, it is recipe_name and not the item_nameDedlySpyder wrote:Whoops, I just realized I never did this for my mod. As a side note, you have to add it to each productivity module individually, so something like this for each item:
Code: Select all
table.insert(data.raw.module["productivity-module"].limitation, "item_name") table.insert(data.raw.module["productivity-module-2"].limitation, "item_name") table.insert(data.raw.module["productivity-module-3"].limitation, "item_name")