This is a Minecraft 1.12 update for my previous 1.9 contraption, which could be found here: https://www.youtube.com/watch?v=7WSMgOVsnCU
I show a vanilla Minecraft 1.12 command block which can _pre-generate_ a Minecraft world, so that when you play, you get less block lag!
Background: The Minecraft terrain generator is one of the more computationally expensive parts of the game, so when starting a new world, or exploring out into new chunks, you may find that the game 'lags' because Minecraft is computing the new chunks. Thus I created a way to generate all those chunks before you start (while you're AFK - "away from keyboard"), so that once you're ready to actually play, things run smoothly.
To use this one-command-block contraption, create a new world in creative mode, and then
/tp 0 250 0
/give @p command_block
Right-click the command block, paste in the command copied from here: https://pastebin.com/y7UHeu4x
Set the command block to 'always active'
Set your render distance to 8 chunks
/scoreboard players set @a Running 1
Wait (go AFK) for 'RadiusCompletedSoFar' to reach the desired size
/scoreboard players set @a Running 0
Set your render distance back to whatever size you like
And now you're ready for a Minecraft experience with less lag! If you waited until the radius reached '1000' (which might take 15 minutes), then all the chunks from -1000,-1000 to +1000,+1000 will have been generated.
Note that this will change the spawn point of the world. If you want to use this in an _existing_ world, be sure to write down the coordinates of the existing spawn point, so you can teleport back there and set it back with /setworldspawn after running the AFK-pre-generator.
Subscribe for more videos here: https://www.youtube.com/user/lorgon111
Follow me on twitter @lorgon111 : https://twitter.com/lorgon111