How do I make a redstone circut that compares 6 inputs?

How do I make a redstone circut that compares 6 inputs? - Content female customer with long curly hair wearing casual outfit sitting at wooden table with netbook in classic interior restaurant while making online order

i do have 6 inputs. 3 A inputs, 3 B inputs. Each one of them can be set to on or off. I now have to compare those 6 and look who has more on-inputs. A or B?

Does anyone have a solution for this?

What i've tried so far:

  • For each A and B, make a dropper counter, that stores up to 3 items. Everytime one A input gets on, it puts one item in the "on" Dropper, whereas when one A-input goes off, it takes it again. After that i have 2 Droppercounters to compare with Comparators. Problem: Goes far to big for my survival map. Don't like that solution.

  • I thought of something like this - haven't tried it actually. Make a 15 signal strength input and feed it to a comparator set to subtraction mode. Now feed all the 3 A inputs into this main line and subtract their power. We get an output ranging from 12 to 15 (12 meaning A has 3 inputs on, 15 meaning A has 0 inputs on).

  • Looked up all the logic gates. There might be one for comparing 6 inputs etc. Haven't found one.

I am trying to make the redstone simple and small!



Best Answer

Really, you're trying to compare two inputs, simply each of those inputs has more than just true or false, it has 0, 1, 2, and 3. Basically, instead of comparing two booleans in programming, you're comparing two integers. It would almost certainly be best to break it down side by side, and then at the end, compare each of those sides, rather than trying to compare all 6 inputs at once.

This likely isn't the best solution, as unfortunately I haven't personally used comparators in minecraft yet, but from what I do know, this should work. You can use a dropper for each side, A and B, that stores a large number of items, when doing the actual comparison, you can then activate the dropper for each side based on the number of 'ons'. These droppers will dispense items onto a gold weighted pressure plate on each side, whose signals will each be put into a comparator. That comparator will then be doing the actual comparison between each side, and the comparator will either output a signal or not based on the signal strength of each side.




Pictures about "How do I make a redstone circut that compares 6 inputs?"

How do I make a redstone circut that compares 6 inputs? - Unrecognizable crop African American female pouring essential oil in glass bottle while making liquid incense at table
How do I make a redstone circut that compares 6 inputs? - Close-up of Mobile Phone Against White Background
How do I make a redstone circut that compares 6 inputs? - Creative female artisan drawing in workshop



How do you make a Redstone signal repeat once?

Add Items to make a Redstone Comparator In the crafting menu, you should see a crafting area that is made up of a 3x3 crafting grid. To make a redstone comparator, place 3 stones, 3 redstone torches, and 1 nether quartz in the 3x3 crafting grid.

How do you make a Redstone comparator?

The comparator was added to Minecraft in version 1.5, alongside hoppers, nether bricks and cobwebs. To make one, you'll need three stone, three redstone torches and a Nether quartz \u2013 meaning that you won't be making one until you've ventured into the Nether at least once.



How To Make 14 Useful Comparator Circuits [Decoders/Counters/Inverters]




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Yan Krukov, Anna Shvets, Math, Andrea Piacquadio