Page 1 of 1

Detecting when resources are mined

Posted: Sat Jul 30, 2016 8:42 pm
by apriori
Does anybody know how to catch a fact of mining resources? I mean is there any lua event (or another way) occurring when mining drill collects resources from the ground?

Re: Detecting when resources are mined

Posted: Thu Aug 04, 2016 8:01 pm
by daniel34
Moved from the [MOD 0.12.x] Advanced Drills topic to Modding help.

There is no such event that I know of.
As a workaround you could periodically count the number of resources under the mining drill, although it's not possible to determine which drill it was due to possibly overlapping drill ranges.

Re: Detecting when resources are mined

Posted: Thu Aug 04, 2016 11:34 pm
by Rseding91
There's no event as that would fire all the time and cause a large drain for very little gain similar to an entity damaged event.

Re: Detecting when resources are mined

Posted: Tue Aug 16, 2016 12:42 pm
by apriori
Thank you guys.