Hello there. My name’s Alaydriem and welcome back to another Minecraft bedrock Redstone tutorial with me, your favorite cardigan wearing Minecraft character! And in this episode, we’re gonna be doing something a little bit different. We’re gonna be talking about boolean logic gates, a little bit about boolean Algebra, but instead of using transistors and diodes and vacuum tubes, we’re gonna be using Minecraft Redstone. And if you already know what boolean logic is and how to do this and how everything works out on a circuit board, go ahead like the video and have yourself a great day! But if you’re new to electronics or circuitry or boolean algebra, or just want to know how some of these basic principles work, make sure you stay liked and subscribe because I have lots of other cool content for you that you might like as well! Now the boolean logic gates that we were talking about in this episode are going to be the most basic and foundational ones: AND, NOT, NAND, OR, NOR, and, XOR – the basic gates that construct nearly all more complex boolean logic circuits. And if none of those words are familiar to you, don’t worry. This is the video for you! We’ll be explaining everything! So what exactly is boolean logic? Well, you can think of boolean logic, a lot like a function, whether that be in mathematics or programming, you have a function that takes a given set of input parameters and then generates an output for you depending Upon how that function is constructed. And boolean logic is just a vastly simplified version of this. You have an input: true or false. And then it generates an output and a logic circuit is just a physical representation of that boolean math. So to get started, let’s dive into what an AND gate looks like inside of Minecraft. We’re gonna start with three blocks right here with a input going into each of them. I’m using repeaters, just so that I have the maximum strength of Minecraft. Two torches on top of the piece of redstone dust between. Torch here in the middle, piece of dust and then a lamp. A lot of this circuit is really just to help you visualize it. This is if you’re thinking about what an AND gate looks like on a diagram, This is more or less what you have. Now an AND gate will return an output if, and only if both of these inputs are turned on or the signal is raised high. So as you can see here, if that signal is on, but if the other’s off, this lamp will not turn on. But the second we turn on both of these inputs, we have an output! So an AND gate takes two inputs, and if both of them are true, (or high, one, whatever terminology you’re using) , then this will output a signal. And as you can see here, we can simplify this in Minecraft, Just by attaching these levers. There’s lots of different ways that you can work with this construction. Now, the next gate that I want to talk about is the NOT gate. The NOT gate may also be known as an inverse gate and it does what you might expect. It will take a given input and then it will invert it. So as we can see here, if we place down a single block with a torch in front of it. And then just for the sake of the construction, pop a torch down. If the input coming into this block is on or it’s high, then the output will be off. And similarly, if there is no input or the input is low, then this light will turn on and off inversely. Now these two logic gates when combined together create one of the most Important logic gates, which we’ll be using to construct all of our other logic gates in this episode, the NAND gate, and for the sake of simplifying things here in Minecraft, we’re gonna have a signal coming into our NOT gate. And this is now an NAND gate and an NAND gate you can think. NOT AND – it is the inverse of whatever the output of AND is. So we can simplify that another way by saying the output of this will be on as long as both inputs are not on. So, as we can see here from this construction, our Redstone lamp is On both of our switches are off. If we flip either one of these levers independently, that lamp will stay on. But the moment that we flip on this second lever here and have both inputs to our AND gate turned on, our redstone lamp turns off. And from this singular gate that we have represented here, we can create every other logic circuit that there is – now this circuit in Minecraft is rather bulky. So we can simplify the entire NAND gate by creating our AND gate circuit here. Instead of throwing a torch here on the middle, we just throw down a line of Redstone dust. So as I’ll demonstrate here, I’m gonna pop down some lever. Throw a piece of Redstone dust right down here, and then throw our Redstone lamp. And as you can see here, this is the exact same. They operate and function exactly the same. If one input is on this stays on. If both are off, it stays on. And if both levers are turned on, Then we have ourselves a inverted output. So this is again, is just the simplified construction of this inside of Minecraft. And as I mentioned earlier, with a single NAND gate, we can use NAND construction to create every other logic gate there is. So as an example, we’re gonna go ahead and build a OR gate out of NAND gates. So we’re gonna start by building two in NANDs right here, and then We’ll have a third NAND gate up here, which will be our output. So let’s pop down some Redstone in dust real quick. We’re gonna go ahead and get some torches on, make our NAND real quick, and then we’re gonna take the output of each of these NAND gates and tie them into one Side of our NAND gate that we have up here and just pop those torches down real. And then over here, just to keep things simplified, we’re gonna bind these two inputs together and then have that be a single input with a lever plop down right here. And it looks like I’m missing one little piece of Redstone dust over here real quick. So we’ll pop that down and now we have ourselvesan OR gate!. So this is composed of two NANDs each with their input tied together that Feeds into another NAND gate, which then generates our total OR gate (circuit). This is what it might look like on a circuit trace, but and OR gate says, if this switch is on, if either of these switches are on, then we have an output That is on, and similarly, if we have both the switches on, we still have our output turned on or another simplified way of saying this, if A or B is turned on, then the output is turned on as well. Of course, if you were building Minecraft Redstone circuits like this, your Minecraft circuit would be ginormous. So we can simplify this OR gate down in Minecraft by placing down a block here, throwing in a input on either side, popping down a Redstone line with a lamp, and then just throwing our inputs right here. So this is the exact same thing. If either of these inputs is turned on, then the lamp turns on. And if both of ’em are turned. The lamp is on. And then if neither of ’em are turned on, then the lamp is off. And as you can see these function and behave the exact same way. Now that we know how to make an OR gate, we can now make a NOR gate which is what you might expect. It’s NOT OR! If not, A or B, then we will have an output and we can do this simply by Inverting the signal, which we can also represent by using a another NAND gate with that output tied to this Redstone lamp right here. And two touches put down. And then if we just bind the input of this NAND gate right here together, We’ve basically just created a NOT gate and NOR gates are unique because you only get an output from a NOR gate if both of your inputs are turned on. So if either of your inputs, if any of your inputs are turned on, then your resulting signal will be off. And as you can see here, once we turn both off, then our signal turns on. And of course in our simplified circuit that we have over here, we can simply pop this out, throw a not gate on top of that, and then throw a line with a lamp back on. And as you can see here, this is the exact same thing. Just a little bit more compact. Now the next foundational logic circuit on our list is the XOR gate, which basically says if the input for either of these inputs is turned But not both of the inputs are turned on or off, then we get an output. So if A or B, but not both are the same. And to build that, we can make a simple modification here to our NOR gate So what I’m gonna do is remove this input line over here, and I’m going to tie these two middle inputs together so that they create a single input. And this is gonna feed into I’ll give you one guess. A NAND gate! So we’re just gonna build that real quick over here. Then we’re going to similarly tie the inputs of these together so that we have a single input coming into our circuit. Go ahead and just bridge that over as shown here, then we’re just gonna pop down a line and let’s make those a little bit close together. Then we can throw down a, lever. And then of course we don’t need this second NAND all the way up here, so we can just get rid of that, pop down our Redstone lamp again. And as we can see here, this is what our circuit looks like. So if either of our inputs is turned off and this case, both of them are then our lamp is off. And if we were to turn either of these inputs on, but not both of them, then our lamp would turn on. So go down here, give this lever a little flick, real quick – as you can see that lamp turns on, turn that off, do the same thing over here. Lamp turns on, but if we turn both on, then our lamp turns off and Again, in Minecraft, this large, hairy, ugly logic gate a can be simplified down as shown here. We’re gonna start by placing down at three blocks in a row here with a block extending from the middle. Go ahead and place down a torch on each of the corners with a Piece of Redstone dust there. Place down another piece of Redstone dust on this torch, torch torch. Then we’re gonna come over here with a piece of Redstone dust in the corners place down blocks in front of those torches. Then we’re gonna place down dust on top of those and then torch torch. Then we’re gonna connect that with piece of Redstone dust, another piece of Redstone dust, and then a lamp help you visualize. Then in the back here, we’re just gonna pop down some repeaters with some pieces of levers. And then as you can see here, we. The exact same construction. So as you can see here, both of our inputs are off, but one switch on lamp turns on and no switch on lamp turns on, but if we turn both on, then our lamp output is off. This is again, just a drastically simplified footprint of the Exact same system that we have here using our NAND gates. And finally the last logic circuit that I want to showcase is the XNOR. So you can think of this as not A or B, but not both – notted or inverted. So using our simplified circuit, because I think we’ve gotten a little Too large with that circuit over there. We can do that simply by inverting this signal that we have here. So we get ourselves this lamp outta the way then that line then throw down a knock gate in front of this with our lamp. We now have ourselves, our XNOR gate. So both of our inputs are off. If we turn either one of them on, then our lamp will turn off. And then if we turn both of them on our lamp will turn on. So the output is only on if both inputs are off or both inputs are on, And those are the foundational logic gates that I think you should know. So I hope that you enjoyed this video or at least found it useful. I know that this is a little bit different from most of the Minecraft Redstone tutorials that I build, but I think understanding how these foundational Logic gates work, help you have a better understanding of how to use them and help you apply them a little bit better. So as always, thank you so much for watching. I always appreciate you guys interacting with me down in the comments or liking in the videos. If you have any comments, feel free to leave them down as well. And I will see you in the next episode. Goodbye. Video Information
This video, titled ‘Minecraft Bedrock: Boolean Logic Circuits in Redstone’, was uploaded by Alaydriem on 2022-08-09 19:30:02. It has garnered 176 views and 13 likes. The duration of the video is 00:13:05 or 785 seconds.
Boolean Logic Circuits! In this Minecraft Bedrock Redstone tutorial, Alaydrim discusses and showcases boolean logic circuits and their implementation in Minecraft!
00:00 Introduction 01:40 AND Logic Gate 02:48 NOT Logic Gate 03:23 NAND (NOT AND) Logic Gate 05:14 OR Logic Gate 07:27 NOR (NOT OR) Logic Gate 08:34 XOR Logic Gate 11:26 XNOR Logic Gate 12:15 Outro
Be sure to follow me on Twitter to get updates when I post a new video! https://www.twitter.com/alaydriem