[Introduction Music: “Four Elements” by McKathlin] Hey there! This is Tyruswoo, and welcome to this tutorial about how to build what you can see behind me, which is called the Pegasus Portcullis
Piston Gate–the 3 block high version. And what I mean by that–3 blocks high–is that,
as you can see right here, when it opens up the gate, it opens up to have 3 blocks worth
of space for which you can use to walk through. And so, I also have a 2 block high version
that only opens up 2 blocks high, and a 4 block high version that goes one block higher
of an opening than this. Uh, but as you can see, this 3 block high version is a nice–a
nice big opening for us where we can feel comfortable, uh, riding our horses through,
and things like that. Now, the 2 block high version also allows riding of horses through,
but this one just gives us that nice amount of space, just to make it look really good.
So, it’s just really nice to have, and as you can see, it works up to 15-wide of blocks,
so it can be as little as just 1 block wide, in which case this white wool here and the
pistons here will only represent 1 block wide. But as you can see here, we have it 15 blocks
wide. Uh, so it can be anywhere in between. In the actual tutorial in a little bit, it
will just be 3 blocks wide, just to make it easier. But you can just repeat this same
exact pattern that’s used in every one of these blocks in order to have it be up to
15 blocks wide. Uh, so let me just show you how it works here. We can open up the gate
with this button, and close it with this one. So it’s open now; let’s go ahead and close
it. And you can see it just uses these pistons on top to push down, and then if we open it,
uh, right here, you’ll see that it uses the pistons on the bottom and uses some timing
involving this device here in order to get all the blocks to close correctly. Now, this,
uh, this piece of yellow wool–this yellow wool circuit, here–this is the main addition,
uh, the main difference between this version, the 3-high, and the 2-high version. The 2-high
version does not need this, um, yellow wool circuit. And so, that’s the main thing here,
and if you just want to take a look at that really quick, you’ll see the timing of this
repeater is really important, that it’s on the third setting, the three-tick setting.
This one is on the one-tick setting. And so that’s the main difference. And it’s coming
from the topmost of these torches. We’ll show all of this in more detail in just a little
bit. We’ll show you how to build all the neat little features. Um, again, here is the nighttime
detection: closes the gate when it turns to night outside. Here’s the daytime detection:
closes [opens] the gate when it turns to day. Um, you can also have a secret button on this
side right here–if you’re on the outside of the gate, which is this side–uh, in order
to get in when it’s nighttime, to get away from the monsters, even if the gate is closed,
you can use that secret button so you can get in, and then close the gate really fast
and get away from the monsters. And so, yeah, those are the features that it has. One more
feature it also has: you can lock the gate in its current position. Say you want to keep
the gate open even when it turns night. So it’s daytime now; you open the gate, and then
you want to keep it open even when it turns night. So we can go ahead and lock it. And
then, if it turns night, it will stay open instead of closing. And so, now, if we tried
that again, you’ll see now, um, when it’s day it opens, and when it’s night it closes.
And so, locking the gate in the current position can prevent it from doing the auto-open and
auto-close. And so, yeah, those are the features that this portcullis provides. And so, um,
if you’re interested in building it, stick around and we’ll show how to build it, starting
with the most fundamental features of opening and closing the gate, and then continuing
on, if you like, uh, towards the other features, as well, including the day and night detection
and stuff like that. So, yeah, let’s uh, let’s go ahead; let’s get building! All right, so
the first thing we’re gonna wanna do is knock out a little trench, here, for where we want
our portcullis to be. Now, we’re going to make it a 3-wide portcullis, in this case.
Now, it could be just 1 wide, or it could be up to 15 wide. But we’re going to make
it a 3-wide portcullis. And we want to knock out an extra block on either side, plus an
extra seven blocks. One, two, three, four, five, six, seven. And that’s for the controls
of the gate. And then we’re going to make it three wide from front to back of the gate.
And then, for the depth, we want it to be the number of pistons, plus the amount of
gravel. And so we’re going to have 3 rows of pistons and 3 rows of gravel in order to
make a 3-high opening when the gate is open, so we’re going to need it to be 6 blocks deep.
So one, two, three, four, five, six. And now we’ll just go ahead and hollow out this pit
here. [Music: “Dino Cavern Blues” by McKathlin] All right, so now that we have our pit–it
is 6 blocks deep, to allow us to make our 3-high opening once the gate is open–so now
we’ll just come here to the bottom and place our sticky pistons. One, two rows of sticky
pistons. And then a row of normal pistons, just like that. And then here’s our gravel,
on top there. Three rows of gravel. And now it should be level with the ground. Okay!
And so, next we’re going to go ahead and add in our repeaters. So, repeaters all on default
delay, and then some redstone dust. And then we’re going to have three rows just like that.
So, here’s these repeaters, and redstone dust. One more row. Repeaters, and redstone dust,
just like that. And now we can go ahead and add in our torch tower. So, for this we’ll
need some red wool, or whatever block you’re using. And we’ll add in our torch tower, on
the inside of each of these blocks. Four torches going up like that, with the top torch going
into this block that powers that redstone. So now if we test it out with a button, just
like that, we’ll see that it causes all of the pistons to extend. All right! So now to
make the pistons retract, we’re going to come here to the other side, and we’re going to
build a torch tower going downward using orange wool. So, right next to each of those repeaters,
we’ll place a piece of orange wool. So it just takes 2 orange wool to do that. Redstone
dust on top of both of them. And then, torch on the side of the white wool; on the side
of the orange. On the side of the white; side of the orange. So, four torches, just like
that. And now, if we test it out, we’ll see that they extend, and then they retract. Now,
we just need to make this piston right here–this row of pistons, pull the pistons above them
back into place, and to do that, we’ll need to power these repeaters, right here. And
to power those, what we’re gonna do, is we’re gonna come here to this side, and we’re gonna
make a little cubby right here, just like that. And, we’re going to use our yellow wool,
here. And it’s going to be receiving a signal from this torch. This is the top torch of
the torch tower going downward, here. So it’s receiving a signal from there. It’s going
to go into a normal piston right here, with a piece of gravel on top. And then, a piece
of yellow wool here. And on this yellow wool, a piece of redstone dust. And on the yellow
wool below it, we’re gonna place a repeater. Now, these repeaters have a specific timing.
It’s very important that they have the correct timing. Now, for this version of the Pegasus
Portcullis, we want to have this on the third setting right here. So you have to right-click
it. Here’s the default. Right-click it twice, and it’s on the third setting. Then this repeater
here, leave it on the default delay. Leave that one on the default. And that will allow
us to get the fastest time of the Pegasus Portcullis 3-High opening up and then closing
again. Now, you’ll note that this is a slightly different timing than what is used for the
4-high opening of the Pegasus Portcullis; so, it has the same yellow circuit, but it
has a different timing on these repeaters. But we’re just going to leave these repeaters
like this, because that’s the timing we want if we’re making the 3-High Pegasus. All right.
So, we’ll try it out, and we’ll see that it then retracts quickly, just like that. All
right! So now let’s go ahead and add in the portcullis itself. So we’ll just place it
right here on top of our gravel or sand or red sand, whatever we’re using as our falling
block. Place your portcullis on top, and this can be whatever block you like right here.
And we need it to be 3-high. And in order to make it look nice for decoration, it’s
usually best to add in an extra row. So it’s going to be a 3-high opening, and an extra
row here is going to help with the decoration. So now we’ll go ahead and place our decorative
block of choice on the sides, here. And we’re going to test this out again, and we’ll see
how high the gate gets opened to. So we’ll see, it’s 3 high, which is appropriate! That’s
just what we wanted. And now we’ll bring up these blocks on the sides. And now, we need
to have 3 rows of normal pistons right here, so we’ll add in 3 blocks on either side like
that. And now, add in facing downward our 3 rows of normal pistons. So, just like that.
And now, in order to get the gate to close, we’ll need to add in our closing circuit.
We’re gonna use white wool. It’ll be 3 rows, just like that, with the top row level with
the top of the pistons there. Add in some redstone dust on top of each of those. Now
we’re going to use a light blue wool right here on the side. And we’re going to add in
some redstone dust on top of both of those. Now, we’ll need a torch tower going down,
just like that! Okay, and now to test it out, we can go ahead and add in a light blue wool
right here, and a button. Go ahead and press it, and we’ll see that it closed the gate
for us. All right! So next, let’s just go ahead and add in some ground right here on
top of the redstone circuitry, so that it’s easier to access our gate and test it out.
Just add in a little bit of ground right there. And now we’ll add in our control mechanism
right here. This will be our controls for the gate. And we’ll place right here our buttons,
and some lamps on top. This one is going to indicate that we are wanting to close the
gate, and this one, to open the gate. Now you’ll notice, for the controls, I place them
so they are actually 3 blocks away. One, two, three. And then–so there’s a 3 block gap,
one of them filled up by that piece of wall. And then a gap of 2 blocks there that will
allow us to add in the circuitry behind. All right! So now let’s go ahead and connect up
the close gate button to the close gate mechanism up there. So, to do that we come around behind
the button and add in a torch. And then here’s a brown wool with a redstone dust on top.
Then a brown wool here. And we’re going to build a torch tower going up, right here,
all the way to the top. Then you’ll see, right here, this torch is level with where the pistons
are, and it is off. So now we’re going to break our temporary button here. Add in the
light blue wool just like that. Here’s a redstone repeater facing into the close gate mechanism.
And here’s a redstone dust; it should be off, since we aren’t pressing the button. When
we press the button, it activates the close gate mechanism, just like that. Okay! So now,
let’s go ahead and add in the connection between the open gate button and the open gate mechanism
down there. So we’ll come here behind the button, and we’ll add in a redstone torch.
And then a lime wool, with a redstone dust it’s receiving the signal from. And then here’s
a torch, right here, on the side of this green block. And then, right here, piece of redstone
dust, and a torch. And now, we need it to step down just like this; so dust, torch,
dust, alternating like that. And then a repeater–break the button, and add a repeater instead. It’s
on default delay, receiving signal from this green block with redstone dust and going into
that red block. And so, you’ll see now that if we press this button, it will open the
gate up for us! All right, so now at this point, we have a gate, and it opens and closes,
with the buttons in easy access. And so, if that was all that you were wanting, then you
can be done right now! But if you want, you can stick around, and we’ll add in some extra
features that will add awesomeness to your gate. So, first of all, say–this is the outside
of the gate, here, and the other side is the inside where the controls are–say we’re outside
of our fort or our castle, and it’s nighttime, and we’re running along, and we’re trying
to get away from the zombies, but we realize the gate is closed! How are we gonna get away?
Well, we can add in a secret button that the monsters don’t know about! Right here. And
so, here’s where the wall will be that will cover up our redstone. And so, somewhere by
this wall we want to add a secret button. So we’re gonna–we can go ahead and add it
right here. We can add a piece of redstone dust, and then a button, right here. And that
can be our secret button that will open up the door. It’s kinda camouflaged with the
wall. We can hide it behind some hay, or some haybales, or behind some bushes, or something
like that. And that can be our secret button. And uh, or, we can place it so that it, uh,
goes into the ground just like this, and it’ll open up the door that way. But, uh, if you
want, if you want it to be more secret, you can draw the redstone line away–and I would
use the pink wool if I were going to do that–and you can just draw it away to some farther
away location, and that way it can be, it can be truly secret, that way. But, uh, anyway,
so, we’ve got our button–Use whatever type of ground is there–It can look just like
a stone on the ground, okay, that happens to be there, right? [chuckles] Okay, you open
up your gate, and you close it really fast, and you got away from the zombies and the
skeletons and everything. So, for our next extra feature, we’re going to add in night
and day detection! So, when it’s nighttime, we want it to automatically close the gate,
and when it’s daytime, we want it to automatically open the gate for us. So, first here at the
top. This is the close gate mechanism, so here’s where we’ll add in our night detection.
And we’ll add it in right here with a magenta block right below that blue wool, like that.
And a repeater facing into the blue wool. Go ahead and set that to maximum delay to
make sure that the mechanism has time to operate. And then we’ll have a piston facing upwards–normal
piston is fine–with a piece of gravel on top. And then on this side, magenta wool in
a pattern just like that. Add in a comparator here facing into the gravel. Go ahead and
set it to subtraction mode. And a comparator here facing into this comparator. And here
is our dropper that we’ll add. And then, here by the primary comparator, we’ll put our redstone
dust. And on top of that, our daylight sensor. Now, you’ll say–you’ll see that it’s currently
detecting light; it’s detecting daylight. So we wanna right-click it; so now it’s detecting
darkness. And, so, in order to have it so it’s detecting the darkness of nighttime.
But, you can see it’s still detecting some, even though it’s day; well, that’s because
it’s morning. So, when it’s morning or when it’s dusk, it senses a little bit of “nighttime”
in the air, still. So, we need to subtract an amount from it, so that it only senses
nighttime when it’s actually night. So we’ll come over here to this dropper. Then, the
amount we want to subtract is seven and a half stack’s worth, so we’re just going to
use cobblestone, because that’s a cheap block, right? So, seven and a half stacks of–sorry,
seven and a quarter stacks of cobblestone is how much we’re going to use. And that’ll
give us the correct amount of subtraction, so that when it’s nighttime this gate closes.
Uh, but it doesn’t close, it doesn’t close when it’s just, like, the middle of the afternoon
or the evening or something; it closes when it’s actually turning night and, uh, it’s
getting dark outside. Okay, so, now let’s go ahead and hold shift, right-click on this
to add some glass above it. We’ll note that it’s still detecting darkness. But there’s
glass above it. That way, once we add in the roof of our, of our wall here, to cover up
our redstone, it’ll be level with this glass, and when somebody comes over here and walks
on top and sees this, they can’t right-click it and change it to daylight sensing. So it
remains darkness sensing. Okay! So, next to this, place another piece of glass. And this
will be, uh, the area right here where we’ll add in our day detection. So right there,
add another sensor so that it’s right underneath that piece of glass. And, for our day detection,
we want to add in a comparator here. Go ahead and set it to subtraction. Comparator here.
Here’s where we’ll add our dropper. For the day detection, just add two stacks of cobblestone.
This will make sure it opens the gate when it is morning, at the correct time. Um, for
both of these droppers you can adjust the amount of cobble, if you want them to open
or close at different times, for both the nighttime and the daytime, you can adjust
the cobble. But I think 2 stacks here for the daytime detection is about right. And
so, now we’ll add in our normal piston, facing upward, um, inside like that, in a little
hole. Piece of gravel on top. Redstone repeater here; go ahead and set it to the maximum delay.
Piece of redstone dust right there. Okay, now, in order to get the correct amount of,
uh, pulse length out of this when it turns to morning, in order to open this up and give
time for these to retract, we’re gonna go ahead and add in an extra little area right
here to the cubby. And we’re going to–so we’ll make a little cubby right here, and
we’ll set this repeater here to max delay, this one to the third setting, and then add
in a piece of redstone dust, piece of redstone dust, so it’s connected. So we’ve effectively
lengthened the pulse length, uh, to allow time for the pistons to retract appropriately.
So now, if we test it out, we just need to wait for it to become nighttime. I don’t want
to wait; I’m going to set it to night, ’cause I’m in creative! So, we can see that the closing
mechanism activated. And now we’ll set it to day, and we’ll see that the opening mechanism
activated as well. So the last feature that we want to add is a way to lock the gate in
the opened or closed position. So we’re going to add this to our control mechanism right
here, with a lamp. And instead of a button, we’re going to use a lever. And here is our
sign. So we’re going to say, this will lock the gate in the current position when the
lamp is lit. Okay, so if we light up the lamp, we want the gate to be locked in its current
position. If it’s open, we want it to stay open, and if it’s closed, we want it to stay
closed. Even if somebody presses these buttons or the secret button, even if it turns to
night or turns to day, we want it to stay locked in position. Okay, so in order to make
this work, what we’re gonna have to do is come here behind, add in a redstone torch
here. We’ll use a half slab here. Very important to use a half slab here to avoid a torch flicker
bug. So, we use our half slab, place a repeater on top, and here’s a redstone torch right
here that is powering the repeater. And now, beneath here, we’ll put a block, and then,
right next to the repeater. And so, the repeater is powering that block, powers that redstone
that way. Okay. So now we’ll come down here below. Here’s the torch that would cause the
torch flicker bug, except that we–the torch flicker bug–except for the fact that we used
that half slab. So, we add in the torch there, and then wool, redstone dust, torch here.
Now we do a hop, skip, and a jump right here in order to avoid where this daylight sensor
is. We have left left a hole here so that it can see the daytime, when it’s morning.
And so, now we’re going to place a torch right here, and we’re going to just step down like
this and add in a redstone dust, and we’ll see it’s off. That’s what we want. We’ll have
it come over here. Add in a repeater. So, this repeater will lock that one, if we turn
this to On. If we turn this to On, we’re see that this repeater right here is now locked,
because this one is powering it. Okay! So now we want to be able to lock the top mechanism,
uh, for closing the gate. We’ve locked the opening of the gate. Now we need to lock the
closing of the gate mechanism. So to do that, we’ll come here, we’ll place a torch right
there on top of that block, and then we’ll place two blocks like that, redstone dust
here, torch here. And then we’ll have some wool right here, and we’ll do a hop, skip,
and a jump, just like that. So, you can see again, we have left a space for our daylight
sensor to be able to detect day coming through that piece of glass right there. ‘Kay. So
we’ve left that space there. And this black wool is over here. And it’s going to come
into a torch tower–goes right here. Okay. And so, torch right here, here, here. And
then, you’ll see, this torch is off. That’s what we want. We want this redstone dust to
be off, and if that torch turns on, it’ll power that redstone dust. And now we’ll see
that to avoid this torch we need to add in a repeater here and a repeater here. Here’s
our redstone dust right there. And now this repeater right here will power this one, effectively
locking it. So if we come down here, and if we switch this to On, now it should be locked.
We’ll try to close the gate, and we’ll see that, indeed, it is locked. If we try to open
the gate, we’ll see that the open mechanism is locked. Same thing. Now, we unlock it,
we close the gate, we lock it, and now we try to open the gate, it doesn’t work. And
closing the gate doesn’t work. And again, if we try to set it to night, nothing is activated.
And if we set it to day, again, nothing is activated. Okay! So that is our lock mechanism.
And so, yeah, you can keep the gate in whatever position you want, whether it’s day or night,
by locking it like that. Okay! So, I guess that’s basically it. And remember, you can
have it be up to 15 wide, as little as 1 wide if you want, and this is the 3-wide version.
[Music: “Four Elements” by McKathlin fades in.] And yeah, so if you want some more tips
and tricks, check out the Tips & Tricks video. But, uh, anyway, I hope that you enjoyed,
and if you have, please leave a like, leave a subscribe, and uh, I’ll check you next time!
This is Tyruswoo, and I’m out! [Music: “Four Elements” by McKathlin]