mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-10 14:24:28 +00:00
Correct AUTO_CURSEFORGE to also include library mods and ability to exclude specific mods (#1897)
This commit is contained in:
parent
8d3ec29a44
commit
df0c57d111
4 changed files with 12 additions and 2 deletions
|
@ -46,7 +46,7 @@ RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
|
|||
--var version=0.1.1 --var app=maven-metadata-release --file {{.app}} \
|
||||
--from https://github.com/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
|
||||
|
||||
ARG MC_HELPER_VERSION=1.24.3
|
||||
ARG MC_HELPER_VERSION=1.24.5
|
||||
ARG MC_HELPER_BASE_URL=https://github.com/itzg/mc-image-helper/releases/download/${MC_HELPER_VERSION}
|
||||
RUN curl -fsSL ${MC_HELPER_BASE_URL}/mc-image-helper-${MC_HELPER_VERSION}.tgz \
|
||||
| tar -C /usr/share -zxf - \
|
||||
|
|
|
@ -650,6 +650,8 @@ The following two examples both refer to version 1.0.7 of ATM8:
|
|||
-e TYPE=AUTO_CURSEFORGE -e CF_SLUG=all-the-mods-8 -e CF_FILENAME_MATCHER=1.0.7
|
||||
```
|
||||
|
||||
If there are mods that need to be excluded, such as ones that did not properly declare as a client mod via the file's game versions, then they can be excluded by passing a comma or space delimited list of project IDs via `CF_EXLUDE_MODS`
|
||||
|
||||
### Old approach
|
||||
|
||||
Enable this server mode by adding `-e TYPE=CURSEFORGE` to your command-line,
|
||||
|
|
|
@ -197,7 +197,7 @@ case "${TYPE^^}" in
|
|||
;;
|
||||
|
||||
AUTO_CURSEFORGE)
|
||||
exec "${SCRIPTS:-/}start-autoDeployCF" "$@"
|
||||
exec "${SCRIPTS:-/}start-deployAutoCF" "$@"
|
||||
;;
|
||||
|
||||
VANILLA)
|
||||
|
|
|
@ -29,6 +29,14 @@ if [[ $CF_FILENAME_MATCHER ]]; then
|
|||
args+=(--filename-matcher="$CF_FILENAME_MATCHER")
|
||||
fi
|
||||
|
||||
defaultModExcludes=(
|
||||
363363 # extreme-sound-muffler
|
||||
448233 # entityculling
|
||||
574856 # rubidium
|
||||
)
|
||||
: "${CF_EXLUDE_MODS:=${defaultModExcludes[@]}}"
|
||||
args+=(--exclude-mods="$CF_EXLUDE_MODS")
|
||||
|
||||
if ! mc-image-helper install-curseforge "${args[@]}"; then
|
||||
log "ERROR failed to auto-install CurseForge modpack"
|
||||
exit 1
|
Loading…
Reference in a new issue