Server Setup, Updating, & LAN - mahjerion/Craft-to-Exile-2 GitHub Wiki
Akliz
We recommend using our Akliz Affiliate Link for 20% off on your first month, and you'll support Mahjerion at the same time!
Server Configuration
- We recommend at least 4-8 GB of RAM allocated.
- The server should auto restart every 6 hours, if left on. Otherwise, performance degradation may occur.
- If you're experiencing lag, use Crash Utilities (press F12) and Spark (/spark) in game to find the source. Here is a guide on finding the cause of lag spikes.
Hosting a Server On Your PC
- First, make sure you have Java 17 64 bit installed.
- Download the server files.
- Extract the contents of the server files into a folder.
- If you're on Windows, run the run.bat file. If you're on Linux or Mac, you can run the run.sh file instead.
- You need Java 17 64 bit JDK installed. If you have multiple Java installations either uninstall all of the ones that aren't Java 17 OR: edit the run.bat or run.sh file and on the line beginning with "java", you will replace the word "java" with the directory of the Java version you want. For example, "C:\Program Files\Java\jdk-17\bin\java.exe".
- You'll need to port forward which guides for can be found in the Modded Minecraft Discord by typing ??portforwarding in the #bots channel.
- Use this website to check if you've done it correctly.
Hosting a Server Through Akliz/Other Server Hosting
- If you're hosting with Akliz, there's actually a short video that shows you how to get started. It should be quite similar on other hosting sites that have automatic modpack setup features.
- If you're looking to setup manually, or would like to configure some of your settings on the server, you will need FileZilla or WinSCP to FTP into the server and manage files.
- Once you have FileZilla or WinSCP, find the FTP login information in your server panel.
- Connect to your server through your FTP client. Instructions to do this should be where you found your server's FTP information. The FTP client will allow you to modify, add, or remove files from your server.
Hosting a Server Through Essential
- You can easily host a server with the Essential mod.
- Simply download and install the most recent release of the 1.20.1 version of the mod and have each of your friends do the same. Then, in-game, click on the 'Social' button and add each other as friends.
- Once you've added all of your friends you can click 'Host World' and host any world that you have created and invite your friends.
Updating Your Server
- If you're updating through Akliz, you can usually just update through their automated process without worries.
- Before you update your server, it's recommended that you backup your world, server.properties, and any custom configurations first.
- Delete the config, defaultconfig, mods, and scripts folders in your server. In the case that Forge is also updated, you will also need to delete the libraries folder, and the run .bat and .sh. Do NOT delete your world save and server.properties!
- Copy the same folders and files you deleted from the step above from the new server files into your server. We delete and copy because sometimes I remove files, and simply copying the new files over will not remove files that were meant to be deleted.
- Alternatively, if you're hosting on your own PC, you can just follow the steps to set up a new server, then move over your world save and server.properties.
Resetting Player Data (Quests & Level)
- Get the player UUID from https://mcuuid.net/.
- Navigate to /playerdata/ in your world folder.
- Locate and delete the .cosarmor, .dat. and .dat_old that contains the player's UUID.
- Navigate to /ftbquests/ in your world folder.
- Locate and delete the .snbt that contains the player's UUID.
Resetting Dimensions
- Shut off server/exit world.
- Delete each dimension folder in the world folder one at a time.
- If you delete The End, you will need to edit the level.dat with an NBT editor and remove the entry under DimensionData that contains the DragonFight.