Skip to content

Latest commit

 

History

History
100 lines (73 loc) · 4.65 KB

File metadata and controls

100 lines (73 loc) · 4.65 KB

MineCloud: Minecraft Configuration Package

Installation

Please follow the "How To Setup?" section in the main README.md.

Custom deployment

These are some changes we can do to customize the server deployed.

Notes:
Although it's possible to install custom mods by replacing server.zip and editing ./start_server.sh before deployment, it's generally more recommend to deploy with a pre-set Configuration Package first and edit the game server later. For more details about how to make changes to the game server after deploying, please check out the "Managing the Server after Deployment" section below.

Vaninlla Minecraft

Changing the Minecraft version

The Minecraft server version can be switched by replacing the MINECRAFT_SERVER_DOWNLOAD_URL in minecloud_configs\advanced_configs\minecraft-server-download-url.ts before deploying. There are some websites that collect the download links of older versions of Minecraft (ex: MCVersion.net)

Using your own Minecraft server files:

  • Replace minecloud_configs/server/server.zip with your own Minecraft server folder (when packing the server executable, make sure files are at the top level of the server.zip file)
  • After replacing server.zip, set DEPLOY_LOCAL_SERVER_EXECUTABLE = true in minecloud_configs/MineCloud-Configs.ts
  • If needed, edit the server start-up commands in minecloud_configs/server/start_server.sh
  • This is handy when we want to spin up a new server using an old server backup.

Fabric Minecraft

How to deploy a fabric minecraft server:

  • Launch a placeholder server just like normal.
  • Go to this site to download Farbic Minecraft Server Launcher.
  • Select your intended Minecraft version, and copy the curl command generated below.
curl -OJ https://meta.fabricmc.net/v2/versions/loader/<Minecraft Version>/<Fabric Loader Version>/<Installer Version>/server/jar
[ec2-user@ip-172-31-34-37 ~]$ ls
fabric-server-mc.1.19.4-loader.0.14.21-launcher.0.11.2.jar
  • Rename the file for convenience using the mv command.
mv fabric-server-mc.1.19.4-loader.0.14.21-launcher.0.11.2.jar fabric-server-loader.jar
  • Move the file to where the server's folder is located.
sudo mv farbic-server-loader.jar ../../opt/minecloud/server
  • Stop the current Minecraft server by running:
sudo systemctl stop minecloud.service
  • Execute the jar file using the following command.
sudo java -jar farbic-server-loader.jar nogui
  • After the server is ready and working, type stop to stop the server.
  • Next we need to modify the start_server.sh file
sudo vi start_server.sh
  • Modify the server start command:
/usr/bin/env sudo java -Xmx3G -Xms1024M -jar fabric-server-loader.jar nogui

You can tweak the maximum and minimum RAM usage arguement accordingly.

  • Verify the server is running by executing ./start_server.sh.

Managing the Server after Deployment

Please refer to the "Managing the Server after Deployment" section in the main README.md for server management basic.

Changing the Java version

Some mods might work better with specific Java versions.
Minecraft Configuration package install Java using yum.

Here is some useful info for changing the installed Java version:

Server Files location

The server executable and world saves are located at /opt/minecloud/server.

Releases

Please check out the Configuration Packages Releases Page