Yo what’s up guys welcome back to part six of logical redstone a quick note before i start uh my channel i don’t know if you noticed but it’s actually growing if you’re new i’m super happy to have you here i hope you enjoy and if you have any suggestions at all for Future videos or really anything just leave a comment i read all comments but with that out of the way let’s get started today we’re just going to be talking about pulses and clocks first let’s talk a little bit about repeaters because it’s really important for all this stuff so there’s four different Type of repeaters obviously this is the one that you place down by default but if you adjust it with right click you can adjust the amount of ticks that it’s set for this is called a one tick repeater or a normal repeater if you hit it once with right click it becomes a Two tick repeater and adds another tick of delay so by default it only waits one tick before repeating the signal but if you have a two tick repeater it waits two ticks before repeating the signal all the way up to four where you input the signal it waits four ticks and Then outputs the same signal so with that out of the way how do we actually generate pulses well you can just use buttons i mean that’s what i was doing already a stone button will generate a 10 tick pulse that means that as soon as i press this button it will generate a Signal in all directions that is the length of 10 ticks so you can actually see it in these repeaters these repeaters are two ticks each and so when we press this button we should see a 10 tick pulse flow through them meaning that we should see 5 of them because 5 Times 2 is 10. and so you can pause the video here to count them it should be five long wooden buttons just get a little bit longer they generate a 15 tick pulse now i have three tick repeaters here so 3 times 5 is 15 so we should see a five Long repeater chain of this pulse once again but don’t be confused with this one this wooden button is longer this one’s 10 ticks this one’s 15 ticks it’s just that these are longer repeaters okay that’s simple enough but what if we want to generate a pulse that’s shorter Or longer well for shorter we can at least use these pulse generators which are really nifty like i literally use these all the time it’s just a sticky piston going up dust into the back and a repeater out front and the repeater out front is going to tell you what kind of Pulse you’re generating if you put a one tick repeater out front you get a one tick pulse being generated two tick repeater out front generates a two tick pulse and so you can see it in these repeaters i’m actually going to slow down the game so you can see a little Bit easier when you flip this lever it cuts off the signal and gives you a nice little one tick pulse so same thing over here if you do this it cuts off the signal for two ticks and you get a nice little two tick pulse This is a really easy way to just set up a little circuit that gives you a one two three or four tick pulse depending on what you need but uh i don’t really like pistons they’re not solid state so if you want to go with a piston-less Design here you go you have a comparator and then it waits a certain amount of time before cancelling that comparator so if you want to generate a two tick pulse you basically send it through the comparator and also wait two ticks and then shut off the comparison so let me Just make sure the game is slowed down again and when we flip this lever we wait two ticks and then shut off the comparator so we get a nice two-tick pulse coming out and here’s the same thing but for four ticks and what’s even better about these Designs is you’re not limited to just four ticks you can actually make it as long as you want it’s completely variable all you have to do is extend this line out so if i wanted to say make a eight tick pulse you could just put two four tick repeaters expand this out Like this grab another lever and you’re good to go so if you flip this it’s gonna output signal weight eight ticks and cancel it and i don’t really have enough repeaters to show it but hopefully you saw that it reached all the way across for these eight repeaters and then stopped so we Do indeed have a tick pulse coming out of here all right so now we know how to generate a pulse of pretty much any length another thing i want to show you which can be really useful in making pulses like these is called pulse extension basically we’re going to take An existing pulse and delay it and add it back onto its own line to extend itself so let’s say we’re starting with something like a stone button which is going to generate a 10 tick pulse so what i’m going to do is i’m going to draw out that pulse As if you can like physically see it so this line is 10 blocks long and so this resembles our first 10 ticks of time where the stone button is on now what would happen if we delayed it by some amount and then added it back on well Let’s find out so we can take this line and delay it by let’s just say two ticks so make another line here so now the green and blue are both 10 ticks long but the blue was delayed by two ticks and so if you sum these together and look at what their combined Like total is you can see that you get a pulse that is 12 ticks long all right so let’s try this if we have a stone button put it here let’s give it its main line and then we can give it a 2 tick repeater and then Plug it back into itself and this should generate a 12 tick pulse and we can prove it to ourselves by making a bunch of 4 tick repeaters and we should see a signal that is three repeaters long because four times three is twelve so let’s see game’s a little slow but There we go so that is the idea of false extension it’s really that easy um the only thing you have to worry about is if these green and blue get too separated from each other for example if this guy was moved like up here well it’s like now your red is Gonna look something like this and so you’re gonna have gaps in your pulse so you want to make sure that doesn’t happen but you know if you draw a diagram make sure that it always has a continuous total line you should be good to go all right before i talk about the Final property of this video which is clocks i want to show one property that like people like never talk about and i remember when i didn’t know about this it caused all types of bugs so i just want to make sure you’re aware of it that way it doesn’t make those same bugs For you uh so if you have a one tick pulse for example and you know that’s all fine as long as it’s going through a bunch of one tick repeaters but as soon as that one tick pulse goes through a repeater that’s longer than one tick it actually extends The pulse so let me make the tick rate like uh three and i want to show you what happens here you flip this lever we get a one tick pulse it goes through here then it gets delayed by four ticks in this four tick repeater but then look what happens it Gets extended to a four tick pulse so repeaters actually do two things they not only delay the signal by the amount of ticks they’re set for but they also extend pulses that are less than what the repeater is set to so let me show you one more example literally as long As the pulse you’re sending is less than the repeater you will see this property so let’s do a two tick pulse into a three tick repeater and what you’re going to see is that we get a nice two tick pulse then it gets sent into this guy And now it’s a three tick balls all right final topic clocks so clocks are obviously extremely useful for all types of stuff i’m sure you’ve made one if you’re into redstone builds i’m just going to show you a little bit of like a general form that i use to make clocks i Usually start off with a some type of pulse generator to start it off which feeds into a main loop and then i also have a way to stop the loop so the way that you do this with pistons is you have a pulse generator from the Beginning of the video and this is a two tick pulse generator and then this is a eight tick clock because if you count up all these repeaters we’ve got two four six eight we’re getting signal from this guy every single time it comes to here so that’s Every clock cycle this lamp goes off the way to clear it is to just pull this block back and then the clock gets reset so let’s see what this looks like and let’s turn the tick rate back up and we get a nice little eight tick Clock and you can stop at any time by simply retracting this piston so this is just a nice intuitive way to make a clock i mean you’ve got a start button and you’ve got a stop button so it’s pretty easy uh the only thing i don’t Like about it is sometimes if you have a long enough clock this piston actually won’t stop it so basically like if the pulse was on this side of the clock while you were retracting it and then it’s not retracted by the time it gets over there like nothing happens It just doesn’t stop it so the way to know that this stopper is going to always stop your clock is to just make sure that the pulse length that you’re feeding into the stopper is at least as high as the clock here’s what i mean by That a stone button is 10 ticks our clock is 8 ticks 10 is greater than 8 so i know that no matter what when i press this button it will stop this clock but for example if i incremented all of these and now it’s a 12 tick clock and This is only a 10 tick button so there is a slight chance that when i press this button it will not clear it but you know how to fix that now you could just make a pulse extender all right let’s take a look at the comparator version so It’s pretty much the exact same thing we’ve just got a two tick pulse generator which goes into an eight tick clock we’ve got two ticks two ticks one tick one tick and two ticks which adds to eight and we have a comparator out here for when we want to stop the clock So when we press this button it’s going to cancel this comparator which stops the clock and again a stone button is 10 ticks 10 is greater than 8 so we know that this clock will always be stopped when we press this button and here is an action looks like pretty much the exact Same thing just a little bit cleaner all right last thing in this video is let’s just make a clock from scratch so i’ll just choose some numbers and we’ll just do it because now we know how to uh let’s just do a 13 tick clock with uh That generates a three tick pulse every you know every clock cycle so we know that we’re gonna have to start off with a three tick pulse generator i personally like comparators a lot more so i’m gonna go with this design three tick pulse generator let’s put it into what i say 13 Tick clock now the important thing to note here is that we can’t use four tick repeaters because remember when i talked about that extension property if we want this pulse within the clock to stay at three ticks we cannot use four tick repeaters otherwise it will get extended All right so 13 ticks let’s just do one two three four five 6 7 8 9 10 11 12 13 and then we can probably just do something like this and then we’ll put an output over here let’s grab a lamp we should be good to go So we press this button we get a three tick pulse on a 13 tick clock now i forgot to do the clear let’s just do it with a piston because it’s nice and easy piston torch and stone button all right what’s the problem with this it’s the stone button right this will Not always clear it because 10 is less than 13. easiest fix is just making a note button now it’s 15 which is greater than 13. that’s all i got for you guys i hope you enjoyed i hope you learned something if you’re brand new to the channel welcome Again i’m happy to have you here super happy to have this community growing and yeah thanks for watching Video Information
This video, titled ‘Pulses & Clocks | Logical Redstone #6’, was uploaded by mattbatwings on 2021-11-11 03:56:28. It has garnered views and [vid_likes] likes. The duration of the video is or seconds.
Check out the NEW AND IMPROVED logical redstone series here!