Page 1 of 1

[Resolved] Minable / Results Question

Posted: Wed Apr 20, 2016 7:05 pm
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.

Re: Minable / Results Question

Posted: Wed Apr 20, 2016 7:20 pm
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},
}

Re: Minable / Results Question

Posted: Wed Apr 20, 2016 7:29 pm
by TheSAguy
Thanks!