morelore:server-pack
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| morelore:server-pack [2023/05/28 15:21] – Update server pack problems AnarchyOf5 | morelore:server-pack [2025/11/09 15:52] (current) – AnarchyOf5 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== How to install MoreLore on your own Server ====== | ====== How to install MoreLore on your own Server ====== | ||
| - | **Update: 28 May 2023 - I am working through Curseforge' | + | ** THIS TUTORIAL IS FOR LINUX ONLY ** |
| - | Eventually I plan to release a proper server pack, but until then use these steps to get up and running. | + | ===== Downloading |
| - | ===== Fabric Server Installer ===== | + | Download the correct version of Neoforge for the version of the pack you want to run. Neoforge version is listed in the [[morelore: |
| - | | + | < |
| - | | + | |
| - | - Fortunately, | + | |
| - | - Copy over the following folders from the client instance, into your newly created server folder: | + | |
| - | * mods | + | |
| - | * config | + | |
| - | * kubejs | + | |
| - | ===== Start and Stop Script ===== | + | You will need to SCP/ |
| - | To automate the process of starting and stopping your server, you can use the following bash code as a reference. If you are hosting this on a dedicated Linux server, I recommend using either '' | + | <code>java -jar neoforge-21.1.209-installer.jar</ |
| - | #!/bin/sh | + | This will create |
| - | # More Lore Enhanced Vanilla Server Startup Script | + | |
| - | + | ||
| - | # Edit the below values to change JVM Arguments or Allocated RAM for the server: | + | |
| - | ALLOCATED_RAM=" | + | |
| - | JVM_ARGUMENTS=" | + | |
| - | FILE="./ | + | |
| - | + | ||
| - | # Start server. | + | |
| - | echo " | + | |
| - | java -jar -Xms${ALLOCATED_RAM} -Xmx${ALLOCATED_RAM} ${JVM_ARGUMENTS} ${FILE} nogui | + | |
| - | echo " | + | |
| - | You can save this code into a file named whatever you want with a '' | + | ===== Uploading Pack ===== |
| - | chmod +x YourFile.sh | + | The client pack can be safely uploaded, using the same method |
| - | + | ||
| - | After that you are good to go! Keep in mind that if you run this is an active shell, | + | |
| - | | + | |
| + | * Freecam | ||
| - | This will create a new session called minecraft | + | 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 |
| - | | + | This will create your world and start your server. |
| - | As it boots up, you can " | + | ===== Persisting Server in Background ===== |
| - | To return | + | 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, |
| - | screen | + | < |
| + | |||
| + | 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. | ||
| + | |||
| + | < | ||
| + | # | ||
| + | # 5 Minute count down and restart | ||
| + | tmux send-keys -t morelore: | ||
| + | sleep 1m | ||
| + | tmux send-keys -t morelore: | ||
| + | sleep 1m | ||
| + | tmux send-keys -t morelore: | ||
| + | sleep 1m | ||
| + | tmux send-keys -t morelore: | ||
| + | sleep 1m | ||
| + | tmux send-keys -t morelore: | ||
| + | tmux send-keys -t morelore: | ||
| + | tmux send-keys -t morelore: | ||
| + | sleep 1m | ||
| + | tmux send-keys -t morelore: | ||
| + | </ | ||
| + | |||
| + | 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. | If everything goes smooth, you should now have a working MoreLore server to play on with your friends! Congratulations. | ||
morelore/server-pack.1685287281.txt.gz · Last modified: by AnarchyOf5