Page 1 of 1

Track "completed operations" for labs and miners, similar to "products_finished"

Posted: Thu Jun 06, 2019 2:58 pm
by Arcitos
Hello together,

at the moment it is easy to track production numbers for all entities of Type "CraftingMachine" using LuaEntity.products_finished. This is convienient but unfortunately not availabe for other entity types.
Proposal
I'd like to have a similar function for miners and lab entities.
Because they work not via recipe i'd like to suggest tracking "completed operations" instead, meaning that whenever the progress bar hits 100%, this counter ist increased by one.
This way it is irrelevant whether miners produce multiple ores per cycle or how much science bottles are consumed for each science time interval.
Exemplary use case
I'd like to compare the amount of completed operations for miners and labs to determine if they had been active within a given time interval.

What do you think?

Regards,
Arcitos