LuaEntityPrototype of type= mining-drill: inventory support

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
Yehn
Fast Inserter
Fast Inserter
Posts: 111
Joined: Tue Jul 12, 2016 3:45 am
Contact:

LuaEntityPrototype of type= mining-drill: inventory support

Post by Yehn »

On creating a modded mining drill, suppose you start with:

Code: Select all

 {
    type = "mining-drill",
    name = "portable-mining-drill",
And of course all the other values normally expected here. But then suppose you want to put in:

Code: Select all

vector_to_place_result = nil
This results in a startup error, as this is considered required.

Then having the following lines of code in a mining-drill definition:

Code: Select all

result_inventory_size = 2
inventory_size = 2
storage_slots = 2
No errors result from these, but nor is there any effect. It appears all these inventory types are simply unsupported.

The mod API request, then: It would be great if a mining-drill entity could have its own inventory, and place its results inside of this inventory.

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: LuaEntityPrototype of type= mining-drill: inventory support

Post by bobingabout »

honestly, I would like support for that sort of thing too.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Post Reply

Return to “Modding interface requests”