Page 1 of 1

New virtual signal Recipes materials

Posted: Sun Oct 29, 2023 8:29 am
by Fusogeno
TL;DR
New virtual signal, like Each signal, for arithmetic and decider combinators results that return recipe materials.

What ?
I have a set of signals like 2 Gear, 1 green circuit,...
Arithmetic combinator: Each * 1 -> Recipe materials
The result should be: 5 iron plate (2*2 gears + 1 green circuit) and 3 copper cable.

You can use all arithmetic operations to multiply, divide, add or subtract the input signals before returning the recipe materials.

You can use decider combinator to filter positive/negative signal or a min/max value

Why ?
If you want request materials in a logistic network for control smart train or space platform, you will be able to obtain the correct ratios with a few combinators.
PS: and for my sushi XD

Thanks you :)

Re: New virtual signal Recipes materials

Posted: Sun Oct 29, 2023 11:40 am
by Qon
Took a while to understand the suggestion.
It's a bit weird to decide operation with the output signal.

It would make more sense to output [everything] and have the operation be "ingredients required". If you want to multiply or something then do it as a separate step.
Take a look at the Crafting Combinator.

I'm using that mod. It's great. It has a crafting combinator for setting the recipe of machines and it has a recipe combinator for doing the kinds of recipe calculations that you are asking for. And it adds new virtual signals for all the recipes where there's not just 1 recipe for each product (like the multiple solid fuel recipes) or for products where the recipes don't produce 1 output (like oil).