User Tools

Site Tools


morelore:server-pack

This is an old revision of the document!


How to install MoreLore on your own Server

THIS TUTORIAL IS FOR LINUX ONLY

Downloading and Installing NeoForge

Download the correct version of Neoforge for the version of the pack you want to run. Neoforge version is listed in the changelog. The Neoforge installer can be downloaded from here. Make sure you select the correct version of Minecraft and Neoforge in the drop down menu at the top of the page. You will download a JAR file that is named something like:

neoforge-21.1.209-installer.jar

You will need to SCP/SFTP/FTP this up to your server (outside the scope of this article). One you have it on your server run:

java -jar neoforge-21.1.209-installer.jar

This will create the server.jar and the run.sh files you will need to start your server.

Uploading Pack

The client pack can be safely uploaded, using the same method you used to get the installer jar on your server. Make sure to remove the following mods:

- Entity Texture Features - Freecam

These mods are client side only and will cause an error if you try to run the server. Once removed, you can run the server by entering the following command: ./run.sh

This will create your world and start your server.

Persisting Server in Background

This will require you to be logged in to stay running. Obviously, we don't want that. So, we can use either TMUX or Screen to create a special terminal session that will persists, even after you logout of your ssh session. For example, you can create a TMUX session using the following:

tmux new-session -t morelore

This will pop you into a TMUX session named morelore. From here, start your server using the command above and the hit CTRL + ALT then B to detach from the session. You can now safely log out and your server will stay running. We recommend restarting your server at least once a day. You can automate this using a cronjob, which you can set as you need. here's a basic restart script to get you started. It runs a 5 minute countdown timer and messages players in-game giving them a head's up a restart is about to happen.

#!/usr/bin/bash
# 5 Minute count down and restart
tmux send-keys -t morelore:0.0 'tellraw @a {"text": "Restarting in 5 minutes", "color":"red"}' ENTER
sleep 1m
tmux send-keys -t morelore:0.0 'tellraw @a {"text": "Restarting in 4 minutes", "color":"red"}' ENTER
sleep 1m
tmux send-keys -t morelore:0.0 'tellraw @a {"text": "Restarting in 3 minutes", "color":"red"}' ENTER
sleep 1m
tmux send-keys -t morelore:0.0 'tellraw @a {"text": "Restarting in 2 minutes", "color":"red"}' ENTER
sleep 1m
tmux send-keys -t morelore:0.0 'title @a subtitle {"text":"Get ready!","color":"red","italic":true}' ENTER
tmux send-keys -t morelore:0.0 'title @a title {"text":"Server Restart","bold":true}' ENTER
tmux send-keys -t morelore:0.0 'tellraw @a {"text": "Restarting in 1 minute!", "color":"red"}' ENTER
sleep 1m
tmux send-keys -t morelore:0.0 'stop' ENTER

Keep in mind, the cronjob should be set for the non-admin user that is running your server! TMUX sessions are unique to the user that starts them.

If everything goes smooth, you should now have a working MoreLore server to play on with your friends! Congratulations.

morelore/server-pack.1762703525.txt.gz · Last modified: by AnarchyOf5