Return to site

Create Your Own Minecraft Server

  Minecraft was released in 2011, making it one of the most loved video games. Developed by the Swedish company Mojang, it has reached over 176 million sales. Minecraft today has more than 112,000,000 monthly active players. Minecraft Instances allow you to modify the gameplay according to your preference. Minecraft is a game that allows you to build a 3-dimensional environment using different blocks. The challenge requires creativity and imagination from the players to create their virtual world. By drilling and collecting blocks in Minecraft, users can mine them and break them down. These pieces can then reassembled into new items. Java Edition currently allows players to modify the game according to their preferences, creating new gameplay mechanics. There is no one way to play Minecraft. Players can achieve whatever they want on their own. However, some pre-defined game modes are available: Creative Mode allows players to create whatever they want from the infinite resources available to them. Survival Mode: Players must explore the world to find natural resources such wood and stones. Players will also need to build a shelter to defend themselves against enemies and find food to survive. Multiplayer mode is available in the game. This allows multiple players to interact and communicate within 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 install all the mods you want and customize your world with elements that were not initially available when the game was programmed. 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 configured your SSH key - Your Instance is running Ubuntu Bionic Beaver (18.04 or later). - You have sudo privileges, or access to root user - You have a copy the Minecraft client for your local 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. Connect to your Instance using SSH. Update the apt-pack cache and upgrade the software installed on the Instance apt Update && Apt Upgrade -y Copy code OpenJDK, an open source implementation for the Java Platform (and the GNU Screen) is available. 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. Register for the minecraft account su minecraft Copy code Change into the home directory of the user: Copy code for 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. These values can be adjusted to suit your needs. For the best performance, it is recommended to keep the minimum value at 1024M. During the first run of the application, a file eula.txt is created. Open the file in a text editor (for example nano) and change the value of eula from false to true: nano eula.txt Copy code #By changing the setting below to TRUE you are indicating your agreement to our$ #Fri Nov 15 14:47:37 GMT 2019 eula=true Copy code Then save the file by pressing on CTRL+O and exit nano by pressing CTRL+X. To avoid screen command issues, take control of the current shell script /dev/null Create a new screen for the Minecraft application to be run in: 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. Now log off your Instance, and you can configure your Minecraft client. 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, see the official documentation. How can I connect to my own Minecraft server maker? Once your server has been set up, connect it to Minecraft. Install and launch the Minecraft client from your local computer. After logging into Minecraft, click on the Multiplayer link. Click Add Server and enter a name for your server and the public IP address of your Instance. Your server is now listed in the servers list. Click on the server to connect. Ejac

Ejac