Create Your Own Minecraft Server


Minecraft was the most downloaded video game in 2011



It was developed by Mojang in Sweden and has sold over 176 million copies. Minecraft now has more than 112,000,000 active monthly players.



As the game is fully customizable, hosting your own Minecraft Instance will provide you with complete freedom to modify the gameplay towards your preferences.



Minecraft is a video game that allows players to build a 3-dimensional world using various blocks. The players must be creative in order to design and build their virtual world. By drilling and collecting blocks, users can mine and remove them from Minecraft. These broken-down pieces can then be collected and assembled to create new items. The currently available Java Edition allows players to customize the game with mods towards their preferences, creating new gameplay mechanics, items, textures, and assets.



There is no one way to play Minecraft. Players can achieve anything they want by themselves.



However, certain pre-defined game mode are available:



Creative Mode allows players the freedom to build whatever they like from the unlimited resources available. Survival Mode: Players must explore the world to find natural resources such wood and stones. To survive against enemies and build a home, players will need to construct a house. The game supports Multiplayer mode, enabling multiple players to interact and communicate in a single world. Players can either connect to one of the publicly known worlds or build their world with their friends by using a private Minecraft server.



Why should I run my own Minecraft server?



By setting up your own Minecraft server, you can set the game's rules and invite all of your friends to play with you. You can add all the mods and modify your world to include elements that were not available in the original game's code.



The Minecraft server is a Java application and runs perfectly on Scaleway Instances, allowing you to deploy your own Minecraft Instance in just a few minutes.



How can I create my own Minecraft server maker?



- You have an Account and are logged into Scaleway


- You have now configured your SSH Key


- Your Instance is running Ubuntu Bionic Beaver (18.04 or later).


- You have sudo privileges or access to the root user


- You have a copy Minecraft client for your computer


Deploying your own Minecraft server can be done in a few easy steps on a Scaleway Development Instance. In case you do not have an Instance yet, start by deploying your first Instance.



SSH allows you to connect with your instance.





Update the apt cache cache and upgrade any software already installed on the instance:



Copy code for apt update and apt upgrade





OpenJDK is an open source implementation of the Java Platform.



apt install -y openjdk-8-jre-headless screen Copy code





Create a new minecraft user under which the Minecraft server application will run:



adduser minecraft Copy code



When prompted enter the new password, confirmation code and user details.





Switch into the minecraft user account:



su minecraft Copy code





Change into the user's home directory:



Copy code from cd





Download the Minecraft server maker application by using wget. The link for the latest version of the application is available directly on the Minecraft Server website:



wget https://launcher.mojang.com/v1/objects/3dc3d84a581f14691199cf6831b71ed1296a9fdf/server.jar Copy code





Run the Minecraft server application with the following command:



Important: The flags -Xms and -Xmx define the minimum and maximum amount of RAM that can be used by the Minecraft server application. You may adjust these values to your needs. For optimal performance, it is recommended that the minimum value be kept at 1024M.





During the initial run, the application creates the file eula.txt. Open the file using a text editor (e.g nano) to change the value of the eula variable from false to true.



nano eula.txt Copy code



#By setting the setting below to TRUE, you indicate your agreement to our$ #Frinov 15 14:47.37 GMT 2019, eula=true Code



Next, save the file by pressing CTRL+O. Finally, exit nano with CTRL+X.





To avoid problems with the screen command, take ownership of the current shell



script /dev/null





To run the Minecraft application, create a new screen:



screen -S minecraft Code code





Re-run the Minecraft server maker application:



java -Xms1024M -Xmx2048M -jar server.jar nogui Copy code



The following output informs you that the Minecraft server application is running:



... [14:53:38] [Server thread/INFO]: Starting minecraft server version 1.14.4 [14:53:38] [Server thread/INFO]: Loading properties [14:53:38] [Server thread/INFO]: Default game type: SURVIVAL [14:53:38] [Server thread/INFO]: Generating keypair [14:53:38] [Server thread/INFO]: Starting Minecraft server on *:25565 [14:53:39] [Server thread/INFO]: Using epoll channel type [14:53:39] [Server thread/INFO]: Preparing level "world" [14:53:39] [Server thread/INFO]: Reloading ResourceManager: Default ... [14:54:18] [Server thread/INFO]: Preparing spawn area: 83% [14:54:19] [Server-Worker-2/INFO]: Preparing spawn area: 85% [14:54:19] [Server thread/INFO]: Preparing spawn area: 88% [14:54:20] [Server-Worker-2/INFO]: Preparing spawn area: 90% [14:54:20] [Server-Worker-2/INFO]: Preparing spawn area: 95% [14:54:21] [Server thread/INFO]: Preparing spawn area: 97% [14:54:21] [Server thread/INFO]: Time elapsed: 14775 ms [14:54:21] [Server thread/INFO]: Done (42.088s)! For help, type "help" Copy code





Once the application is running you can move the screen to the background by pressing CTRL+a followed closely by d. To restart the session, use the command line screen -r.





You can now log out of your Instance and configure your Minecraft Client.
Minecraftservers



Note: The Minecraft server created above uses the standard settings. You can create a new world by changing the level-name directive and other settings in the server.properties. For more information refer to the official documentation.





How can I connect to my own Minecraft server maker?



Once your server is up, connect it with the Minecraft client.



Download and launch the Minecraft client on your local computer.





After logging in to Minecraft, click the Multiplayer icon.





Click Add Server and enter a name for your server and the public IP address of your Instance.





Your server is now in the servers list. To connect to your server, click the server and then Join Server.


Created: 07/08/2022 00:06:05
Page views: 54
CREATE NEW PAGE