Hello everyone and welcome back to a video here on my second channel where I’m talking about pre generating a world and showing you a little bit of a program that I’m sort of developing as you might guess this is related to hermitcraft season 7 and how I’m gonna Pre generate lots of terrain so the performance is good and let’s start off with the question why why would you want to pre generate minecraft terrain well for example when we fly off into the distance we start to generate new chunks the game has to create them if we fly Into an area that’s already been created it is far less work on the game and therefore on the server to load as opposed to generate so when you start a new world and you’ve got loads of people running around in the server for the first time they’re gonna load up lots And lots of chunks as they explore in different directions but we want them to do is load the chunks and not generate them which is why we start off by pre generating now you can do this in all dimensions I’ve done it in the nether the overworld and the end for hermit Craft season 7 and the way that we pre generating the world is by using the teleport command to move the player through the world and so I’m using external program to send commands into the chat to do these teleport commands now there are a few other considerations You would want to do before you start regenerating and that is perhaps turning off things like daylight cycle weather cycle and even mob spawning so there aren’t other events and things happening in the world we want the world to be basically as neutral as we can while we Teleport around and it generate the world so it should be obvious that we got a teleport around the world and we’re gonna use some maps and teleport in the shape of a grid so for example we can teleport three times across over there go down a row teleport three times Across and you know that’s absolutely fine however it uses an odd amount of numbers so we can picture the middle one as zero zero however I felt more comfortable with using an even amount of teleports and I believe that’s because the game is based on a grid system so The chunks are lined out in a grid meaning that there isn’t actually like a central 0 0 block so going around of that principle I decided to do it this way but you can do odd or even now we’re going to be loading 3072 blocks in each direction and the reason It’s that number specifically is because of the region files so the region files through all of the chunks like the one that I’m in right now and they are 1,024 blocks in each direction so that means that we’re doing six region files across a total of 36 region files so I’m going To be writing a script to send teleport commands into the game and I’m going to be using some logic with loops so that I don’t actually have to write out every single individual teleport and also I can make sure the loading of the world is a little better by looking around Like this one thing I’ve noticed when you teleport to a location and then you turn to the side you seem to prompt the game into loading the chunks in the distance so I’m making sure we’re teleporting to each location and then looking all around us to make sure it’s All been loaded so this command right here only ever gets sent once it’s the very first teleport and it sends us to the utmost corner of this grid of teleports that we’ve created the second command then starts to rotate yes notice how these right here mean that we stay In the same position but we changed the way that we’re facing and looking so we’ll be up in the sky looking down at the world and rotating like this so that’s what the next couple of commands are they simply just rotate us around in a circle to look in all of those Directions and then we get to this one right here and what this one does is it actually just teleports us across relative to where we currently are and that means that we’ll then go from here over to here and this is where the loop goes back to the beginning so now we’re Gonna start teleporting around in a circle again and then when we reach the end we teleport across we go around in a circle we teleport across but after we’ve done that loop a certain amount of times we then come to our next loop which is this command over here it’s Gonna teleport us back to the beginning on one coordinate but down relative on the next one so that means that we shift downwards but we also go back to here and then guess what we start this series of teleports again so we’re teleporting around in the circle We’re moving across and then that loop continues and when it reaches the end over here we come back to this one and you know what happens it means we go down a row and back to the beginning and then the looping continues so here is a time-lapse of this in action I believe It’s actually been sped up by about eight times in total so this is eight times faster than the teleports are actually being sent into the game and this seemed to work flawlessly now you’ll notice that there are some erroneous messages in chat and that was actually from earlier when I was still Tweaking the script and the rate at which it sent things into chat but at this point I basically got it so every command got through and you can just see it in action we ever taking around in a circle then we’re moving across and occasionally we get to the end of the Row and we come back to the beginning and we move down on that grid that I showed you just a moment ago should also just amend this and say that it works 100% and it took about two hours and you could possibly speed that up or slow it Down based on the system that you’re running but after I did all the pre-loading I opened the world up in another tool just to check that all of the Train have been generated and it had done successfully so now we get to look at the code potentially the most boring And possibly confusing or interesting depending on if you understand this stuff or not I also want to give out a shout-out to Mon pjc who helped develop the auto clicker that I showed in the fishing tutorial he help add in some extra script here and help me get you Know everything up and running one of the big things is this part called chunk builder this allows us to put the code we want to execute inside of a bracket and we can execute that code after pressing ctrl alt & Q so this meant that I didn’t have to like open the script And then quickly Auton tab into minecraft or add a delay at the beginning you can start the script when you’re ready so that’s fantastic at the top here there is another part right here and you’re gonna hear me talk about variables a lot if we turn this into a Program with an interface then the variables mean you can change things based on your system now I got this working with set key delay at around 50 when you go under 50 you’re sending the key inputs to the game and it’s not quite picking all of them up so that Causes some issues so I set it to 70 just to be safe and the faster that is of course the faster it types commands and it adds up overall to make the whole generation thing a little bit faster so this will probably be a variable where you can set It from like 50 to 100 if you’re on a slow computer a larger number might be required now as we go down there are again variables TP delay is a variable between every single teleport so you can slow the whole thing down based on your System so I set it to this number right here and I’d tried a few I maybe could have run it a little bit faster but I wanted to be safe because this was for hermit craft so again this becomes a program that’ll be another variable you Can change and then you can make the program generate faster or slower so it starts off by sending that delay and it does it in between all these other commands as you can see here so we have our very first teleport command right here and again another variable is that We’re using maps to spread out our teleports around the world so based on the grid size you could tell the game you want it to generate these numbers right here would change and they would also change in correlation with the loop function that we have right here I’ve actually got a feeling that’s Supposed to be 24 and not 23 but I might have the wrong file open but anyway we go into two loops and this is like I described a moment ago so we start off a loop we jump straight into the next one and we start to teleport around in a Circle because we’re already in that utmost position thanks to this teleport here and then we do the relativistic teleport and then we go back to the loop right here so that’s us running across a whole row of those teleports and then once that loop is done we go back to This loop and the first thing it does is initiate this one again but of course down the bottom here we have that teleport to bring us down a row as well so with this if you were to generate a smaller area this number will become smaller and then the amount of loops you Would do would be smaller as well but that’s all you would need to change so it’s it’s pretty pretty cool stuff hopefully you understood it when you get through the end over here you can see there is also a teleport just to go back to the very middle of the world which Isn’t necessary but it’s it’s there so as you probably gathered I want to turn this into a program the script you just saw successfully loaded the world so I’m pretty confident it can be done but it might take a little bit of time however my ears are open if you’ve Got suggestions and whatnot put them in the comments down below one thing I think we might do is perhaps have these run at the beginning of the script and then turn them back on at the end so you don’t have to worry about that and also teleporting into other dimensions is Pretty easy as well as you can execute I’m using the wrong one here execute in you pick your dimension and then you run the teleport command and teleport the player to that dimension so this thing can easily support all dimension without the player half in to set up a port or Move around the world or anything like that so it could end up being a very calm powerful tool but I just wanted to make this video to show you how it’s done and maybe give you some of the tools and insights into how you could create your own script to do this but Yeah anyway that’s it for me this video thanks for watching and I’ll see you soon on season seven a hermit craft bye bye Video Information
This video, titled ‘Pre-Generating A Minecraft World (Hermitcraft Season Seven)’, was uploaded by xisumatwo on 2020-02-26 15:15:01. It has garnered 625977 views and 23743 likes. The duration of the video is 00:09:52 or 592 seconds.
In this video I show you the process I went through to pre generate a new minecraft world!
Hermitcraft Season Six World Download! https://www.youtube.com/watch?v=FmQH4RhmgB0
Links! 💜 Main Channel https://www.youtube.com/user/xisumavoid 🧡 Xisuma Says ► https://www.youtube.com/c/xisumasays 📺 Live streams ► http://www.twitch.tv/xisuma 🔷 Twitter ► https://twitter.com/xisumavoid 📘 Facebook ► http://on.fb.me/xisuma_facebook 💻 Website ► http://www.xisumavoid.com 👍 Patreon ► https://www.patreon.com/xisuma
#minecraft #worldgeneration #seasonseven