In 2011 one of the most popular video games was released: Minecraft.
It was developed by the Swedish company Mojang and has been sold more than 176 million times. Today Minecraft counts more than 112 million monthly active players.
As the game is fully customizable, hosting your own Minecraft Instance will provide you with full freedom to modify the gameplay towards your own preferences.
This Minecraft tutorial provides you information about the following topics:
Minecraft is a video game that allows players to build a 3-dimensional world using a variety of different blocks. A task that requires creativity from the players who are able to design and build their own virtual world. Nearly every block in Minecraft can be broken down by mining and the be collected. These broken down pieces can then be collected. These pieces can then be assembled to create new items. The currently available Java Edition of the game allows players to customize the game with mods towards their own preferences allowing them to create new gameplay mechanics, items, textures and assets.
As there is no specific goal to accomplish, there is no given way on how to play Minecraft. Players can achieve anything they want by themselves.
However, some pre-defined game modes are available:
The game supports Multiplayer mode, enabling multiple players to interact and communicate with each other on a single world. Player can either connect to one of the publicly available worlds or build their own world with their friends by using a private Minecraft server.
When you play Minecraft out of the box, the extent of your play is limited. You are bound to the rules of the world you are playing in.
By setting up your own Minecraft server, you can set the rules of the game - and invite all of your friends to play with you. You will be able to install all the mods you want and customize your world with elements that were not originally available when the game was programmed.
The Minecraft server is a Java application and runs perfectly on Scaleway Elements Virtual Instances, allowing you to deploy your own Minecraft Instance in just a few minutes.
1 . Connect to your Virtual Instance using SSH.
2 . Update the
apt packet cache and upgrade the software already installed on the instance:
apt update && apt upgrade -y
apt install -y openjdk-8-jre-headless screen
4 . Create a new
minecraft user under which the Minecraft server application will run:
Enter the users new password, the password confirmation and the user details when prompted.
5 . Switch into the
minecraft user account:
6 . Change into the users home directory:
7 . Download the Minecraft server application by using
wget. The link for the latest version of the application is available directly on the Minecraft Server website:
8 . Run the Minecraft server application with the following command:
java -Xms1024M -Xmx2048M -jar server.jar nogui
Important: The flax
-Xmxdefine 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 best performances, it is recommended to leave the minimum value at
9 . During the first run, the application creates a file
eula.txt. Open the file in a text editor (for example
nano) and change the value of
#By changing the setting below to TRUE you are indicating your agreement to our$ #Fri Nov 15 14:47:37 GMT 2019 eula=true
Then save the file by pressing on CTRL+O and exit nano by pressing CTRL+X.
10 . Create a new screen to run the minecraft application in:
screen -S minecraft
11 . Re-run the Minecraft server application:
java -Xms1024M -Xmx2048M -jar server.jar nogui
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"
12 . Once the application is running, move the screen in the background by pressing CTRL+a followed by d. The session is being moved to the background. To resume the running session use the command
13 . You can now log off your Virtual Instance and start configuring your Minecraft client.
Note: The Minecraft server created above uses the standard settings. If you want to create a new world, modify the
level-namedirective in the
server.propertiesfile as well as other settings accordingly. For more information refer to the official documentation.
When your server is up and running, connect it to the Minecraft game client.
1 . Download and launch the Minecraft client on your local computer.
2 . After logging into your Minecraft account, click on the Multiplayer button.
3 . Click on Add Server and enter a name for your server and the public IP address of your Virtual Instance.
4 . Your server is now listed in the servers list. Click on the server and then Join Server to connect to it.
5 . Congratulations! You are now connected to your own Minecraft server: