Skip to content

Commit 09603f4

Browse files
authored
modrinth: add option to force include client mods (#2777)
1 parent 32aa681 commit 09603f4

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
4949
--var version=${MC_SERVER_RUNNER_VERSION} --var app=mc-server-runner --file {{.app}} \
5050
--from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
5151

52-
ARG MC_HELPER_VERSION=1.38.8
52+
ARG MC_HELPER_VERSION=1.38.9
5353
ARG MC_HELPER_BASE_URL=${GITHUB_BASEURL}/itzg/mc-image-helper/releases/download/${MC_HELPER_VERSION}
5454
# used for cache busting local copy of mc-image-helper
5555
ARG MC_HELPER_REV=1

docs/types-and-platforms/mod-platforms/modrinth-modpacks.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@ To exclude client mods that are incorrectly declared by the modpack as server-co
6161
euphoriapatcher
6262
```
6363

64+
## Force-include files
65+
66+
To force include client mods, set `MODRINTH_FORCE_INCLUDE_FILES` to a comma or newline delimited list of partial file names. You may need to set `MODRINTH_FORCE_SYNCHRONIZE` to "true" while iterating on a compatible set of mods to use.
67+
68+
!!! example
69+
70+
In a Compose file:
71+
```yaml
72+
MODRINTH_FORCE_INCLUDE: |
73+
yet-another-config-lib
74+
```
75+
6476
## Excluding Overrides Files
6577

6678
Modrinth mrpack/zip files may include an `overrides` subdirectory that contains config files, world data, and extra mod files. All of those files will be extracted into the `/data` path of the container. If any of those files, such as incompatible mods, need to be excluded from extraction, then the `MODRINTH_OVERRIDES_EXCLUSIONS` variable can be set with a comma or newline delimited list of ant-style paths ([see below](#ant-style-paths)) to exclude, relative to the overrides (or `/data`) directory.

scripts/start-deployModrinth

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ resultsFile=/data/.install-modrinth.env
1111
: "${MODRINTH_VERSION:=${MODRINTH_VERSION_ID:-}}"
1212
: "${MODRINTH_IGNORE_MISSING_FILES:=}"
1313
: "${MODRINTH_EXCLUDE_FILES:=}"
14+
: "${MODRINTH_FORCE_INCLUDE_FILES:=}"
1415
: "${MODRINTH_OVERRIDES_EXCLUSIONS:=}"
1516

1617
if [[ ! $MODRINTH_MODPACK ]]; then
@@ -57,6 +58,7 @@ setArg --loader MODRINTH_LOADER
5758
setArg --version MODRINTH_VERSION
5859
setArg --default-version-type MODRINTH_DEFAULT_VERSION_TYPE
5960
setArg --exclude-files MODRINTH_EXCLUDE_FILES
61+
setArg --force-include-files MODRINTH_FORCE_INCLUDE_FILES
6062
setArg --overrides-exclusions MODRINTH_OVERRIDES_EXCLUSIONS
6163

6264
if ! mc-image-helper install-modrinth-modpack "${args[@]}"; then

0 commit comments

Comments
 (0)