Recipe crafting time?

Place to get help with not working mods / modding interface.
Theanderblast
Inserter
Inserter
Posts: 46
Joined: Fri Aug 19, 2016 2:48 pm
Contact:

Recipe crafting time?

Post 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.
321freddy
Fast Inserter
Fast Inserter
Posts: 125
Joined: Fri Sep 23, 2016 10:16 pm
Contact:

Re: Recipe crafting time?

Post 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.
Theanderblast
Inserter
Inserter
Posts: 46
Joined: Fri Aug 19, 2016 2:48 pm
Contact:

Re: Recipe crafting time?

Post 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.
Post Reply

Return to “Modding help”