How To Make A Minecraft 1.16 Server (Hosting a Vanilla Server is EASY)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
what is going on everybody so we're back again today 1.16 just came out and as always i'm going to be showing you guys how to set up your very own minecraft server on 1.16 the nether update is pretty cool i've explored a little bit of it hopefully i can do some more in the future uh real quick i want to let you guys know about an anarchy server that i've been hosting for the past three months it's on mc.boyzdev.com 1.15.2 and if you want to join uh yeah join in uh but let's get right into the tutorial okay so the first thing that we're going to want to do is we're going to want to create a new a new folder on your desktop or anywhere that you're going to want to run the server from so we're just going to create a new folder and uh we're just going to name it mc server 1.16 and this is going to be the directory where we basically put all our server files so now we have to actually go out and get something called the server jar now to do that we can go straight to minecraft.net and then we need to go actually do slash download and it should bring you to the the download page for minecraft and uh if you scroll down you'll be able to find the server software for java so you want to download the minecraft java edition server software click get it here and uh keep this page open but you're going to want to click this download link right here for the jar and it's going to download the jar for you and of course chrome is going to say this type of file could harm your computer do you want to keep server jar anyway we're going to click keep you always want to click keep when you're downloading stuff from like minecraft or uh or mojang i should say anything that's trusted the reason why chrome is giving you a like a warning here is because sometimes you can download stuff that's malicious and this type of file could harm your computer but because we're getting it from a trusted source and that trusted source is mojang which is owned by microsoft we know it's safe so we can click keep and we're going to keep the server jar and it renamed a server for jar for me because i've downloaded uh the server jar from minecraft.net tons of times actually this will be the fourth time obviously on this install of windows and uh that only does that because it doesn't name the server minecraft underscore server 1.16 like that it just names it server jar so what we're going to do is we're going to take this file we're going to drag it out onto our desktop and then into our minecraft 1.16 folder so we're going to let it copy and then in here we have our server 4.jar we're just going to rename this you guys might not have the four i only have it because i've done this four times already so now i'm just going to rename it to server jar that's probably what you're looking at and that's where you want to be so now we have uh just the server jar inside of our folder our next step is to write something called the batch file so we're going to want to make a new text document this is the easiest way to do this so create a new text document all right we can just call it uh start dot txt for now we're going to edit that uh you can edit this with uh notepad plus plus notepads can use regular notepad right now but you can use anything you want to do this so inside of here is where we're going to type our uh our command for java which is going to start our server so to do that uh you guys can actually just basically go back straight back to the minecraft download website that you were on before and this is what we want right here this is the command so we can copy this or you can just type it in if you want but it's easier for me to copy it and we're going to copy it straight into this notepad all right then we don't need a chrome anymore so we can minimize that and now we're going to tweak a couple of these values in here i'm going to explain exactly what this is right now too so this this is a command and it has a bunch of different parts to it but the main command is java and then it's basically saying all right java you need to you you're allowed to use this much memory okay which is your ram this is called allocating memory to java so what you would do is this right here is 1024 megabytes that's what the m means this is the maximum amount of memory that your server is allowed to use if you want to bump this up to two gigabytes you would you could turn this to 2048 uh and i would also recommend keeping both of these numbers the same so change the the initialization amount also to 2048 because this isn't the smallest this is the initialization so basically you'll have what it starts with and then what it maxes out at xms and xmx and you can tweak those values depending on how much ram you want to allocate to your minecraft server i have other videos explaining this but i thought i'd just go over it real quick here the next part of this command is attack jar or a hyphen jar and what that is telling java is what type of file it's about to look at or interpret or run and we're telling it as a jar file all right and then we're actually going to specify the name of our jar file and as you can see we have an issue here the name of our jar file is server.jar it's not minecraft underscore server.1.16.jar like the command says here if you guys don't change this it's going to fail i see so many people making this problem you have to name your command the same as what your jar is actually named because you're going out and looking for this file it has to exist the other one didn't exist this one does i hope that makes sense and uh you just have to make sure that this and this are named the same exact thing or it will not work uh the next part of the command is no gui and what this is gonna do is uh basically make it so that minecraft doesn't use its native gui when the server launches so minecraft has their own really stupid gui i honestly don't like it i don't use it and i think it just it hurts your performance of your server overall because it takes resources to to load that and keep it rendered on your screen so there's no point to really use it because you can do everything you can do in there from the command line itself so that's why i just stick in the command line and i'm actually gonna add one more thing to this batch file that uh they didn't do on the minecraft website and i'm going to hit enter to go down to a new line and i'm going to type pause and what that's going to do is prevent the command prompt from closing once this script finishes it's going to pause and ask me to hit a key before it closes and i'm doing that so if we get an error we actually can read what the error is otherwise it'll just tell you the error message and then the window will just close we don't want that we want the window to stay open so we're going to tell it to pause at the end so that's what the pause means and we can uh we're done writing this so now we're going to do is we're going to go file and we're going to go save as very important okay you want to make sure you're in uh you're in your minecraft server uh folder which we are and we're going to want to take this and see where it says save as type down here we're going to change this file type to all files okay and then we're going to remove this dot txt file extension right here in the file name and we're going to replace that with dot b-a-t and that's the file extension for a batch file and when we do this it's gonna if we go back to our folder now we have start.bat right above start.txt we no longer need this text file so we can x out of it and we can actually delete it out of our folder all we need is this start.bat and our server.jar so the next step now would be to launch up the server jar and there's another step you guys have to have java installed on your computer in order for the java command to work if that's not working it could be a problem with uh your environment uh path variable um i will do my best to maybe provide a link in the description for a way to fix that it's not the most straightforward thing to do um but you guys shouldn't really have too many issues with that as long as you've played minecraft before and java seems to be working fine on your computer you should be good uh also try to make sure you have a 64-bit version of java because if you don't you'll be limited on the amount of ram that you can allocate to the server i believe it's two gigabytes on 32-bit um so other than that is once you have java and you know you have java installed which i'm assuming most of you already do but the only reason i'm saying this is because i've had some people in the past ask me what if they need java to run a server and the answer is yes yes you do so now we can actually run our batch file so we're going to continue now we're just going to double click it and it's going to open up our command prompt it's going to if you look over here in this folder it's gonna create a couple things and then if we look back in the command prompt it says uh failed to load properties from file that's because it didn't exist yet and failed to load the eula dot text and it created the eulo.txt which is yula's end user license agreement if you didn't know what you need to do is agree to the end user license agreement in order to run the server this is perfectly normal and this will happen every time you launch a server so what you can do is you can see our our pause command worked great it stopped everything so we could read it right here so now we have to do is just click enter to exit out of the command prompt and you can see now we have a couple files here we have logs that was just what we saw in that window being saved to a file we have our eula.txt and then we also have our server.properties we're not going to worry about the server.properties yet because it's not complete but we're going to worry about euler.txt so now we want to edit the eula.txt and we want to change this setting from false to true what that's doing is basically just accepting their license agreement and allowing us to use their software so now once we uh put that to true we can double click our start.bat again to launch the server and we should see it progress this time and you can see we launched up minecraft server route 1.16 game type survival it's preparing our world right now it's generating our spawn area all right so now you can see that it's done initializing uh preparing our spawn area it says done down at the bottom here and it told us how long it took to uh start up and uh if you guys ever need help too you can also put i think it's just a question mark or you can type in help yeah they get rid of the question mark so you can type in help and it should uh should give you all the stuff you can do from console which is pretty cool uh but yeah we're gonna stop the server and i'm gonna explain real quick the the correct way to stop your server is do not hit this x button if you hit this x button you can corrupt your world files because it's not gonna save them before exiting or you can lose progress or get set back there's tons of things that can happen you can corrupt and corrupt data that way so the correct way to stop your minecraft server is to use the stop command literally just type stop hit enter and it will stop the server it's going to save all the chunks in every world and exit correctly so now we can hit enter again to close the window and we can see in here it created a bunch more files for us now now we have our user cache we have a white list we have the ops file banned ips and players as well as our server properties in eula plus we have our actual world file here now this is what you would replace or rename or change if you were wanting to put a custom map on here or uh yeah so what we're going to do now is uh we're going to edit the server properties file i'm just i'm not going to go through the whole thing i'm just going to go through a little bit of it right now but the way that you edit this file because i've had countless people hit me up saying that they don't know how to open this file because it's a dot properties file extension it's not associated with notepad they can't open it they don't know how and that's fine i'm gonna explain real quick how to do that you would right click on it okay and then you would go open with and you would find notepad in this list and hit ok it's that simple guys all right now that you have your server properties open you can go and tweak all the settings for your server here all right the one that uh you're going to want to worry about probably the most is going to be server port right here the default port for minecraft is two five five six five now if you're gonna be putting this up on your uh network and you want people from like you know other other parts of the country or even down the street people that aren't in your local area network people that aren't on your wi-fi are gonna need access to this server and the way that they do that is going through a port all right and you have to forward that port so i'll explain what port forwarding is in a minute as well but just so you know this number is what you would need to know if you were going to port forward if you're just playing lan you know in your own wi-fi you don't really have to worry about this uh view distance is important this is where you can change how far the server renders chunks away from a player if you're having server stability problems lowering this number could help you a lot um online mode true this is a big one for people if you do not have a minecraft premium account setting this to false will let you join the server it will not load skin or any type of information about a player's account it's not going to be able to access the mojang servers what this does is if you make this false it stops your server from talking to mojang all right it doesn't verify accounts and it'll let cracked players join your server so if you want to play cracked this is the setting you need to change a level seed people were having issues with this as well the level seed is easy you can put your seed here but it's not going to change your existing world file it's already generated this remember when we started the server after uh the first time or the second time after we accepted our ula what it did was it created this world and if you go into this world right here you actually look in this level.data file i can't because i don't have an nvt editor right now but there's already a seed in there that's not going to change if if you just type a seed in here but what you can do is you can delete this delete this world and regenerate a new one with a seed here and it will use that seed in that world if that makes sense so set a seed delete your world regenerate the world and now you'll have that seed so that's how that works uh and then message of the day this is probably the other one that you guys are going to care about the most this is where you would set uh what it says in the you know the server select screen so if i wanted to say uh voice devs oops uh tutorial 1.16 server we'll save that now and yeah so that's just a couple things that you can change i have a whole other video explaining basically what most of this stuff does in here what you should change and what you shouldn't and just gives you a good idea of everything in your server.properties file i'll put a card up here for that and uh yeah hopefully you guys can figure out whatever you need to figure out with that so that's basically it for the server.properties we connect out of that now and we can launch our server and this is the server guys it is basically done at this point this right here is your server you can't x out of this window i keep getting people asking me oh after i load up the command prompt can i x out of it and will my server still be up no this is literally the server software running if you close this out the server software stops running and you don't have a server anymore so this has to be up 24 7. you can minimize it you can do whatever you want to keep it out of the way but you can't close it it has to be running so now i'm going to show you guys how to join the server and i'll be right back alright so here we are we have minecraft 1.16 loaded up look at that nether in the background so to join our server it's just as easy as going to multiplayer uh and uh we'll add our server in so we can see our message of the day and we're gonna we'll just name this tutorial real quick or just tut and then the server address now this is where everyone's getting confused there are three only three ways to join a minecraft server there's locally which is if you are hosting the com uh the server on the same computer that you're trying to join on so if i was hosting that server we just set up on the computer that my minecraft client is playing on right now i would join locally now the way to do that is to just type in a zero i'm assuming that's what most of you are doing now that's how you're going to want to join your minecraft server is just by typing a 0 and hitting enter you can also type localhost like that that is the same thing as typing zero okay or there's one more thing you can do which confuses a lot of people but it's not that complicated you can type in your something called your loopback ip address that is 127.0.0.1 all right i can almost guarantee that for all of you unless someone wanted manually changed it that's your loopback ip that's the same thing as typing zero same thing as typing localhost now let's say you were hosting that on a different port you know how it was two five five six five was the default that we saw in our server.properties file let's say that it was two five five six six because we have two minecraft servers running and we wanna join our second one and not the first now if you just type in zero it's going to go to two five five six five so to go to two five five six six this works with anything on the internet by the way you would put a colon after the url or the ip address and you would do two five five six six that's the other port that would let you join the minecraft server if you're running it on two five five six six so that's how to join locally and i'm assuming that's what most of you guys are doing right now the other way to join which is how i'm gonna have to do it right now is basically if you were to like set up a you have a spare computer in your house you set up a minecraft server on it and let's say that's tucked away somewhere in like the office or something and now you're sitting in the living room on your laptop and you want to play minecraft on that server it's still within your network so you need the ip address of that other computer all right now real quick we'll go back into uh we'll go back into where the server was and you can see we need that this computer is separate from the other one that i'm running minecraft on so i need the ip address of this computer now the way that we can do that is by opening up a command prompt so you're going to want to open up a command prompt you can do that by typing cmd down here in your search bar and once you get the command prompt open you're going to want to type the command ip config if i can spell and i can't spell today so there we go ipconfig and hit enter it's going to give you your windows ip configuration what you care about is something called your ipv4 address and it's right here and ours is 10.0.0.204. so that's what we need to type in when we go into minecraft so let's pop back over to our minecraft client okay so now that we've figured out what the ip address is of the server computer now we just type that in here and it takes us to the server so it'd be 10.0.0.204 in this if i click done you can see hey it pinged the server and it got a response and it says this is voice devs tutorial 1.16 server so it's working and let's see if we can join it and there we are guys look at that we're on minecraft 1.16 on our own server that we just created okay so now that we're on our server you're probably wondering hey how do i give myself cheats and commands i own this place shouldn't i be able to you know give myself creative mode and fly around and you know cheat and all that fun stuff well yeah you can do that but if i type in slash game mode you can tell me that it's not going to let me do anything and the reason why is because i'm not opt on this server now you're going to want to opt yourself so to do that you can't do that in game you have to go back to the console for that so we're going to pop back over to the console and you can see in here i already did it once but we're going to do it again just for the sake of showing you guys you're going to type in op space and then your username so mine's voice dev so op voice dev and that makes voiced have a server operator so now if we go and hop back over to our minecraft server you can now see that it made us a server operator and if i type game mode it'll let us actually go into creative so yeah alright now that's great you got on the server yourself now you want to get your friend on the server that's the next struggle that you're gonna have to get over with hosting a server is something called port forwarding all right now basically if you want your friend to join your server you're gonna have to give him something called your external ip address you can't find that out through a command prompt so the way that you're going to do that is you're going to have to go online and just google probably what is my ipv4 all right and i'm not going to hit enter because it's going to show my ip and i don't have a vpn on right now so google that figure out your ip address it's going to look like some number like 121.25.245.12. it's going to look something like that all right if it has letters in it that is an ipv6 that's not what you want you want an ipv4 make sure that's important so you would give that i p address to your friend and he would type that in to join your server but there's one more thing you have to do and it's called port forwarding i have a whole nother video explaining what port forwarding is and how to do it and i'm going to link that right now i'm not going to go over it here if you guys want to know how to port forward go follow one of those guides and if you have any questions feel free to ask me or let me know um or drop them in the comments even but let me explain really quick why you need to port forward when you port forward you basically create a little hole all right a little hole in the firewall called the port and what that's going to do is allow certain traffic that's directed at that port to flow through your router and then your router is told where to where what computer to forward all that information to which would be your server so you basically have to tell your friend connect to this port and then my router will send you to the server that's how that works so they would type in your external ip address and it would automatically go to port 25565 because that's what minecraft's default port is and if you had a 25565 port forwarded to your server's host address on your router you'd be able to join now that is the issue most people are having when trying to set up a server it's not getting the software to work it's getting the networking side of it to work uh like i said i'll drop the guide up in the top right right now that i have for port forwarding but if you don't port forward your external friends are not going to be able to get on your minecraft server because your router's firewall is going to block them from doing so and that's normal functionality and like i said you can change that you can fix that just by port forwarding well there you go that was how to set up your very own minecraft 1.16 server if you had any questions about that at all uh be sure to drop them down in the comments section below you can always dm me on discord um if you have any further questions i might be able to even help you one-on-one on there it depends there's a lot of people that hit me up sometimes i don't have time but i'll always try uh to answer you if i can um but yeah if you guys enjoyed this be sure to leave a like if you want to see more tutorials from me in the future uh definitely uh subscribe and hit that notification bell but that's going to be it for this one so see you guys in the next video hey bye
Info
Channel: Voizdev
Views: 2,309,766
Rating: undefined out of 5
Keywords: voizdev, minecraft, server
Id: 8ghc71KagTc
Channel Id: undefined
Length: 25min 32sec (1532 seconds)
Published: Wed Jun 24 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.