Hello guys,
I hope you're doing the Factorio well.
I need your help, more specifically, how to How to find the material have maximum quantity with a combinator.
The background is I'm building a space platform, I'm struggling to balance of processing asteroids. e.g. carbonic, metallic and oxide.
My current thought is, using a combinator(whatever decider or arithmetic), to find out which asteroids having the maximum quantity on the transport belt, then send a signal recipe to the crusher to balance the processing. for example, if I found there are more metallic asteroid on the belt, I would like to using the decider to send a metallic asteroid reprocessing recipe signal to the crusher. if it better that we could using one or two combinator to achieve this goal.
Currently i'm using decider, but cannot find a program like "each<everything", output "each".
do you have any thoughts on this?
have a great day.
How to find the material have maximum quantity with a combinator.
-
magicmotor
- Manual Inserter

- Posts: 1
- Joined: Tue Feb 24, 2026 2:15 am
- Contact:
Re: How to find the material have maximum quantity with a combinator.
Isn't that just selecting the maximum of the input signals? That's a selector combinator in its default configuration.
With some hardcoding you could map straight to the reprocessing recipe signal with a decider and a constant; see this post, "Map item to recipe".
With some hardcoding you could map straight to the reprocessing recipe signal with a decider and a constant; see this post, "Map item to recipe".
Re: How to find the material have maximum quantity with a combinator.
For asteroid reprocessing, I specifically made a post on discord that uses the lookup table concept in a single combinator:
https://discord.com/channels/1396775903 ... 2211866708
It doesn't use EACH to directly determine the asteroid chunk with the biggest amount, because if you use this, you still don't have the recipe to process the given asteroid. You need a second combinator for this. With the approach above you can do it all in the same combinator, but you need to compare everything to everything in the conditions explicitly, but since there are just 3 asteroid types, this is feasible.
https://discord.com/channels/1396775903 ... 2211866708
It doesn't use EACH to directly determine the asteroid chunk with the biggest amount, because if you use this, you still don't have the recipe to process the given asteroid. You need a second combinator for this. With the approach above you can do it all in the same combinator, but you need to compare everything to everything in the conditions explicitly, but since there are just 3 asteroid types, this is feasible.

