Page 1 of 1

LuaEntityPrototype of type= mining-drill: inventory support

Posted: Wed Apr 17, 2019 8:54 pm
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.

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

Posted: Wed Apr 24, 2019 1:47 pm
by bobingabout
honestly, I would like support for that sort of thing too.