How to get crafting speed and productivity of an entity?

Place to get help with not working mods / modding interface.
can00336
Inserter
Inserter
Posts: 28
Joined: Sun Dec 11, 2016 9:39 pm
Contact:

How to get crafting speed and productivity of an entity?

Post by can00336 »

I want to get the craft speed and productivity of an entity including beacon effects. I can't seem to find a suitable api call to get these values. Do they exist? If not, how would I go about doing this?

Thanks.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: How to get crafting speed and productivity of an entity?

Post by DaveMcW »

You can try asking Rseding91 nicely.

viewtopic.php?f=28&t=33542
can00336
Inserter
Inserter
Posts: 28
Joined: Sun Dec 11, 2016 9:39 pm
Contact:

Re: How to get crafting speed and productivity of an entity?

Post by can00336 »

DaveMcW wrote:You can try asking Rseding91 nicely.

viewtopic.php?f=28&t=33542
So, the consensus is that such functionality does not yet exist in the modding API. Any known workarounds? Something like, calculate speed and productivity from modules in the entity and somehow calculate the speed from modules in any in-range beacons?

Thanks.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: How to get crafting speed and productivity of an entity?

Post by DaveMcW »

Nope, it's not even possible to get the crafting speed of a basic assembling machine.

If you're really determined to build a workaround, there is a hack to peek at data.raw without going through the API. viewtopic.php?f=92&t=38459
Post Reply

Return to “Modding help”