Page 1 of 1

Need help with recipe.

Posted: Sun Sep 11, 2016 4:35 pm
by _ImPat
I'm still fairly new to modding so im sorry if this is obvious.
I need a recipe to produce nothing. Thats all.

Here is what I've got:

Code: Select all

{
type = "recipe",
name = "FREE",
icon = "__air-filtering__/graphics/icons/filter-air.png",
category = "crafting-air-filter",
energy_required = 1,
enabled = "true",
ingredients =
{
},
result = "*Need help here*" -- This line is my problem.
}

Re: Need help with recipe.

Posted: Sun Sep 11, 2016 5:20 pm
by aubergine18
What happens if you remove the result line?

Re: Need help with recipe.

Posted: Sun Sep 11, 2016 6:43 pm
by _ImPat
aubergine18 wrote:What happens if you remove the result line?
I get an error on startup.

Re: Need help with recipe.

Posted: Sun Sep 11, 2016 7:16 pm
by LuziferSenpai
_ImPat wrote:I'm still fairly new to modding so im sorry if this is obvious.
I need a recipe to produce nothing. Thats all.

Here is what I've got:

Code: Select all

{
type = "recipe",
name = "FREE",
icon = "__air-filtering__/graphics/icons/filter-air.png",
category = "crafting-air-filter",
energy_required = 1,
enabled = "true",
ingredients =
{
},
result = "*Need help here*" -- This line is my problem.
}
Try this:

Code: Select all

results = { { } }

or

result = {}

Re: Need help with recipe.

Posted: Sun Sep 11, 2016 7:19 pm
by Arch666Angel
The game wants an array and also something in there.

But something like this works:

Code: Select all

    results=
    {
      {type="item", name="iron-plate", amount=1, probability=0},
    },
If it's a dummy recipe that don't needs to be shown in the crafting menu you can also add

Code: Select all

    hidden = "true",
to the recipe, it wont show up in the "e" crafting menu then.