Page 1 of 1

Recipes with multiple output?

Posted: Mon Sep 16, 2013 3:27 am
by TroZ
Is it possible to have a recipe have multiple outputs?

For example, is it possible to have the iron gear wheel recipe output 1 iron gear wheel and 1 iron scrap (left-overs from cutting out the gear teeth), so that later you could put 10 iron scrap in a furnace an get another iron-plate?

I see this working with assembly machines by having either a single regular inserter taking out the outputs in turn (all of the first output, then all of the second output), or using 2 (or more) filter inserters taking items out of the assembly machine and putting them on different belts.

My idea isn't specifically for iron scrap and copper scrap, I see a lot of other uses for recipes with multiple output - waste products, catalysts that don't get used up, breaking a complex item into its parts, etc.

Thanks!

Re: Recipes with multiple output?

Posted: Mon Sep 16, 2013 3:30 am
by kovarex
It is not possible now, but it might be possible in the future.
Note that, this would affect lot of internal logic that would have to be revisited (auto crafting, counting of available products in crafting gui, resulting inventory of assembling machine, and it's size would limit the available recipes etc)

Re: Recipes with multiple output?

Posted: Mon Nov 17, 2014 11:32 am
by Lee_newsum
kovarex wrote:It is not possible now, but it might be possible in the future.
Note that, this would affect lot of internal logic that would have to be revisited (auto crafting, counting of available products in crafting gui, resulting inventory of assembling machine, and it's size would limit the available recipes etc)
is there ne plans to do this?

Re: Recipes with multiple output?

Posted: Mon Nov 17, 2014 11:43 am
by Phillip_Lynx
On the mod side it is doable (but I do not know in what extension).

I have seen in dytech, that you clean water and get from the input of dirty water an output of clean water and stone.

Re: Recipes with multiple output?

Posted: Mon Nov 17, 2014 3:33 pm
by MaxAstro
I think it is currently only possible with fluid recipes - for example, the vanilla "refine oil" recipe has three different outputs, and the recipe for sulfur outputs both sulfur and water

I think a recipe can only have one solid output, though, as far as I can tell.

Re: Recipes with multiple output?

Posted: Mon Nov 17, 2014 3:36 pm
by L0771
I'm using this now

Code: Select all

  {
    type = "recipe",
    name = "cursed-tree-00",
    icon = "__Cursed-Exp__/graphics/trees/icons/cursed-tree-seed.png",
    category = "advanced-crafting",
    enabled = "true",
    energy_required = 45,
    ingredients =
    {
		{type="item", name="germling", amount=1},
		{type="fluid", name="blood", amount=1},
    },
    results = 
    {
		{type="item", name="cursed-ammo1-1", amount=5},
		{type="item", name="cursed-tree-00", amount=1}
    },
  },