Page 1 of 1

Selective mining drill

Posted: Tue Oct 25, 2016 9:31 am
by ursulaboy
Hi,

I'm trying to make a mining drill where you can select what type of resource you want it to mine.
But I can't seem to find any help on how to achieve this.
I can't find the code that defines the the vanilla mining drill nor can I find the code that "makes" the UI for it.

Any help would be appreciated,
Ursulaboy

Re: Selective mining drill

Posted: Tue Oct 25, 2016 9:43 am
by Rseding91
That code is in the Factorio executable as compiled C++. It's not possible to change it with a mod.

Re: Selective mining drill

Posted: Tue Oct 25, 2016 9:52 am
by ursulaboy
I see,

Would there be a way for me to make a custom mining drill in complete lua?

Re: Selective mining drill

Posted: Tue Oct 25, 2016 11:30 am
by aubergine18
There's no way to do that, although you can approximate with the durability property IIRC. For example, the chainsaw mod is good at cutting trees but is quickly damaged when mining ores with it.

Some related discussion: viewtopic.php?f=25&t=31853