Minecraft education, Minecraft Education Edition Servers To Join 2021
Command Blocks - MINECRAFT EDUCATION
Okay, everybody, welcome back to learn with Minecraft education. We are today going to take a quick look at command blocks. So command blocks are very useful.
We have looked briefly at putting in commands in the chat box, and the kinds of things that those can
do. There are limitations, and that's where command blocks come in. Now, first things first, we need to
give ourselves a command block. So let's go ahead and go into the chatbox, you cannot go into your
infantry and search for even in creative mode search for command blocks, you need to give them to
yourself in the chat and command window. So press T or enter to open that up. And we're going to do
forward-slash give. And we're going to give as we're going to give ourselves calm, we're going to type
the first three letters of the command block. And then it's also completed there at the top. So we're
going to hit the tab to go down and complete that for us. So as we press the tab, it will start going
through that list there on the left, so we keep pressing it until we get what we want. And then we hit
enter. And as you can see in our inventory. Now we have a command block. I'm gonna get a couple
of other bits and bobs for this tutorial. So let's get aboard as well. So that we can put some instructions
on there. Let's get levers. And let's get a button also a button to tease obviously, come on. Now we are
going to place down a command block like so. Now, let's place another one here and take a careful look.
As you can see, we've got some different shapes on the side, the top and bottom, they've got a square
and a circle and around the edges. Got some arrows, and those arrows will come in handy later on. Solet's put a board behind it and just tighten the day. And let's put a lever on this. If you want to put a lever
on a command block, we have to hold the SHIFT place placed the lever on like so. And shifts will also
crouch us down. Let's do the same over here. Similar setup. Let's change this one tonight and put a
lever on this one too. So obviously, what we want to do is we want a lever that changes the world time
it sets the world time today and another lever that sets it tonight. So let's go to our command block
command input. And let's do time set D and you will notice you do not need a forward slash in a
command block. It's not necessary, it will still work but it's not necessary. Let's go ahead and do the
same thing on this one. But we'll do set times sets night. That one, you can just click here and type
directly in as well you don't have to click the plus. Let's see how we're doing. So this one should be
night. Good. So we flick the switch there and it's turned from day tonight. Here we go. Let's have a
look. At this one. That's working nicely. Very good. So basically the command block they're very simply
executing a command with a Redstone signal. Okay, so clearly, the Redstone signal there interacting
with the command block, and it's executing that command. There are lots of other things you can do
with these there are lots of ways to supply a Redstone signal akiza Redstone block or a torch or a
button or a lever or a pressure plate or something like that. But let's go ahead and look at a different
function of command blocks. Let's put one like this. Put one in front of it because you can have multiple
commands. So let's change this one to a repeat block And we'll leave all this stuff the same, we won't
put any code in there. So when this
Minecraft education, Minecraft Education Edition Servers To Join 2021
when this block receives a Redstone signal, it will pass on the information to this one. And as long as
it's receiving the Redstone signal, it will keep repeating that, which is the important part about the
repeater.
Minecraft education, Minecraft Education Edition Servers To Join 2021
And let's have our command here that we want to repeat. And let's do a command that's kind of hard.
That's kind of hard to repeat without using repeated blocks. So let's use some,
Minecraft education, Minecraft Education Edition Servers To Join 2021
some big. So normally, we'd have to summon, you know, one pig at a time.
If we press this button, here's the other thing we do need to, we do need to change this stuff ever so
slightly, so this needs to be changed because we've changed it to another command block. And this
needs to say always active, so it doesn't need to receive a Redstone signal to be activated, it just
receives the signal from the repeat command block the repeating command block, it doesn't need a
separate Redstone signal to power as well, which is what we want. So let's press the button, we get a
whole load of pigs popping out. Minecraft education, Minecraft Education Edition Servers To Join 2021
If that button was a lever, the pigs would keep coming until we switch the lever off.
Minecraft education, Minecraft Education Edition Servers To Join 2021
And in a previous video, I was trying, I did use a lever, I couldn't get to the lever because there were
so many pigs flying out the box and stop so the button works well. So I can just demonstrate that was
pigs. The pig is going to get a bit annoying. So will Ford slash kill at EA that's all entities may go? Now,
let's have a play around let's put another command block on the in there. Let's make it a chain. Let's
make it always active. And just to demonstrate how we can link up and chain these command blocks.
Let's put in something that we want to happen. After all, the pigs are flying coming out of the box. So
let's do effect let's check we want to do let's do all entities. Let's do e Yeah, effects at E. And we'll do
levitation. So what should happen here is pics should pop out, just check the settings here always
active good pics should pop out here. And then they should all be affected by levitation. Let's see if that
works. Or the pigs. And off they go flying up. So the first command block is the repeater that sent the
signal to create all of the pigs, the second block created them. And the third block on the end there
applied a line of command to all entities to levitate and that is applying to all the other entities here
there's a chicken over there as well. So it's not just the pigs. And then after 30 seconds that wears off,
and the pigs come crashing down. So yeah, we've got the three, the three different types of command
blocks, they're the arrows are important. These arrows when you're chaining them like this, need to be
pointing in the same direction. So you could for example, then go like this if you see what I mean. So
you can turn corners with these. But if you want lots and lots of commands or take place one time after
the other, Minecraft education, Minecraft Education Edition Servers To Join 2021.
chaining them up like that is the way to do it. Other simple commands that you can do very quickly. Of
course, if you want to do something like teleport, Minecraft education, Minecraft Education Edition Servers To Join 2021.
let's do TP at p which will be the nearest player and we will teleport them to let's keep the x-axis where
it is. Let's go on the y axis let's go up by 40. Minecraft education, Minecraft Education Edition Servers To Join 2021.
And on the Z Zed axis, let's leave that where it is. So it should shoot us up 40 blocks into the air and
we'll have a lever to activate that. There we go. So flick the lever and it shoots you up 40 blocks into
the air so there are any commands you can think of in the chat and commands Got a box here. So if I
go forward slash, it starts to autocomplete these I can use the tab to go through them. Any commands
that you can find here will work as a command block as well. So there are 1000s and 1000s of different
ways to use command blocks that might be useful. When you're creating a world, maybe it's for your
students, or that they're creating for you. Lots of ways to be creative with it, you can summon ended
dragons and things like that, if they're not in peaceful mode, they can summon lots of other different
things as well as zombies and so on. And they can create worlds that are designed to be played in
survival mode. So you can, you can for example get the command block to get give at p time and
underscore block. And we'll put a lever on there again. And there we are, hit that lever and gives us
down and block and that will work in survival mode. So as long as that is coded in creative mode,
and then when you export the world, someone can play it in survival mode and they can flick a switch
to get certain items that they need for certain parts of the level. Okay, so lots and lots of ways to be
creative when using command blocks super useful tool to learn as an educator using Minecraft education. So hope this was useful. We might link in some command blocks with Redstone bills later on down
the line. So do like a subscribe to keep up to date with the videos that I'm posting. And for now, all the
best
No comments:
Post a Comment