[Resolved] Minable / Results Question

Place to get help with not working mods / modding interface.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1455
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

[Resolved] Minable / Results Question

Post by TheSAguy »

Hi,

I'd like to have it that if I mine my entity I get more than one item/result.

Below is the current code:

Code: Select all

minable = {hardness = 0.8, mining_time = 1.5, result = "Building_Materials"},
Below is what I was hoping to get, but is not working:

Code: Select all

minable = {hardness = 0.8, mining_time = 1.5, results = {type="item", name="Building_Materials", amount=5}},
How do I have the results be 5 of the Building Materials and what if I wanted two different results. Let's say 5 Building Materials and 5 Stone?

Thanks.
Last edited by TheSAguy on Wed Apr 20, 2016 8:25 pm, edited 1 time in total.
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Minable / Results Question

Post by prg »

You're missing some curly braces around the results (it's a table of tables.)

Code: Select all

results =
{
    {type="item", name="Building_Materials", amount=5},
    {type="item", name="stone", amount=5},
}
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1455
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: Minable / Results Question

Post by TheSAguy »

Thanks!
Post Reply

Return to “Modding help”