Need help with recipe.

Place to get help with not working mods / modding interface.
Post Reply
_ImPat
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sun Sep 04, 2016 5:13 pm
Contact:

Need help with recipe.

Post 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.
}

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Need help with recipe.

Post by aubergine18 »

What happens if you remove the result line?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

_ImPat
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sun Sep 04, 2016 5:13 pm
Contact:

Re: Need help with recipe.

Post by _ImPat »

aubergine18 wrote:What happens if you remove the result line?
I get an error on startup.

User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 333
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: Need help with recipe.

Post 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 = {}
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Need help with recipe.

Post 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.

Post Reply

Return to “Modding help”