Detecting when resources are mined
Detecting when resources are mined
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
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.
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
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.
If you want to get ahold of me I'm almost always on Discord.
Re: Detecting when resources are mined
Thank you guys.