Page 1 of 1

Circuit question, is this possible?

Posted: Thu Apr 08, 2021 10:36 pm
by LoneWolf_LWP
let me explain,

i have a circuit network that has several signals on it

for example

copper = 100
iron = 10
coal = 5
stone = 5
etc

i have a chest where i can put one kind of item in (any amount, never mixed) it has to be a chest not a constant combinator or anything else.
if that item is for example any amount of coal the combinator should show the coal signal 5, if i insert any amount of iron in the chest the combinator should output the iron signal 10. etc etc

i have very limited experience with combinators so any help is appreciated.
Thank you for your time.

Re: Circuit question, is this possible?

Posted: Thu Apr 08, 2021 10:40 pm
by eradicator
Search for "signal filter" or similar terms. I.e. this thread.

Re: Circuit question, is this possible?

Posted: Fri Apr 09, 2021 3:06 am
by DaveMcW
1. Pick one item and reduce the count to 1.
2. Change the count to 1 billion.
3. Add 1 billion to the matching signal in the dictionary.
4. Remove every signal less than 1 billion.
5. Subtract 1 billion from the matching signal.



signal-filter.jpg
signal-filter.jpg (96.59 KiB) Viewed 1559 times

Re: Circuit question, is this possible?

Posted: Fri Apr 09, 2021 3:47 pm
by LoneWolf_LWP
Thank you i worked it out by the pointers and example bp. i got it working now.

tnx