Header Banner
wonderhowto.mark.png
Gadget Hacks Next Reality Food Hacks Null Byte The Secret Yumiverse Invisiverse Macgyverisms Mind Hacks Mad Science Lock Picking Driverless

How to Make a 4 Input XOR-Gate in Minecraft

Aug 9, 2012 06:26 PM
Aug 9, 2012 06:28 PM
Redstone circuit setup in a Minecraft environment.

The most complicated logic-gate to build in Minecraft is the XOR-gate. (Well, actually it is the XNOR but it is just a XOR with a NOT at the end.)

On a XOR-gate any of the inputs (usually two) can be high but only one at a time. So far I haven't seen good XOR-gates with more than 2 inputs, you can do a 4-input one by connecting two XOR-gates to a third one, but it gets quite large.

Redstone circuit design in Minecraft.

But today I thought that maybe you do it in a better way by using the goldilocks-gate I came up with. And I guess most of you who are reading this are thinking "What? How?"

Let me explain. The goldilocks-gate only lets a signal through if it is 15 blocks away from the source, too far away and the signal is to weak, too close and the signal is too strong.

Redstone contraption in Minecraft with lever and torches.

But if the signal is just right it will reach the lower repeater, which will in turn let the upper torch on, while the power isn't too strong and won't reach the upper repeater that would quench the torch. (Please notice the 2-tick delay on the upper repeater, otherwise it wil get out of sync with the lower part and the upper torch will give a short pulse when the signal is too strong.)

Ok, that maybe didn't make things clearer and I guess you are still thinking: "What? How?" Well, this is the tricky part.

Minecraft redstone circuit with a blue block and surrounding materials.

Here is an example, the power would need too travel 2 blocks longer on the wood blocks what it would have to do on the dirt since there is a lapiz block blocking the shortest path. And now some of you are thinking "Oooh, yeah, that is clever." but for the rest of you, here is what I made.

I simply placed 4 of these in a row, put power in one end and placed a goldilocks-gate on the other end in such a way that as long as exactly one of the holes was cut off, by a piston, the sum of the path would be 15 blocks, just right for Goldilocks. :)

A Redstone circuit setup in a Minecraft environment.

This looks a bit confusing but I'm using a feature of glowstone, power can not run down the edge of them. (Up is ok, just not down.) I did this to be able to squeeze in 4 inputs before I would run out of power.

Anyway, better show this step by step.

Redstone circuit built with wooden planks in a Minecraft setting.

First build one of these.

Redstone apparatus in a block game environment.

And then add a sticky-piston that will push a block to make the path longer. You do not need to build it this way, the piston can just as well block the path from above, whatever fits you build best.

How to Make a 4 Input XOR-Gate in Minecraft

Copy it four times.

Redstone circuitry setup in a Minecraft environment.

Break the first two blocks and power it like this. It looks a bit weird but I found it to be the easiest way to do it.

Add the goldilocks-gate on the other side.

Redstone contraption in Minecraft showing wiring and components on a sandy surface.

Add some inputs, an output and you are done. :)

Minecraft redstone contraptions and lamps layout.
Minecraft redstone circuit components arranged on the ground.
Minecraft redstone contraptions and lamps layout.
Minecraft redstone circuit components arranged on the ground.

The next big software update for iPhone is coming sometime in April and will include a Food section in Apple News+, an easy-to-miss new Ambient Music app, Priority Notifications thanks to Apple Intelligence, and updates to apps like Mail, Photos, Podcasts, and Safari. See what else is coming to your iPhone with the iOS 18.4 update.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!