Selective mining drill

Place to get help with not working mods / modding interface.
ursulaboy
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Oct 24, 2016 8:17 am
Contact:

Selective mining drill

Post 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
Rseding91
Factorio Staff
Factorio Staff
Posts: 15997
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Selective mining drill

Post by Rseding91 »

That code is in the Factorio executable as compiled C++. It's not possible to change it with a mod.
If you want to get ahold of me I'm almost always on Discord.
ursulaboy
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Oct 24, 2016 8:17 am
Contact:

Re: Selective mining drill

Post by ursulaboy »

I see,

Would there be a way for me to make a custom mining drill in complete lua?
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Selective mining drill

Post 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
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Post Reply

Return to “Modding help”