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.
Recipe crafting time?
-
- Inserter
- Posts: 46
- Joined: Fri Aug 19, 2016 2:48 pm
- Contact:
Re: Recipe crafting time?
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.
But note that the actual time taken to craft a recipe in seconds depends on the crafting speed of the machine.
My mods:
-
- Inserter
- Posts: 46
- Joined: Fri Aug 19, 2016 2:48 pm
- Contact:
Re: Recipe crafting time?
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.