From 3710afbd4530f3d0c5fa7cde1051b01912cebe5e Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Tue, 18 Jun 2024 17:07:07 -0700 Subject: [PATCH] WIP Set up Enigmatica 10 --- homelab/fighter/config/minecraft/README.md | 16 ++++++++++++++++ .../fighter/config/minecraft/docker-compose.yml | 8 ++++---- homelab/fighter/config/minecraft/e10.env | 3 +++ homelab/fighter/config/minecraft/prominence.env | 3 --- 4 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 homelab/fighter/config/minecraft/e10.env delete mode 100644 homelab/fighter/config/minecraft/prominence.env diff --git a/homelab/fighter/config/minecraft/README.md b/homelab/fighter/config/minecraft/README.md index 903072d4..06bf3c86 100644 --- a/homelab/fighter/config/minecraft/README.md +++ b/homelab/fighter/config/minecraft/README.md @@ -1,3 +1,19 @@ +# Setting up a new modded server +We'll use Enigmatica10 for example here. +1. Download the server pack. The specific way to do this varies by pack. + 1. For E10, this means navigating to the [curseforge page](https://www.curseforge.com/minecraft/modpacks/enigmatica10). + 2. Then scrolling down the right side to find the section for "Server Packs". + 3. Select the most recent (`Enigmatica 10 Server 1.0.1`) pack. + 4. Click the Download button. I assume we're downloading the file to `~/Downloads/` +2. Copy the zip over to Fighter's configured storage location for Minecraft and extract it. + 1. Find Fighter's configured storage location for Minecraft. `DIR=$(ssh admin@192.168.1.23 cat /home/admin/homelab/fighter/config/minecraft/.env | head -n 1 | cut -d'=' -f2) && echo $DIR` + 2. Copy the zip over. `scp ~/Downloads/Enigmatica10Server-1.0.1.zip admin@192.168.1.23:$DIR` + 3. Extract and then delete the zip. `ssh admin@192.168.1.23 "cd $DIR && mkdir e10 && unzip Enigmatica10Server-1.0.1.zip -d e10 && rm Enigmatica10Server-1.0.1.zip" +3. + + +# Post-Setup + ## Connecting to a server's CLI To connect to a server's RCON Minecraft console, run `docker exec -it minecraft_e6 rcon-cli --password thanksitzg` diff --git a/homelab/fighter/config/minecraft/docker-compose.yml b/homelab/fighter/config/minecraft/docker-compose.yml index 86311bff..66ddba4a 100644 --- a/homelab/fighter/config/minecraft/docker-compose.yml +++ b/homelab/fighter/config/minecraft/docker-compose.yml @@ -24,18 +24,18 @@ services: labels: - traefik.enable=false - prominence: + e10: image: itzg/minecraft-server:latest - container_name: minecraft_prominence + container_name: minecraft_e10 env_file: - path: ./minecraft.env required: true - path: ./minecraft_secrets.env required: false - - path: ./prominence.env + - path: ./e10.env required: true volumes: - - $DOCKER_DATA/prominence:/data:rw + - $DOCKER_DATA/e10:/data:rw networks: - minecraft restart: "no" diff --git a/homelab/fighter/config/minecraft/e10.env b/homelab/fighter/config/minecraft/e10.env new file mode 100644 index 00000000..ec94f97f --- /dev/null +++ b/homelab/fighter/config/minecraft/e10.env @@ -0,0 +1,3 @@ +MOD_PLATFORM=AUTO_CURSEFORGE +TYPE=AUTO_CURSEFORGE +CF_PAGE_URL=https://www.curseforge.com/minecraft/modpacks/enigmatica10 \ No newline at end of file diff --git a/homelab/fighter/config/minecraft/prominence.env b/homelab/fighter/config/minecraft/prominence.env deleted file mode 100644 index 161d4a36..00000000 --- a/homelab/fighter/config/minecraft/prominence.env +++ /dev/null @@ -1,3 +0,0 @@ -MOD_PLATFORM=AUTO_CURSEFORGE -TYPE=AUTO_CURSEFORGE -CF_SLUG=prominence-2-fabric \ No newline at end of file