Hello and welcome to computer craft edu with me or wizard keen and my faithful robot stampy bot ser stampy what we’re gonna be doing today I thought that right in the background there oh this is aam be over there we’ve got to be I’m always super cautious about about coming Out no no there you are about coming out and about you even got a helmet on we boomed the helm on so yeah because I could be programming away stampy but quite happily outdoors and along comes a creeper and just goes whatever the boom blows us both to smithereens so I Protect myself by coming in the house and then I can program standard what behind this plate glass and they can’t attack me so today what we’re going to be doing is we’re going to be creating a program to clear an area we’re going to be doing some farming in in this and Stamping boss is gonna definitely be helping me I’ve done some experiments we’ve kind of cleared a few bits and pieces over here and create a kind of a wooden wall down here so we’ve had a little few experiments and some have been successful others have been not successful so hopefully I’ve sold some Problems and I’m going to share with you some of my solutions I’ve done so let’s have a look at stumpy bot so in this episode we’re really thinking about clearing an area ready for farming okay so we’ll go into the programming here and we’ve got a repetition first of all So we’re gonna repeat 10 times this we’re gonna do this if there’s a block in front of me and then dig it and move forward else so if there isn’t one just move forward okay and that’s fine so we’re gonna repeat that so that if ends There okay and then here we can actually just do another one so we’re gonna do the next one which is going to be we’re going to say turn right okay move forward turn right and then and then we want to kind of to do that again we want to repeat this one again Okay so I don’t know if it I don’t know if we can say go back to the beginning maybe maybe I couldn’t run this run itself again wouldn’t that be weird but then it it will just keep going around a loop anyway let’s see let’s see what happens run program it’s called clear Area that would be weird run run itself let’s see if this works turn turn right move forward oh but it it might not be able to move forward cuz there’s something there mmm okay okay to move forward we’ve got to kind of vent okay turn right did detect we Don’t a place in I think we want to click to add a statement oh no those ones we’re gonna have to do something a bit more interesting than that we’re gonna have to say detect block but – detect block that is move right detect block what expect a statement Oh trying to Click a statement here it’s not it’s not happy let’s check all these things out the way okay and let’s see what’s going wrong so we’re gonna say at the end it’s gonna say we’re gonna say turn right then we’re gonna say if there is a block if There’s a block if there is a if there’s a block there then dig and move forward and turn right and end right okay and then we can say we can actually say run well let’s let’s let’s do let’s do this okay oh let’s do else else Move forward and to her and right yeah that makes sense so if there is some McKnight and do that let’s run the program and what should happen it’s nighttime oh no it’s not okay that’s good oh stop you what turn around okay great and now what we want you to do is Run that program again but we want you to do this ten times I wonder if you can repeat a subroutine who knows let’s get you back to base okay and also go to bed take that forward turn you around okay yeah bedtime bedtime for me power down for you some people power Down time okay it might just be that I just have to write a load of long code which would be okay this is dangerous stay indoors stay indoors can I reach stumpy but from here just I wonder what else we’ve got we could run a program but it’s gonna go Out in a loop that’s doing it trouble so I’ll go it’ll go one two three four five six seven eight nine ten and then it will turn around go that way and then face back down so I go one two three four five six seven eight nine ten Hmm and then it will do that it’ll kind of go around like that and a loop I don’t want it to do that so we’re going to do that so that’s repeat 10 times and then we’ll do this one which is I wonder if we could put another Variable so we could actually do oh this is a good idea this is a great idea I’m going to get rid of this so this is how to nest item nest programs within programs okay okay so all this one does is it goes backwards and forwards so This one’s called clear area we’re going to say clear clear forward forward okay clear forward okay so that’s that one now we’re going to create new one which is we’re gonna say run program and it’s gonna be called clear forward okay then after clear forward we’re going to say If where is it where is it where is it if detect then oh no we want to move learn move let’s move things down we’re gonna say run that and then turn right okay and then so I don’t have to write out a statement do I know if detect then Dig and move forward and turn right and then but I could probably do that in a program too so let’s get that one out so let’s go let’s do this so this program is called turn okay turn right so this is turn right turn around isn’t it turn right around turn around turn Around turn around turn around turn around friggin um so it’s turn right and then if there’s a block detected then dig move forward and turn right else move forward and turn right so that turns you around completely okay so guys did a little bit alert turn right turn right And then I’ll do the next one a little bit and then I want to do and then one turn left all around so this one’s turned around right turn right okay oh good let’s do another one so basically I wonder if we can copy it can we copy This I can’t really copy that can I always this copy turn right to disk oh that’s not what I wanted to do I want to kind of copy the whole thing doesn’t matter turn right okay so in the next one is turn left oops let’s delete these I’m Going yes delete that one so this is called turn left turn left okay so this is we’ve reached the bottom we want to turn left and then we want to if detect then dig move forward and turn left else move forward and turn left and end okay cool So we’re gonna create we’re gonna put these together so we’re gonna basically go run first of all run how’s it go clear forward yeah then we’re gonna run another one which is turn right and then we’re gonna run and then we’re gonna do we’re gonna do clear Forward again okay and then we’re gonna turn left oops I’m gonna turn left let’s see what the time of day is – that should just run these subroutines huh oh man I’m hoping it would work say it’s moving forward he’s gonna turn right and turn Right again I was the way so clever and then he said turn left that is sick that is so good and then that’s a program as well so I could just miss that ten times so let’s do this let’s do this so this was called nest Okay back up back back okay so we’ll do back forth but we’re gonna create a new one which is back forth repeat right repeat ten okay do back forth and all right that should do it that should clear an area and then we can make him go up a level and then up Level at an uplevel so this is just gonna be like two-dimensional movement so we’re going to run this one so this is stampy block clearing an area sort of ten by ten okay nice flat area and for the time being you can kind of just do It oh my gosh it’s working so well this is amazing I mean I figured it out for myself as well so that this is the one wonderful thing about about you know having to do this for yourself sometimes sometimes it’s really good to have one of these breakthrough moments where you Can just you can feel really frustrated with the stuff but in actual fact this is brilliant this is so good only by the start position is probably over here so let’s put a block down here not all make that is the start position okay so I’m Going to take I’m gonna bring him back here and and he can kind of I’ll send him up one level and I’ll probably do the next the next bit of programming again and like this so we’ll show you how to do it to create a timber timber Lock out this way so just flat and then he can kind of do it going up so we could nest another set of programs within this one and the next one just takes it up and up and up so he’s just doing repetition actually probably will Be doing 20 that way because I made him go as to its back and forth so it’s not just all the way back in in this one so maybe I should have just done five but there we go I quite liked him for doing this stuff he’s genius okay so what We’re gonna do next time and I’m just gonna wait till he stops and then bring him back manually to his little position over here and I’m gonna shrine write a little script that’s going to do it going up one actually let’s just stop you it’s down To Bach they stop you okay so let’s take you through here I’m gonna turn you around and take you back over here and we’re going to try and rewrite script that’s going to clear up at the same time and also bring you down as well and That might be really cool okay so this is about nesting programs within programs take you all the way back to the beginning okay cool he’s back here that is great okay I’m not doing too badly let’s go into here so that’s this is gonna this is one’s called repeat and We’re going to repeat this for ten I’m going to do that for five okay so this one’s call it clear level that just clears one level okay so where do you end up so you go one two three four five and then you want to Come back that way so myself here we go one two three four five and then he’s got a coat turn I’m all about that I’ve got to kind of count it out I think so we’re gonna just we’re gonna I’m gonna go back to bed and we’re gonna count Count how many where you get two so I can actually bring you back to the start position and then get you back into the position we’re gonna go back up if that makes any sense I don’t know if I make any sense but you’ll see what I mean in a minute okay So let’s just press go and off he trots doing his own little thing so I need to get some oh yeah right I’m going to use this kind of birch wood as a as a marker so that is his starting position and we need to get into the next position and Then we can get him back into this position so to take him up to the next level and we’ll write a little program to do that and then he will he will know because it’d be great to kind of get rid of all these trees as well and if you can do it On this if you can do it like this you can do it on larger scales and I can just leave him overnight which would be amazing it’ll be like I could come back and you’d be like he’s cleared the entire the entire place other ones are Kind of just go completely out I’m just clear like masses but it would be really really cool c5 is quite a long way as well as n’t let’s see what we’ve got let’s get a torch down here so one two three four five six seven eight nine ten That’s perfect so there we go so that’s what we that’s what we thought okay to us is there so basically he needs to go he needs to turn around he needs to turn left so the next one is the the clear clear area this is proper clear area one okay So clear area one we want you to turn left and move forward one two three four five six seven eight nine ten let’s see if that works perfect and then he wants to turn right again so the next one is turn right okay so I’ll just do that manually okay so And then the next one we’re gonna actually he’s gonna run he’s gonna move up one and he’s going to run a program which is going to be clear level okay and we could put we can repeat this if we repeat this in times let’s put it all the way down Here that down here you great to go okay sorted okay so we say repeat ten okay do so he’ll do that and then this and that should be it and then end oh we want clear level so repeat ten so it’s going to clear the level then turn around come Back and move up one we don’t even need that that’s exactly what what should happen and then it’ll do that ten times and it’s strictly an area above it at the same time right let’s see if this works and really test it out so let’s go let’s actually move forward a little bit Okay so we can clear this area over here I’m gonna turn them right movin forward turn them left and moving forward and then press play okay so this is this should this should clear a level here and it should clear all these trees here as well so I’m gonna do we’re gonna Speed this up I’m gonna keep an eye out for zombies and skeletons and creepers but I’ll speed this bit up for you see you I have to watch him to who this which is let’s face it a little bit boring okay anything a bit boring okay that stamp you bought done one Level he’s coming back up and he’s gonna do the next level now so he’s gonna come up and hopefully he’ll clear all these trees and everything else as well so he’s moving through it this is fantastic there he is it’s doing it it’s happening this is working he’s gonna be clearing a Level ten by ten on the floor and then ten up in the air as well and that’s all because of that little programming I’m running those subroutines so it’s a way of kind of creating a very simple program and then running that program and repeating that program within itself Which is amazing it’s so excited so I’m so excited it’s running this making programming making stamp you bought do all the hard work well while he’s doing the hot I thought Isis goes in there Moyes doing the hard work let’s go let’s go in here and just have a look at kerf What I’ve got going on I’ve got lots of bits and pieces there’s my spare stamping ball oh that’s my turn right so you can actually keep these discs as well so you can put them into other stamping BOTS too I’ve got all this all these diamonds as Well and an ender Pole so I’ve got kind of different different kind of things that that should be quite good fun um so I don’t know whether I should be making myself some armor or other bits and pieces we definitely do need some more we definitely do need some more and iron Sulphide what’s happening stampy but now is obviously would have been useful going down into the doing the strip mining this kind of stuff is definitely kind of the strip mining kind of kind of behavior that’s definitely what I’ve kind of written a strip mine obviously I’m thinking about doing above-ground But he could easily we could easily turn this down below and kind of create some amazing kind of strip mining areas as to so I think that’s what that’s definitely what all we’ll have we’ll have a go up will kind of crate in mind not over not Here but over there somewhere I’d like to clear some of this forest stuff away so there’s some people it’s definitely going to be doing that for me over the next over the next couple of weeks and we’ll see we’ll see how it gets on it will be amazing to clear away some of This sort of tree foliage stuff too and also now that we’ve got this stuff done I think we can actually create something quite sophisticated the snap you can kind of do so we can kind of create a fair few different subroutines that stamp you can come and check it look He’s got up the next level and he can kind of check in and and just decide what he wants to do so we can kind of build in some a bit more some complicated behaviors this is brilliant I just want to say um you know thanks very much ladies and gentlemen for Sticking with me and watching this stuff if you’ve got any questions or if you’ve got any ideas about what you’d like to see us do we stand we bought under kind of suggestions about kind of what what kind of programs we can kind of program Him do let me know in the in the description in the comment section below and remember I have got a couple of aren’t I’ll put I’ll put these at links in there as well if you’re thinking about you know create using this mod for yourself it is a fantastic mod I have Got a little tutorial about how to install it and how I install it particular so do do check that out as well I sent love your video there too until next time thanks very much for watching and I’ll see you all later bye Video Information
This video, titled ‘Wizard Keen plays Minecraft Modded ComputerCraftEdu Survival – [8] Let’s Program a Farm!’, was uploaded by Wizard Keen on 2016-06-02 07:00:00. It has garnered 1023 views and 26 likes. The duration of the video is 00:25:12 or 1512 seconds.
Welcome to Wizard Keen’s lets play series using Modded Minecraft ComputercraftEdu. I have created a Stampy robot called StampyBot and he will help me survive in this new adventure.
Get In Touch With Wizard Keen! Twitter: bit.ly/thecommonpeople Instagram: http://bit.ly/thecommonpeople Email: [email protected]