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
Selective mining drill
Re: Selective mining drill
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.
Re: Selective mining drill
I see,
Would there be a way for me to make a custom mining drill in complete lua?
Would there be a way for me to make a custom mining drill in complete lua?
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: Selective mining drill
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
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.