-
I have read [this page of the documentation] multiple times and tried a number of things, and I'm not sure what I'm missing, but I can't seem to get my This is my
And my ---
services:
mc-server:
image: itzg/minecraft-server
container_name: ${MC_SERV_CONTAINER_NAME:-mc-server_auto-forge}
restart: unless-stopped
## Comment if using mc-router container
ports:
- ${MC_SERV_PORT:-25565}:25565
tty: ${MC_SERV_TTY:-true}
stdin_open: true
environment:
TYPE: ${MC_SERV_TYPE:-AUTO_CURSEFORGE}
MODE: ${MC_SERV_GAME_MODE:-survival}
MOTD: ${MC_SERV_MOTD:-Welcome to the Neoforge server!}
EULA: "TRUE"
DIFFICULTY: ${MC_SERV_DIFFICULTY:-normal}
# https://github.com/itzg/docker-minecraft-server#memory-limit
MEMORY: ${MC_SERV_MEMORY:-4G}
## Uncomment this to import a saved game from the defined WORLDS dir
# WORLD: /worlds/${MC_SERV_WORLD}
MAX_PLAYERS: ${MC_SERV_MAX_PLAYERS:-20}
MAX_WORLD_SIZE: ${MC_SERV_MAX_WORLD_SIZE:-10000}
ALLOW_NETHER: ${MC_SERV_ALLOW_NETHER:-true}
ENABLE_COMMAND_BLOCK: ${MC_SERV_COMMAND_BLOCK:-true}
MAX_BUILD_HEIGHT: ${MC_SERV_MAX_BUILD_HEIGHT:-256}
## https://github.com/itzg/docker-minecraft-server/blob/master/README.md#max-tick-time
MAX_TICK_TIME: ${MC_SERV_MAX_TICK_TIME:-60000}
SNOOPER: false
VIEW_DISTANCE: ${MC_SERV_VIEW_DISTANCE:-10}
# LEVEL_SEED: ${MC_SERV_SEED:-""}
PVP: ${MC_SERV_PVP:-true}
## https://github.com/itzg/docker-minecraft-server/blob/master/README.md#online-mode
ONLINE_MODE: ${MC_SERV_ONLINE_MODE:-true}
WHITELIST_FILE: /extras/whitelist.json
WHITELIST_ENABLED: ${MC_SERV_WHITELIST_ENABLE:-false}
OVERRIDE_WHITELIST: true
MODS_FILE: /extras/mods.txt
## Curse Forge API key is empty by default.
# Get a key at https://console.curseforge.com/#/api-keys
CF_API_KEY: ${MC_SERVER_CURSE_FORGE_API_KEY}
CURSEFORGE_FILES: "@/extras/mods.txt"
# CURSEFORGE_FILES: |
# cloth-config
# just-enough-resources-jer
# just-enough-professions-jep
# create-steam-n-rails
# justenoughbreeding
# farmers-structures
# waystones
# comforts
# towns-and-towers
# structory
# explorers-compass
# moogs-voyager-structures
# explorify
# goblin-traders
# formations-nether
# simply-swords
# formations-overworld
# villages-and-pillages
# immersive-aircraft
# explorations
# jei
# modernfix
# mobtimizations
# fastboot
# load-my-chunks
# blinkload
# safe-harvest
# clumps
# connectivity
# smooth-chunk-save
volumes:
- ${MC_SERV_DATA_DIR:-./data/minecraft-server}:/data
# - ${MC_SERVER_WORLD_IMPORT_DIR:-./worlds}:/worlds:ro
- ${MC_SERVER_MODS_FILE:-./mods/default.txt}:/extras/mods.txt
- ${MC_SERVER_WHITELIST_FILE:-./whitelist.json}:/extras/whitelist.json
healthcheck:
test: mc-health
start_period: 1m
interval: 5s
retries: 20
When I try to run this stack, I get the following errors: mc-server_auto-forge | [init] Running as uid=1000 gid=1000 with /data as 'drwxr-xr-x 2 1000 1000 4096 Jan 24 04:54 /data'
mc-server_auto-forge | A modpack page URL or slug identifier is required
mc-server_auto-forge | [init] [ERROR] Failed to auto-install CurseForge modpack I used this container a while back and I remember being able to install multiple mod files. Any help pointing out what I'm doing wrong will be appreciated :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I did a search with different keywords and may have found my answer here, if I can get things to work with that answer, I will close this thread |
Beta Was this translation helpful? Give feedback.
You need to use CURSEFORGE_FILES not MODS_FILE when referencing CurseForge files