@@degisikadam726 I could only make a regular non-compact XOR gate using and and or gates. it's surprisingly difficult understanding a virtual mechanic like minecraft. regular laws of redundancy and logic don't always apply here as you have to take into consideration that redstone works in specific ways.
When you get the whole logic, and will have all logic functions in your head understanding the ways how to get one from others you can make dozens of designs. I made some without candles at all. Also I made 1 block thickness design and it is big. (The only thing I had to make output sideway, so it is 2 blocks wide actually)
This takes me back. I made my first redstone computer with your video. You have my grattitude! You can make a standing version with 5 blocks in an X shape, torches on the bottom blocks, redstone dust on the middle block, two blocks in front of the bottom two blocks, redstone dust in front of the torches, have another torch sticking out of the middle block, and two torches sticking out the front two blocks. The vertical version uses about half as much redstone as the horizontal one---perfect for survival mode--whereas the horizontal version is great as a half-adder because the third torch's output can be taken as a carry input.
@@abeke5523 As long as one of the levers is pulled, the center torch is out and one of the side torches is on. If both are pressed, the center torch turns on which turns off the side torches.
The xor equivalent he uses is (not(notA or (not(notA or notB)))) or (not(notB or (not(notA or notB)))) not means redstone torch and or means something that has 1< power sources.
The ripple carry adder was so hard. First of all it extends off very fast and you need tons of redstone repeaters so i had to make the carry out go down and into the next input. And so much more like mixing up inputs and outputs.
pro tip: to make this work with three inputs, make two of these and put the output of gate 1 to an input of gate 2. Place input 3 on the second input of gate 2.
Even more compact xor gate: P = power source R = redstone dust C = A redstone comparator in subtraction mode Design: [ ] [R] [R] [ ] [R] [C] [C] [R] [P] [R] [R] [P]
Much thanks!! this worked for my secret spiral 3x3 piston door lmao at first it wasn't working correctly, like it was a one way switch where one could open one side but only if the other wasn't powered... Turns out I had the two repeaters backwards on the device. 😅
i watched this video today and this was exactly what i wanted so i liked it then i checked his views are pretty good but 129 subs only so i subscribed to him too.
raafmaat I like this design for xor better then the "most compact" one on minecraft wiki, so far, because the wiki one does not make sense. I do xnor by just putting an inverter on here.
ArmyOfCamels No. Half adders outputs two things: a sum and a carry. The sum is uses a XOR gate but the carry uses an AND gate. This circuit is half of what is used in a half adder.
This is great!! now how would you hide something like this, so the user only sees a switch or maybe 2 .. also one switch could be inside the house or building and the other one outside somewhere nearby the door and convenient, how would you acomplish this... and how big of a house would you need to fit all the wiring and such? it would be great for lighting systems too operate the same light or lights with 2 switches in let us say somewhat remote locations like on either end of a long hall say... just curious how do you route all the wiring in these cases so that the whole thing is mostly at least sight unseen?
does it still work in 1.17? in case this should be the best xor gate ever! is 3*3*2, don't need to drop items so shouldn't be laggy and it makes it perfect for huge projects
XOR gates are binary codes where if you have one input it gives an output, but if you have both inputs or no inputs it won’t turn on. But I figure you already know this lol
SoapyLynx I think you are asking about the redstone. Redstone-wise, pause at 0:24 to see the whole thing, keeping in mind where the levers go. As we see, since the redstone torches near the levers are not gates, when the levers are both on the torches both turn off. This means there is no signal going to the close torch, so it turns on. It does not power the redstone that connects to the door, but it does power those next to it, causing those not gates to both turn off. When the levers are both off, the far torches are on, and the redstone just takes the direct path.
The downside to this XOR model is delay. When working with larger redstone projects, the delay may be unwanted. However, if using these early on in a non-iterative system, I think it's more acceptable. I really like how there's this kind of "discipline" that has to be followed with redstone, as of course, with real electronics, the delay is often negligible as we're dealing with actual electricity, as there is no tick rate. However, with this specific gate model, luckily the repeaters only serve to keep the gate three blocks wide. So it is easy to modify to have less delay, at the cost of more space being taken up of course.
lol it took me 1 hour to figure out a 3x5 design, this is so much more compact thanks!
İt took me 30 minuttes make 5x5
@@degisikadam726 I could only make a regular non-compact XOR gate using and and or gates.
it's surprisingly difficult understanding a virtual mechanic like minecraft. regular laws of redundancy and logic don't always apply here as you have to take into consideration that redstone works in specific ways.
When you get the whole logic, and will have all logic functions in your head understanding the ways how to get one from others you can make dozens of designs.
I made some without candles at all. Also I made 1 block thickness design and it is big. (The only thing I had to make output sideway, so it is 2 blocks wide actually)
Actually this is 3x4 design
This takes me back. I made my first redstone computer with your video. You have my grattitude!
You can make a standing version with 5 blocks in an X shape, torches on the bottom blocks, redstone dust on the middle block, two blocks in front of the bottom two blocks, redstone dust in front of the torches, have another torch sticking out of the middle block, and two torches sticking out the front two blocks. The vertical version uses about half as much redstone as the horizontal one---perfect for survival mode--whereas the horizontal version is great as a half-adder because the third torch's output can be taken as a carry input.
Beautiful! Exactly what I was looking for!
It works like magic, I'm still wrapping my head around understanding it exactly by decomposing it in and and or
I understand how it works but I can't properly explain it lol
@@abeke5523 As long as one of the levers is pulled, the center torch is out and one of the side torches is on. If both are pressed, the center torch turns on which turns off the side torches.
@@vyor8837 oof that explanation was way way way WAY simpler than mine
@@abeke5523 I am very proficient in circuit design ;)
The xor equivalent he uses is (not(notA or (not(notA or notB)))) or (not(notB or (not(notA or notB))))
not means redstone torch and or means something that has 1< power sources.
Thanks, now I can build all the logic gates I’ll ever need
very nice for creating a light in a room with 2 switches
Very good! It was very useful for my first machine learning project in Minecraft!
I really like this compact design. Thanks
I build one XOR gate and it worked in the first try but it was VERY big! Thank you for this compact version!
Bruh ima make you a redstone superhuman
Love the design, it’s very useful for making a basic ripple carry adder with the torches
The ripple carry adder was so hard. First of all it extends off very fast and you need tons of redstone repeaters so i had to make the carry out go down and into the next input. And so much more like mixing up inputs and outputs.
This is so nice and useful, I'm looking for more compact logic gates
Looks like ur doing some kind of ritual
this is 8 years old and it still works
10 years old and still works
@@bpmoran89 mhm
12 years old and still works
Still helpful till this day, other designs don't work with one tick pulses such as observers, this was perfect!
I still use this design 8 years after seeing this
I've been trying to find one of these that works for hours now. Thank you so much for posting this and putting me out of my misery. =)
Anyone here in 2024?
Yup 👍
Still works, almost 9 years later!
thanks for making this, helped a ton with my base :D (I have a 2x3 piston door I’ve been only able to have a lever inside before seeing this)
Still works, thanks man my two way lever piston door is working thanks to you.
nice one, but this is a door, not a gate... my search will go on
Once you have the correct final signal, you can route it to whatever, doesn't matter what object is on the end, it will set to the correct state.
This is a LOGIC gate, which are used in digital electronics. Totally different thing than a gateway.
Joke
Your head
Door is the output so it's still an xor gate.
r/whoooosh
You are genius. I have been looking for this the entire time. Now i can complete my piston door.
One of the simplest and best XOR Gates I could find!
Thanks, currently making a computer and needed a way to simulate conditional branching using xnor gates.
i wish the best for you
@@mk9834 Thanks :)
Art is a explosion
@@Simon-cj5ey Ah, I see you're a man of culture as well ;)
Very useful.and easy. Already used this design a lot. Thank you!
OMG THANKYOU! this is the only video that shows a quick tutorial on an XOR gate and it's s
pro tip: to make this work with three inputs, make two of these and put the output of gate 1 to an input of gate 2. Place input 3 on the second input of gate 2.
you made it really compact nice work dude
Even more compact xor gate:
P = power source
R = redstone dust
C = A redstone comparator in subtraction mode
Design:
[ ] [R] [R] [ ]
[R] [C] [C] [R]
[P] [R] [R] [P]
The most amazing thing is that it still works in 1.16.5
Why would it not ? It's just dust, repeaters and torches lol the most basic thing will never break
Much thanks!! this worked for my secret spiral 3x3 piston door lmao at first it wasn't working correctly, like it was a one way switch where one could open one side but only if the other wasn't powered... Turns out I had the two repeaters backwards on the device. 😅
great this circuit worked perfectly in my redstone computer :D :D
2x3x3? Genius!
You should probably show the 4 input states instead of just showing 3, it would help in showing that it's actually an XOR gate.
The fact that the build is symmetrical shows that the 2 other ones “10” and “01” will have the same result
i watched this video today and this was exactly what i wanted so i liked it then i checked his views are pretty good but 129 subs only so i subscribed to him too.
nice n small, sadly this is XNOR , because the outputs are inverted... i cant find XOR anywhere....
true, but i want a XOR, not an XNOR where i have to invert the outputs again back to XOR :P
raafmaat Well that's the best way to make it.......
It's not XNOR. With XOR, one output or the other is on, but not at the same time. With XNOR, it returns true if the inputs are all on or all off.
TinyFoxTom hmmm... i'd have to look into that... although that post was almost a year old and i have no idea anymore what i needed a XOR for :P
raafmaat I like this design for xor better then the "most compact" one on minecraft wiki, so far, because the wiki one does not make sense. I do xnor by just putting an inverter on here.
After 9 years it still works lol
Thank you for actually working XOR gate. The one that is on official wiki and uses comparators doesn't work.
It does work but it has to be exactly right or it wont work. Its more compact but its kinda annoying to use and this one is easier to use
This is amazing thank you
this is actually a half adder if you put a block on the torch which turns on when both levers are on (and gate) and radstone on top of it
ArmyOfCamels No. Half adders outputs two things: a sum and a carry. The sum is uses a XOR gate but the carry uses an AND gate. This circuit is half of what is used in a half adder.
starsky1012 the back torch is the and gate
ArmyOfCamels
one ouput
starsky1012 ? are you too dumb?
ArmyOfCamels
Sorry. One output*. I forgot a "t".
Thank you!
Thanks, now I can make 4-bit computer!
Thats what I'm doing now! How did you implement the registers?
Wow a nice tuto- AAA WHEN DID THIS GET UPLOADED??!
Thank you so much.
You are literally a champion, thanks a bunch!
if you have a wireless redstone mod just hide this underground
Hi im looking to do another xor gate but with 3 switches instead of 2. It is possible?
tysm very useful if you make it correctly it is stackable
Thanks you I was trying to figure out how to get my piston doors to close and open for to long haha
Thanks, this helped me a lot.
Thanks
Thank You!!!!!
Best gate most compact I've seen in my life.if favorited and may subscribe
This is great!! now how would you hide something like this, so the user only sees a switch or maybe 2 .. also one switch could be inside the house or building and the other one outside somewhere nearby the door and convenient, how would you acomplish this... and how big of a house would you need to fit all the wiring and such? it would be great for lighting systems too operate the same light or lights with 2 switches in let us say somewhat remote locations like on either end of a long hall say... just curious how do you route all the wiring in these cases so that the whole thing is mostly at least sight unseen?
Underground
look up "magic switch minecraft"
Thank you so much, just seriously, THANK YOU
Brilliant. I don't know why I've been using the clunky design at the MC Wiki. :)
***** I figured out the comparator one.
TheLoneWolf But you can't use it for a xnor.
+NotchMath You *probably* can just invert it, right?
So cool.
explanation?
thank you
What is screen recorder
FINNALY THANK YOU
Can you make an overview next time, it's really hard getting a screenshot to show my friends
just build one lol
omg thx i was stuck doing the whole or and and thing that was like, 50x50x5
Thanks so much, very help!
thanks so much. very clear and easy
very helpfull
Genius
thank u so much!
Mumbo Jumbo but in 2012
does it still work in 1.17? in case this should be the best xor gate ever! is 3*3*2, don't need to drop items so shouldn't be laggy and it makes it perfect for huge projects
it still works in 1.19
@@zachmann2911 nice
OMG THANK YOU
i was looking up explanations of xor gate for my discrete math exam and this is the first video I click
XOR gates are binary codes where if you have one input it gives an output, but if you have both inputs or no inputs it won’t turn on. But I figure you already know this lol
@@benaiahhendrickson9850 im out of school
Shouldn't the door stay open if both are on?
No, the idea of XOR is that if both inputs are on or off at the same time, then output is 0.
SoapyLynx I think you are asking about the redstone. Redstone-wise, pause at 0:24 to see the whole thing, keeping in mind where the levers go. As we see, since the redstone torches near the levers are not gates, when the levers are both on the torches both turn off. This means there is no signal going to the close torch, so it turns on. It does not power the redstone that connects to the door, but it does power those next to it, causing those not gates to both turn off. When the levers are both off, the far torches are on, and the redstone just takes the direct path.
Thanks, this post was last year by the way
Haha yeah, but still want others to see it even if you figured it out.
Have a good day ;)
The downside to this XOR model is delay. When working with larger redstone projects, the delay may be unwanted. However, if using these early on in a non-iterative system, I think it's more acceptable. I really like how there's this kind of "discipline" that has to be followed with redstone, as of course, with real electronics, the delay is often negligible as we're dealing with actual electricity, as there is no tick rate.
However, with this specific gate model, luckily the repeaters only serve to keep the gate three blocks wide. So it is easy to modify to have less delay, at the cost of more space being taken up of course.
they also function as diodes, which is important to this build (i.e. you couldn't replace them with bare wires / redstone)
Good job!
Thank you so much:)
Thanks this is the only one that worked
perfect video.
thx
Thank you! This was very helpful :)
awesome video man
genius
so smart!
Yes
still works
It is a, beautiful!
Can you make a torchless version of it?
It did not work I seen the part where he puts in the red stone in the middle and it worked
Great, thanks so much :D
Nice
Compact, but not so fast
:D
There's better way of doing it. Put one repeater in the middle to turn off the middle torch and replace the repeaters with dust. xD
Hey Yow I tried that but it didn't function the same way
Dude I've been trying to do it myself for 10 hours legit and all I have to do was this? I thought I need to use a comparator.
I mean at the beginning ik you could just use repeaters for a basic splitting but wow this is so compact!
Ah I see.. Brilliant. Inverting an inverted signal is a positive. Nice.
+AaronLow1 Not if the signal you're inverting twice is negative.
XOR gates don't do that... They give an output if one, only one of its inputs are on.
nice vid thanks for helping me out :D
i managed to make a huge one and i was happy, but after seeing this i am feeling completely stupid..
Now make 1x1
Cool
works in 1.15.2
Cool!
minecraft graphics were so bad back then