Difference between revisions of "Create Your Own Minecraft Server"

From Hikvision Guides
Jump to: navigation, search
m
m
Line 1: Line 1:
<p> Minecraft was one of the most played video games in 2011.</p><br /><br /><p> It was developed by Mojang (Swedish company), and has sold more than 176 millions units. Minecraft today has more than 112,000,000 monthly active players.</p><br /><br /><p> As the game is fully customizable, hosting your own Minecraft Instance will provide you with complete freedom to modify the gameplay towards your preferences.</p><br /><br /><p> Minecraft allows players to create 3-dimensional worlds using 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 then reassembled into new items. Java Edition is currently available. This Java Edition lets players customize the game to their likings, creating new gameplay mechanics and textures.</p><br /><br /><p> There is no set goal for Minecraft. Players can accomplish anything they want.</p><br /><br /><p> However, some pre-defined game modes are available:</p><br /><br /><p> Creative Mode allows players create whatever they want with the limited resources they have. Survival Mode allows players to find natural resources, such as wood or stone, by exploring the world. 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.</p><br /><br /><p> Why should I run my own Minecraft server?</p><br /><br /><p> 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.</p><br /><br /><p> 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.</p><br /><br /><p> How can I create my own Minecraft server maker?</p><br /><br /><p> - You have an account, and you are logged into Scaleway. - You have configured your SSH key  - You have an instance running Ubuntu Bionic Beaver (18.04), or later  - You have sudo access or privileges 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. If you don't have an Instance, you can deploy your first instance.</p><br /><br /><p> Connect to your Instance using SSH.</p><br /><br /><p>  Upgrade the software on the Instance and update the apt packet cache</p><br /><br /><p> apt update &amp;&amp; apt upgrade -y Copy code</p><br /><br /><p>  OpenJDK is an open source implementation of the Java Platform.</p><br /><br /><p> apt install -y openjdk-8-jre-headless screen Copy code</p><br /><br /><p>  Create a new minecraft user under which the Minecraft server application will run:</p><br /><br /><p> adduser minecraft Copy code</p><br /><br /><p> When prompted, enter your new password, confirm your password, and provide the user details.</p><br /><br /><p>  Switch to the minecraft user account</p><br /><br /><p> su minecraft Copy code</p><br /><br /><p>  Change into the user's home directory:</p><br /><br /><p> cd Copy code</p><br /><br /><p>  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:</p><br /><br /><p> wget https://launcher.mojang.com/v1/objects/3dc3d84a581f14691199cf6831b71ed1296a9fdf/server.jar Copy code</p><br /><br /><p>  Run the Minecraft server application with the following command:</p><br /><br /><p> 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.</p><br /><br /><p>  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.</p><br /><br /><p> nano eula.txt Copy code</p><br /><br /><p> #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</p><br /><br /><p> Save the file by pressing CTRL+O, and exit nano by pressing CTRL+X.</p><br /><br /><p>  Take control of the current Shell to avoid any issues with the screen command</p><br /><br /><p> script /dev/null</p><br /><br /><p>  Create a brand new screen to run the Minecraft app in:</p><br /><br /><p> Screen -S minecraft Copy code</p><br /><br /><p>  Re-run the Minecraft server maker application:</p><br /><br /><p> java -Xms1024M -Xmx2048M -jar server.jar nogui Copy code</p><br /><br /><p> The following output informs you that the Minecraft server application is running:</p><br /><br /><p> ... [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</p><br /><br /><p>  Once the application is running, move the screen in the background by pressing CTRL+a followed by d. [https://anglepickle0.doodlekit.com/blog/entry/22212170/make-a-minecraft-server-5-easy-steps Best Minecraft Servers] [https://lessontoday.com/profile/amountpickle8/activity/1993926/ Minecraft] The session is being moved to the background. You can resume the running session by using the command screen –r.</p><br /><br /><p>  Now log off your Instance, and you can configure your Minecraft client.</p><br /><br /><p> 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 refer to the official documentation.</p><br /><br /><p>  How can I connect to my own Minecraft server maker?</p><br /><br /><p> Once your server has been set up, connect it to Minecraft.</p><br /><br /><p> Install and launch the Minecraft client from your local computer.</p><br /><br /><p>  After logging in to Minecraft, click the Multiplayer icon.</p><br /><br /><p>  Click Add Server, and enter a name to your server and the public address of your instance.</p><br /><br /><p>  Your server has been added to the servers list. Click the server and then Join Server to connect to it.</p>
+
<p> In 2011 one of the most popular video games was released: Minecraft.</p><br /><br /><p> Developed by the Swedish company Mojang, it has reached over 176 million sales. Minecraft now has more than 112,000,000 active monthly players.</p><br /><br /><p> Minecraft Instances allow you to modify the gameplay according to your preference.</p><br /><br /><p> Minecraft allows players to create 3-dimensional worlds using 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 pieces can then be gathered and assembled to make new items. Java Edition is currently available. This Java Edition lets players customize the game to their likings, creating new gameplay mechanics and textures.</p><br /><br /><p> There is no goal, so there is no way to play Minecraft. [http://74novosti.ru/user/beepoint0/ Fake Root] Any goal can be achieved by players.</p><br /><br /><p> However, some pre-defined game modes are available:</p><br /><br /><p> Creative Mode allows players create whatever they want with the limited resources they have. Survival Mode: Players must explore the world to find natural resources such wood and stones. To survive, players must build a house and protect themselves from enemies. [https://www.transtats.bts.gov/exit.asp?url=https://fakeroot.net/ Fake Root] 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.</p><br /><br /><p> Why should I run my own Minecraft server?</p><br /><br /><p> 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.</p><br /><br /><p> 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.</p><br /><br /><p> How can I create my own Minecraft server maker?</p><br /><br /><p> - You have an account and are logged into the Scaleway console - You have successfully configured your SSH key  - You have an instance running Ubuntu Bionic Beaver (18.04), or later  - You have sudo access or privileges to the root user  - You have a copy of the Minecraft game 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.</p><br /><br /><p> Use SSH to connect to your instance</p><br /><br /><p>  Update the apt packet cache and upgrade the software already installed on the Instance:</p><br /><br /><p> apt update &amp;&amp; apt upgrade -y Copy code</p><br /><br /><p>  OpenJDK is an open source implementation of the Java Platform.</p><br /><br /><p> apt install -y openjdk-8-jre-headless screen Copy code</p><br /><br /><p>  Create a new minecraft user under which the Minecraft server application will run:</p><br /><br /><p> adduser minecraft Copy code</p><br /><br /><p> When prompted, enter your new password, confirm your password, and provide the user details.</p><br /><br /><p>  Log in to minecraft's user account</p><br /><br /><p> su minecraft Copy code</p><br /><br /><p>  Change into the user's directory home:</p><br /><br /><p> Copy code from cd</p><br /><br /><p>  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:</p><br /><br /><p> wget https://launcher.mojang.com/v1/objects/3dc3d84a581f14691199cf6831b71ed1296a9fdf/server.jar Copy code</p><br /><br /><p>  Run the Minecraft server application with the following command:</p><br /><br /><p> 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 the best performance, it is recommended to keep the minimum value at 1024M.</p><br /><br /><p>  During the first run of the application, a file eula.txt is created. Open the file with a text editor such as nano and change the value to true from false</p><br /><br /><p> nano eula.txt Copy code</p><br /><br /><p> #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</p><br /><br /><p> Save the file by pressing CTRL+O. Then exit nano by pressing CTRL+X.</p><br /><br /><p>  Take control of the current Shell to avoid any issues with the screen command</p><br /><br /><p> script /dev/null</p><br /><br /><p>  Create a new screen for the Minecraft application to be run in:</p><br /><br /><p> screen -S minecraft Copy code</p><br /><br /><p>  Re-run the Minecraft server maker application:</p><br /><br /><p> java -Xms1024M -Xmx2048M -jar server.jar nogui Copy code</p><br /><br /><p> The following output informs you that the Minecraft server application is running:</p><br /><br /><p> ... [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</p><br /><br /><p>  After the application has started, move the background screen by pressing CTRL+a followed with d. The session will be moved to the background. To restart the session, use the command line screen -r.</p><br /><br /><p>  You can now log out of your Instance and configure your Minecraft Client.</p><br /><br /><p> 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.</p><br /><br /><p>  How can I connect to my own Minecraft server maker?</p><br /><br /><p> Connect your server to the Minecraft client once it is up and running.</p><br /><br /><p> Install and launch the Minecraft client from your local computer.</p><br /><br /><p>  After logging in to your Minecraft account click the Multiplayer button.</p><br /><br /><p>  Click Add Server and type a name for the server and the public IP Address of your instance.</p><br /><br /><p>  Now your server is listed in the servers directory. To connect to your server, click the server and then Join Server.</p>

Revision as of 17:02, 21 August 2022

In 2011 one of the most popular video games was released: Minecraft.



Developed by the Swedish company Mojang, it has reached over 176 million sales. Minecraft now has more than 112,000,000 active monthly players.



Minecraft Instances allow you to modify the gameplay according to your preference.



Minecraft allows players to create 3-dimensional worlds using 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 pieces can then be gathered and assembled to make new items. Java Edition is currently available. This Java Edition lets players customize the game to their likings, creating new gameplay mechanics and textures.



There is no goal, so there is no way to play Minecraft. Fake Root Any goal can be achieved by players.



However, some pre-defined game modes are available:



Creative Mode allows players create whatever they want with the limited resources they have. Survival Mode: Players must explore the world to find natural resources such wood and stones. To survive, players must build a house and protect themselves from enemies. Fake Root 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 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 the Scaleway console - You have successfully configured your SSH key - You have an instance running Ubuntu Bionic Beaver (18.04), or later - You have sudo access or privileges to the root user - You have a copy of the Minecraft game 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.



Use SSH to connect to your instance



Update the apt packet cache and upgrade the software already installed on the Instance:



apt update && apt upgrade -y Copy code



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 your new password, confirm your password, and provide the user details.



Log in to minecraft's user account



su minecraft Copy code



Change into the user's directory home:



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 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 with a text editor such as nano and change the value to true from false



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



Save the file by pressing CTRL+O. Then 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 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 started, move the background screen by pressing CTRL+a followed with d. The session will be moved to the background. 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. 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?



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 in to 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.



Now your server is listed in the servers directory. To connect to your server, click the server and then Join Server.