Page 1 of 1

Recipe crafting time?

Posted: Fri Jun 16, 2017 4:01 pm
by Theanderblast
Is there a way to access the time it takes to craft a recipe from lua ? I mean the number next to the stopwatch in the recipe (not the time it takes to research a tech).

I've been looking at LuaRecipe and LuaRecipePrototype, and I just don't see it.

Thanks, and apologies if this is a duplicate.

Re: Recipe crafting time?

Posted: Fri Jun 16, 2017 4:49 pm
by 321freddy
It is called energy in the api. See here: http://lua-api.factorio.com/latest/LuaR ... ipe.energy
But note that the actual time taken to craft a recipe in seconds depends on the crafting speed of the machine.

Re: Recipe crafting time?

Posted: Fri Jun 16, 2017 6:24 pm
by Theanderblast
Thanks! Not what I expected, but seems to work. Am working on a mod that does all the math for assembler production/consumption, taking into account assembler speed, modules, beacons.