Profile
Create Your Own Minecraft Server Minecraft was one of the most played video games in 2011. It was created by Mojang, a Swedish company. It has been sold more than 176 million times. Today Minecraft counts more than 112 million monthly active players. Minecraft Instances can be hosted on your own server and you will have complete control over how the game plays. Minecraft is a game that allows you to build a 3-dimensional environment using different blocks. The players must be creative in order to design and build their virtual world. Users can mine and break down nearly every block in Minecraft by drilling and then collecting them. These pieces can be taken apart and reassembled to make 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. There are however, pre-defined game modes that can be used: Creative Mode, which allows players to build whatever they can imagine from the limitless resources given 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? Minecraft servers 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 any mods that you like and add elements to your world that weren't available when the game was first created. 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 you are logged into Scaleway. - You have successfully configured your SSH key - You have an instance running Ubuntu Bionic Beaver (18.04), or later - You have sudo privileges or access to the 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 apt update &&apt upgrade -y Copy Code Install OpenJDK, an open-source implementation of the Java Platform and the 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 Enter the user's new password, the password confirmation and the user details when prompted. Switch into the minecraft user account: su minecraft Copy code Change into the user's home directory: cd Copy code 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 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, such as nano, and change the value for eula to true. nano eula.txt Copy code #By changing the setting to TRUE, you are agreeing to our$ #Fri November 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 problems with the screen command, take ownership of the current shell script /dev/null Create a new screen for the Minecraft application to be run 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 After the application has finished running, move your screen to the background using CTRL+a followed d. To restart the session, use the command line screen -r. You can now log out of your Instance and configure your Minecraft Client. Note: The Minecraft server created above uses the standard settings. If you want to create a new world, modify the level-name directive in the server.properties file as well as other settings accordingly. For more information, please refer to the official documentation. How can I connect to my own Minecraft server maker? When your server is up and running, connect it to the Minecraft game client. Download and launch the Minecraft client on your local computer. After logging in to your Minecraft account click the Multiplayer button. Click on Add Server to enter a name and public IP address for your instance. Now your server is listed in the servers directory. To connect to the server, click on it and then Join Server.
Forum Role: Participant
Topics Started: 0
Replies Created: 0