Create Your Own Minecraft Server

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 today has more than 112,000,000 monthly active 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 allows players to create 3-dimensional worlds using 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 be gathered and assembled to make new items. Java Edition is now available. It allows players to modify the game to suit their preferences, creating new gameplay elements, textures, and assets.

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 the freedom to build whatever they like from the unlimited resources available. Survival Mode is where players must find natural resources like wood and stone through exploration. 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

- You have an Ubuntu Bionic Beaver instance (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. Start by deploying your first instance if you do not yet have an instance.

Connect to your Instance using SSH.

Upgrade the software on the Instance and update the apt packet cache

Copy code for apt update and apt upgrade

OpenJDK is an open-source Java Platform and GNU Screen package.

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 and confirm the password.

Log in to minecraft's user account

su minecraft Copy code

Change into the home directory of the user:

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. These values can be adjusted according to your requirements. For optimal performance, it is recommended that the minimum value be kept at 1024M.

During the first run, the application creates a 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 changing this setting to TRUE, #Fri Nov 15, 14:47:37 GMT 2019, you are agreeing to our$

Save the file by pressing CTRL+O, and exit nano by pressing CTRL+X.

Take control of the current Shell to avoid any issues with the screen command

script /dev/null

Create a new screen to run the Minecraft application in:

Screen -S minecraft Copy 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. minecraft 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. If you wish to create a new Minecraft world, change the level-name directive in your server.properties file and other settings accordingly. For more information, see the official documentation.

How can I connect to my own Minecraft server maker?

Connect your server to the Minecraft client once it is up and running.

Install and launch the Minecraft client from your local computer.

After logging into your Minecraft account, click the Multiplayer button.

Click Add Server and type a name for the server and the public IP Address of your instance.

Your server is now listed in the servers list. Click on the server to connect.

Report Page