LuaEntity::mining_targets read

Things that we aren't going to implement
Post Reply
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 452
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

LuaEntity::mining_targets read

Post 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?
Don't forget, you're here forever.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13219
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaEntity::mining_targets read

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Won't implement”