LuaEntityPrototype of type= mining-drill: inventory support
Posted: Wed Apr 17, 2019 8:54 pm
On creating a modded mining drill, suppose you start with:
And of course all the other values normally expected here. But then suppose you want to put in:
This results in a startup error, as this is considered required.
Then having the following lines of code in a mining-drill definition:
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.
Code: Select all
{
type = "mining-drill",
name = "portable-mining-drill",
Code: Select all
vector_to_place_result = nil
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
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.