Logic gates logic gate gate of logic logic made of gates hmm so one day I was watching Steve mold and I came across a video of his where he made water-based logic gates and then used them to create a water-based binary adder and I thought that was super cool Because I’ve never seen anyone Implement logic without electronics let alone doing something so primitive like water and gravity in that video He also mentioned a binary Adder made of dominoes done by Matt Parker of stand-up maths also a great video and this all got me thinking I wonder if I can create Logic like this in Minecraft without using any Redstone but then what would I use I mean I could try to use water like Steve but then I thought of creating logic gates with literal Gates and I mean that was just too juicy for me to Ignore but if you do want to see me try it with water then let me know down in the comments and subscribe so you don’t miss it but anyways here we are and we’re going to be making some logic out of fence gates and we’re going to be Making a binary Adder after that so where do we start well let’s look at exactly what logic gates we need in order to build an adder in the first place bam so there’s the diagram for a 4-bit Adder right next to Steve mold’s design now unfortunately I’m not going To explain exactly how an Adder Works in this video so I’ve linked some good explanations in the description if you need it but I will tell you what these symbols mean so this error with the curved line in the back is called an X or gate which outputs true if the number Of true inputs going into it is odd so for two inputs it’s just one or the other but not both and also not neither and this one over here that’s shaped like a capital D is an and gate which outputs true only when all of its inputs are true pretty self-explanatory and Actually those are the only two logic gates in this particular diagram but I want to replace these xor gates with or Gates since that’s the more traditional design for a full adder this is the shape for an or gate which is basically just the xor gate but without the extra Curved line and it outputs true when any of its inputs are true so now that we have our list of three gates let’s get building so what to do with you so if we want to make logic gates out of fence gates then we need to find a way To pass signal through it now luckily for us the fence gate is really good at blocking and letting through entities it’s kind of what it’s designed to do so an entity can land on top of it but it can also be passed through when you open it So of course the first thing I thought of was a minecart we can move them on tracks and then kind of drop them on top of these fence gates and also on top of pressure plates and through trip wires but it’s one block tall and I don’t Really want to use a ton of rails in this system so I had to think of other things the next thing I thought of was arrows because I kind of thought that it’d be cool to just watch arrows propagate through logic but then we kind of have this problem of precision Especially if it’s being shot sideways and when you open the gate it kind of maintains a small amount of momentum and also if you want to go ahead and shoot them from the top very precisely it’s pretty difficult to get it right on Target and even then it doesn’t fall Perfectly straight although that was pretty good so finally I landed on the armor stand well it’s also made of wood so it kind of matches the aesthetic and it’s also two blocks tall which hopefully makes it easier to work with so I think I’m gonna go with armor Stands for our way of transferring signal so a couple ground rules that I decided to set for myself is that I didn’t want to use any components that had anything to do with redstone that means no redstone dust no Redstone repeaters torches comparators or even anything that has Redstone in the crafting recipe Like droppers dispensers observers note blocks or Pistons or anything like that so basically the way that these fence gates are going to be activated is either by pressure plate like this or by tripwire hooks like that and actually right here we kind of have our first Logic gate by accident this would be a perfect and gate so if only one of these armor stands Falls if this one on the left Falls onto the pressure plate then it doesn’t go through and same with this one if this is the only one that falls And it falls on top of the fence gate then it doesn’t fall through but only when they both fall then this one actually makes it all the way through so there we go with the and gate I mean that was pretty easy now for the xor Gate which I think will be the hard one so for the xor gate I’m thinking something like this where these two blocks here are our two inputs and if either one of them only one of them comes through like this then it will fall through like that same with the other side But if both armor stands come through then we need to be able to block both of them I didn’t do that in time I think a good way to do that would be to have one of the armor stands block the other one so this one will block this one’s path And then this one will block this one’s path that way if only one comes through then its path is still open but this other path is closed which doesn’t really matter and same with this one when this one comes in and only this one comes in then this side is blocked but He’s free to go through but if both of them come at the same time then they’re blocking each other and then we’ll get a state like this now the problem is these two gates need to be powered by default like this so that they actually go through and then When one of them arrives then it needs to be de-powered and since we can’t use torches that’s that’s kind of tough maybe we can do something like this where we have two armor stands here and they are pre-powering these tripwire hooks that are pre-powering these by default and then say when this one Arrives right then it activates this fence gate here drops that one down to the void and then blocks the other one’s path same with this one here so the real question is how do I detect whether one has arrived and then send that signal here or actually crisscross the signals Without redstone hmm okay so I have a crazy idea what if we kind of drop them off center of the block kind of in between two blocks so that it falls next to this fence which has a pressure plate on top of that this pressure plate will activate this fence gate which will Release this Minecart and this Minecart will drift onto that pressure plate over here which will open uh this fence gate over here so I mean let’s try it let’s see what happens oh that’s embarrassing oh my gosh okay that should be better so let’s see it’ll go down and hopefully ah Okay never mind all right third time’s the charm hopefully I just kind of made sure that the sideways momentum gets canceled out and there we go nice that’s good yeah and that would have uh had that fall through and then that would shut I think yeah that’s a Good proof of concept now let’s see if I can replicate that on the other side all right there we go I moved these up by one block just to make it a little bit easier to build and so let’s just test it out one at a time so only one comes through We should see that it there we go drops that blocks that in time and then falls through which is good all right let’s try the other side comes through it should block the other one in time there we go and it falls through itself nice and now if they both come in at Roughly the same time then they should in theory block each other okay nice I think I want to make this maybe like one block longer just to be safe but that’s pretty good I wow an xor gate made with water mine cart rails fence gates fences pressure plates trip wires I mean yeah but there it is no Redstone and powered only by fence gates and other stuff too and look I know what some of you are thinking you need to reset it manually so it’s not exactly reusable but hey neither were the dominoes so I think it’s fine Please forgive me okay so we have the and gate here and the xor gate here and now the thing that we need next is the or gate and uh yep there it is look I’m serious watch so if one comes through we have an output if both come through then we Still have an output and if none come through we have no output so now we actually technically have all the pieces we need to make the adder so let’s start putting that all together before we do that though we do need to address one little elephant in The room you see these Junctions on the diagram where the signal splits into two areas well that’ll be a problem with my current designs here because I designed each of these gates to have two inputs and only one output which kind of makes it good for cleanliness but when one Armor stand needs to then split into two armor stands we don’t exactly have an answer for that but I do have a really janky solution basically what I’m thinking is at the same time that an armor stand drops if there’s a junction then it’s going to essentially duplicate Itself by Deploying another armor stand that’s waiting at that Junction kind of like this and yes I do realize that this makes it not reusable again and it needs to be reset every single time manually but hey you know we’re having a bit of fun here it’s fine so let’s go ahead and get started Combining all of these pieces into a full 4-bit adder Thank you Foreign That took so much longer than I expected and it was way harder than I thought too especially because I had to worry about timing these things it’s it’s not quite as simple as just connecting these logic gates together according to the diagram because these xor Gates I designed to be Timing sensitive so the two armor stands have to kind of fall in here at roughly the same time in order for it to be triggered properly so I had to make sure that no matter where it was coming from whether it was from the output of the Previous xor gate or it was coming from a carry that all things would converge at the next xor gate at about the same time and so that’s why you see all of these zigzagged waterfalls over here and you know little bits of Soul Sand over here and Soul Sand there and there’s a Little bit of Soul Sand here and there and there as well but that was all just for timing and I extensively tested I’m sure you could see at least some of that during the time lapse each each of these sections I tested for timings individually at least as thoroughly as I Could but I still haven’t added two numbers together fully so we do have these outputs here so that’s the carry that’s the eight that’s the four that’s the two and that’s the one I also went ahead and took the liberty of color coding each of these logic gates According to their type so the xor gate I went ahead and made green the and gate I made orange and the or Gates down here I made baby blue now you can kind of see that the or Gates kind of have a funky shape to them this one kind of comes Around like this and comes this way and this one has this sort of shape and this one down here is just a simple L shape well that’s just because the or gates in this example are just converging lines of water so I can really make them any shape that I want Oh and the eagle-eyed among you may have already seen this giant cluster of command blocks up here don’t worry I’m not doing anything cheaty I’m just using this to reset the contraption because there’s a lot of Minecarts and a lot of armor stands that I need to put in each Of these xor Gates and each of these Junctions here and although I clearly marked them it would take a long time for me to reset it and I may forget some spots like down here there’s a couple of branches and there’s up here a branch and there’s a couple branches here so All this was just to make that process a little bit easier actually a lot a bit easier and a lot more reliable as well and now it’s about time to add two numbers together for the very first time gives me two random numbers between 1 and 15. Here’s a random number five five okay well I asked for two I’ll just ask for another one so five is zero one zero one so I’m gonna populate this left hand side starting here this one’s going to be a zero this one’s going to be a one This one’s going to be zero and this one’s gonna be a one and you know what it just dawned on me that I never actually explained how to use this thing so basically these two blocks right here these two inputs are the two digits in the ones place these two are the two Digits in the twos place these two digits are the two digits in the fours place and then these two are the ones in the eighth place so the first number that you’re adding together is comprised of this bit this bit this bit and that bit in that order and Then the second number is of course the other one so this one this one this one and this one basically all the first blocks and then all the second blocks so the first one with five is zero one zero one and let’s go ahead and ask for the second one Give me a number between 1 and 15. okay 14. so 14 is uh one one one zero right so that’s eight plus four plus two plus zero so now we have zero one zero one plus one one one zero so the way that I’m going to get These all to drop at the same time is I’m just going to go ahead and use world edit and delete these blocks now of course there are ways of doing this without commands uh namely I would think of doing it with just a line of signs That are all hinged on one side so you just kind of like punch out one sign and then all the rest fall at the same time or we can break the rule of no Redstone and use trapdoors instead but you know what I’m just going to use commands Because why not the rest of it it’s all powered by not Redstone so let’s see so without further Ado let’s go for it okay so they’ve dropped these two are going through that one has gone down we have this xor being blocked all three of these go the ones places already fallen All the way down we have this yeah we have this xor gate coming through this one is going to fall down through as well these two are going to arrive if I timed it right at roughly the same time into this xor gate which they do and they get adequately Blocked fantastic and we have our carry bit so let’s check our math here so 5 plus 14 is 19 right so 19 is going to be 16 plus 2 plus 1. so this right here is our carry bit we have 16 here and we have nothing in the eight spit And we have nothing in the fours and then we have a two and then we have a one so actually in that particular example it ended up working so that is absolutely fantastic all right so now let’s try a bit of a harder example maybe something like 11 plus five so the Reason that I say that is because it has all kinds of different cascading carries that happen throughout the Edition and it ends up with 16. so basically we should have only the carry bit and nothing else so all of these xor Gates going down this line should all fire so Let’s see what happens so 11 plus 5 11 is one zero one one and five is zero one zero one all right let’s see what happens and it falls we should see yep that and over there back there got triggered this xor works perfectly This xor falls through and we should see that Let’s see this xor there we go we should see that come through like so and these should get blocked oh okay that didn’t get blocked uh we’ll look into that a little bit later uh but you see here okay we do have this one being blocked properly that one being blocked properly And the 16 has gone through so how come this one fell through ah okay there’s our culprit so this armor sand fell through before this Minecraft had a chance to come through and get onto this pressure plate and because it couldn’t get to this pressure plate because it Was being blocked here this one was closed properly but this one was never closed properly so hmm I wonder what I could do about that so in essence what’s happening is this armor stand falls through and then this Minecart gets triggered to go through and yeah it doesn’t have enough momentum To push through or perhaps it just can’t it also can’t push this onto the pressure plate which is a bit unfortunate I wonder if there’s a way to give this thing a little more momentum now it is on a slope and we can’t use powered rails So hmm I wonder if I can use a Minecraft chest instead now these things tend to have a little bit more momentum actually quite a bit more momentum than the regular mine cart so it should maybe be able to push through this armor stand let’s see if that’s true Oh no problem at all it just Powers right through it that’s perfect so basically what we have to do is replace the minecart on the right hand side with a Minecraft chest that’s easy enough so I’ll just fly up here and edit every other one to be a minecart chest right so it’s Chest Minecart like that okay yeah we’re gonna go ahead and edit all the rest of these okay so with that simple modification we should be able to complete that Edition so that’s eleven plus five one zero one one plus zero one zero one all right second time’s the charm Maybe All right and they’re off so these ones should fall through no problem this one should stop itself we do have the and Trigger down there we should see that these two armor stands will come into here at roughly the same time ish that one does beat it to it but the Minecraft Chest does allow this to work properly and the rest of it did work before so it should work again so here we go we have this one triggering perfectly and we have that one triggering perfectly and we have our carry bit coming out and now we have our perfect sixteen one zero Zero zero zero eleven plus five equals 16. that is amazing and I also did a bunch more just for fun because this is really satisfying to watch and that’s about it for this video thank you for watching I hope you enjoyed it and if you did please be sure to hit That like button I would greatly appreciate it and subscribe for more Redstone Shenanigans like this but before I close out I want to give out two special shout outs a few days ago I made a community post with the xor gate just to see if anyone would guess what It is and two people got very very close one of which was the crazy sheep who left a very detailed description of basically exactly what it does and the only thing that he was actually missing was the word exorgate so I’m gonna go ahead and declare that a success for you Crazy sheep thank you so much and congratulations and the second one goes out to jacobo valepiano I hope I didn’t put your name too badly who just said or maybe a logic gate which yes it is a logic gate so congratulations jacobo you also got it right and on that note I’ll End it here bye-bye foreign Video Information
This video, titled ‘Making Logic Gates out of ACTUAL GATES in Minecraft’, was uploaded by jazziiRed on 2023-04-09 15:00:09. It has garnered views and [vid_likes] likes. The duration of the video is or seconds.
Today we put the gate in logic gate. Mentioned Videos: Steve Mould’s Video: https://youtu.be/IxXaizglscw Matt Parker’s Video: …