Page 1 of 1

LuaEntity::mining_targets read

Posted: Wed May 13, 2020 9:28 pm
by raiguard
Currently you can read a mining drill's mining target (singular), which is the resource that it is currently mining. However, there is no way to get all of the resources that the drill could mine. I would like to request a mining targets (plural) property, so I can read all of the resources that a drill can mine, in the case of a mixed output.

Thanks!

Edit: also, how does a drill decide what to mine? Does it do a set number of mining operations on each resource in range, or does it pick randomly?

Re: LuaEntity::mining_targets read

Posted: Thu May 14, 2020 1:01 pm
by Rseding91
Mining drills don't currently store this list. They just entity-search to find the next resource to mine every 10~ times they mine the current target.