Hello losers oh my my name is Brent I’m in in today’s video I actually want to get you up and running with Minecraft coding as well as I’m going to demonstrate some of the things that we can do with it so in today’s video I’m gonna cover something I didn’t another video in a better format as far as installing minecraft make code or code connection With minecraft Windows 10 edition if you don’t know what that is it’s actually located in the Windows Store And I’ve already got it installed right here And we’re gonna go ahead and pin that to our taskbar so we can bring it up real fast I don’t want to bring it up before we have code connection installed so in a URL in the video description below there will be this link and you’ll click it and you’ll go to this page and you’ll click Download code connection if you do not already have minecraft Windows 10 edition you’re gonna need to buy it from the Windows Store Which if you click this link it’ll take you right to it Or you can use it to actually bring open the mine craft store But for this purpose you’re gonna hit download code connection once you have the other minecraft installed And this is the code connection being installed here.
Just wanted to show a brief Window for it should only take a second once that is installed is see it up in this left-hand corner. It’s a little little villager Thing it’s technically the robot That you will be controlling, so we’ll hit allow access From our firewall, and you’ll see this slash connect, and it’s a this is actually an IP address You do any networking In school, or if you’ve done any networking at home. This is an IP address, and this is a port It’s not really important that you know that I’m just giving you a little tidbit of information So once you get this open you hit this little copy window and once you’ve done that we can now open minecraft Again this is the Windows 10 Edition, and we’re just gonna hit play we’re gonna hit create new And you don’t necessarily need to do this you should be able to use a world that’s already been created So I’m just gonna call it for this purpose youtube coding I’m gonna go ahead and do survival cuz I don’t really care lots of bonus cheats Active cheats That doesn’t matter so Once we do that.
We’ll hit create It’s gonna start a game just kind of wait a moment Now I’m keeping this windowed so that way I can hit T. I can paste I used control V in that case, but you shouldn’t be able to Leaving right click, but you should you should just be able to hit control V, and that will paste Okay, so yeah, we do need to enable all cheats, so let’s save and quit my Ben We’re gonna edit it Come down activate cheats hit continue We now know that we will not be able to actually I’m going to go ahead and make sure it’s always day Do you know that we will not get Windows Xbox achievements, but hey, you know what we’re coding That’s more fun.
Anyways alright again hit T. Then control V and paste It this is actually going to allow our robot to join our robot is joined we can actually select an editor I’m gonna go through them real quickly real briefly briefly Briefly so that you can actually see which what each editor looks like and you can kind of make decisions for yourself So opening the code.org NCR workspace here We’re going to create new or we can actually import projects I believe with this It’s actually easier to use the the web interface I don’t know if it actually connects with it But we can go ahead and sign in you can save projects or download products our projects This is a lot easier. If you’re doing it with your teacher If you’re in a classroom setting but for my preferences I don’t actually enjoy it will come back to make code in a second We can go ahead and see scratch if you want to use scratch you actually have to download it.
We know he’ll follow us Next let’s type player dot on Let’s look for a swimming function We use the same function and switch it to swim water Let’s gather the same phrase or the same method of teleporting to player And now every time we swim He’ll also follow us we don’t necessarily care about lava because if we start this is swim in lava. We’re pretty much dead anyways Alright, let’s see what else we can get him to do Player dot on let’s see if we Do It still on arrow shot, let’s see what we can get him to do He should attack Mmm.
Maybe let’s see Agent dot detects let’s switch back to the block and see what that’s It actually discards entire blocks that we use because they’re not necessarily implemented functions So let’s go into player Let’s do so on player walk Again this is just the implementation of the functions. We just made let’s delete those It’s copy and paste that control-c control-v when we swim in water troll C control V When we fly it’s probably a good idea, let’s just be crazy with this overriding And we sprint ah interesting it’s originally when I was playing with this they actually didn’t have most of these functions So now one of the one of the things that we were having a bug with earlier when we were bouncing Was that so now when the player is bouncing that also happens? Also when we fall and we can do when we climb So let’s throw all these functions up here and kind of get them out of our way because they all do the same thing And we’ll keep them up there Not necessarily the most organized, but I don’t actually care at this time So now let’s do on arrow shot Let’s find out what he can do He can detect a block a redstone, it’s not really cared about that All right, I don’t really see anything we necessarily want him to do when we shoot an arrow Maybe destroy forward hmmm that depends on the direction.
He’s facing that doesn’t necessarily do exactly what we want So Let’s see if something we can do with a mom So how about we do player on arrow shot will spawn an animal Let’s pick a parrot when we shoot an arrow at Hmmm You know they actually replace that little thing there, and we should be able to get like player position or something Player world position right there, so now when we shoot an arrow will spawn a parrot, so let’s actually go ahead and try that That’s sweet now we run creative. I just did /gamemode one for that by the way and let’s get an arrow And let’s get a bow Now that we have that We can go ahead and shoot it As you can see we’re spawning parrots now because of why the heck not Alright So So you can see that let me kind of explain this for a second so these Statements that have basically an alligator or dinosaur looked in my eyes There are considered conditional statements so when something happens Do the thing that’s inside of them in programming if we switch to that they’re actually basically Considered Event handlers If you don’t care what that means just ignore it But basically an event handler is similar to what we use in graphical user interfaces like Windows So on this statement when it happens do what’s contained So let’s see what something else we may be able to do we can also actually do a loop Which is which is quite fun.
We can do some math, which if you don’t like math and That’s always a great little time so it’s actually uh hmm Some logic with comparison here’s actually conditional Can we get player direction now not necessarily We can call projectiles Maybe Maybe on player error shot it doesn’t necessarily. Let us do that hmm interesting Keep looking You actually pick random positions, which is kind of neat? Add time change mode is survival change game role to PvP Maybe we do some blocks yeah, let’s get the agent to build something why not Let’s build a loop Let’s do four Index from zero to Ten till forward once he’s done that we’ll do Another four statement That’s a forever statement My mistake Four So once he’s tilt forward.
We’re gonna do for an index of five Not 45 Once he’s told form let’s tilt to the right four five and Once he’s done that he needs to rotate You may need a rotate can I rent to his position? Ah there we go turn So once we once we’ve turned to the right we’ll turn right again. He’ll go forward another ten if I do a loop and We’ll do this whole thing Let’s try twice this should probably make a square, and then we’ll do that on chat command Farm please All right, let’s try that so let’s get to a spot that seems pretty okay for a farm It’s a good idea to fly again. He’ll follow us as we set that conditional earlier Event handler if you want to call it that All right I see a pretty flat piece of land up here This should be ideal for what we’re trying to do you should only do it for about Ten by far.
Yeah, it should be a ten by five square plot, so it shouldn’t be enormous, but it’s gonna be rather rather large Okay, let’s see if this works Because he teleports it gets a little weird Ah See now we created a bug because I’m an idiot so right now. He’s just turning consistently What we actually need him to do is at the end of this loop turn But we also need him to move forward every time. He does it which is definitely an issue So we’ll have him move forward there And we’ll have them move forward there We should probably also till forward, but turn him To the right actually this may not do what we need to do screw it though, let’s see what happens Yeah, he’s gonna he’s gonna. Oh Hmm, I don’t know why he’s going the direction is let’s try this again Actions almost seem sporadic Interesting so he actually goes in That line so this is the part of debugging and figuring out.
Why we have an issue and that’s what we call it in programming Part of the reason is we’re actually moving them forward every time Are not moving and turning him every time we do this which isn’t necessarily the correct way to do it So let’s actually take that out and see if that helps us All right, let’s look for a fill a flatter piece of land. This is maybe a little too tight Don’t worry we’ll find something as You can see though coding isn’t necessarily hard But it actually is fun and rewarding once you get something to do exactly what you want It’s probably one of the better feelings that uh I’ve come to know All right, this is perfect though.
This is exactly what we want all right farm, please Maybe you’d be best if we moved way out here We got a bear in mind that the direction he’s facing actually does matter I’m not entirely sure why he keeps the only pointing back and forth right there There’s our parrot by the way So actually one problem, I can see is that we actually move him before we have him till which is actually Ness year And he doesn’t work in word he just creates a square around which isn’t actually what we want so we actually want him to till Let’s say Till four or five Then he should turn one Should turn to the right and then he should move forward One We may not necessarily need the second for statement, so So Let’s do it for ten times So he’s gonna move.
He’s going to move forward then he’s going to He’s sorry. He’s gonna tilt forward then he’s gonna move Then he’s gonna turn to the right. That’s not good. That’s not what we want we Actually did want that for statement in there? So then he’s going to turn to the that’s for the hmm, we don’t want that until the iteration is done So let’s move this out and move it above that so once the iteration is done we want him to do that so Okay, that’s probably about right so then he’ll So it’s Hill for then he’ll move they know till forward, maybe we may not even actually need that and that So he’s going to Till forward then he’s gonna move Then he’s gonna turn right now actually again Those two were just copy paste copy pasta We didn’t need that so we’ll till four and move forward till four remove four till four and move forward, then it’ll turn right Then he’s gonna move forward one, but then when we also need to do is have them actually turn again And We’ll have them turn right which will make him face the other way and he’ll do that ten times let’s actually let’s see if this is it this might this very well might be it we might have just solved it Uh he’s going in a circle still Interesting because he turns right and he comes back around Hmm that makes sense Okay, which means that We should change direction At that point he needs to turn left So maybe he does that twice and then we take this And he turns left Let’s try this why not Can’t hurt a little bit of debugging For five I’m sure ye goes forward six times Now I guess yeah, too Because we haven’t done it twice which means we probably should only do it once okay, all right.
All right. Let’s try that again This is actually three nested loops, which actually isn’t very efficient, but it’s getting our job done I just turn right there Hmm confusing Should have actually turned to left, but he didn’t I’m not entirely sure why we can actually probably do this in the air and see the see most of the same results so Now he’s coming down the back lane Now I would want him to turn left But he turns right and then goes right and then goes what? I don’t understand Why would he do that? So she should turn Rates so he’s gonna do that? So we’ll do that once then we’ll turn right do all that Turns the right once he gets up there Right Nor am I wrong Well clearly I’m wrong He does he does the whole right thing once with moving Which is good? That’s what we want and Then he should turn the left the next time But he doesn’t Actually, let’s see when he turns left, so he’s gonna move forward.
Let’s make him move forward five times So this so this will be a little debugging And we’ll really see when he’s turning left Which is good? I mean, that’s you know obviously the point of this so that’s where he’s turning right? So we knew it at once so we know he’s right here right now. Oh, he’s right there and then He’s turning left right there Wait a second so when he turns right we finished the loop Which means this doesn’t run again Which is not how we want it so We actually may want this again Maybe that’ll fix it Farm please I Don’t actually we didn’t even finish, that’s not even the same spell right Yeah, let’s move him we can probably come down to this flat area and see what happens again.
Hopefully stops farming I’m actually going to change this to three ah Stop farming stupid All right, let’s try this Oh duh so he goes That’s not confusing why did he run that again? This still never got run oh whoops That shit Hmm Well at least gentlemen I’m gonna have to solve that a different time if you guys want another video of this if you want to learn more about Coding go ahead and leave a comment in the comment section below.
I will 100% look at it I Appreciate you watching the video if you haven’t seen any of my other videos Please do have a look at the channel and please consider subscribing If you liked the video like if you dislike it go ahead and dislike it ladies and gentlemen this has been brent time I’ll see you in the next one Code Builder, Minecraft Education Edition Beta, Minecraft Education Edition, Minecraft Education Edition install, how to get Minecraft Education Edition, Minecraft Education Edition Beta install, how to install Code Builder, how to get Code Builder, Code Builder install, Minecraft Education Edition Beta & Code Builder, Minecraft education coding, how to code in minecraft, coding guide for minecraft, minecraft education how to start coding, how to install minecraft education edition Code Builder, Minecraft Education Edition Beta, Minecraft Education Edition, Minecraft Education Edition install, how to get Minecraft Education Edition, Minecraft Education Edition Beta install, how to install Code Builder, how to get Code Builder, Code Builder install, Minecraft Education Edition Beta & Code Builder, Minecraft education coding, how to code in minecraft, coding guide for minecraft, minecraft education how to start coding, how to install minecraft education edition Code Builder, Minecraft Education Edition Beta, Minecraft Education Edition, Minecraft Education Edition install, how to get Minecraft Education Edition, Minecraft Education Edition Beta install, how to install Code Builder, how to get Code Builder, Code Builder install, Minecraft Education Edition Beta & Code Builder, Minecraft education coding, how to code in minecraft, coding guide for minecraft, minecraft education how to start coding, how to install minecraft education edition Code Builder, Minecraft Education Edition Beta, Minecraft Education Edition, Minecraft Education Edition install, how to get Minecraft Education Edition, Minecraft Education Edition Beta install, how to install Code Builder, how to get Code Builder, Code Builder install, Minecraft Education Edition Beta & Code Builder, Minecraft education coding, how to code in minecraft, coding guide for minecraft, minecraft education how to start coding, how to install minecraft education edition Code Builder, Minecraft Education Edition Beta, Minecraft Education Edition, Minecraft Education Edition install, how to get Minecraft Education Edition, Minecraft Education Edition Beta install, how to install Code Builder, how to get Code Builder, Code Builder install, Minecraft Education Edition Beta & Code Builder, Minecraft education coding, how to code in minecraft, coding guide for minecraft, minecraft education how to start coding, how to install minecraft education edition
As found on Youtube