Skip to content

Commit d807591

Browse files
authored
Add support for Modrinth projects file (#3506)
1 parent 1cf2783 commit d807591

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

Dockerfile

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

51-
ARG MC_HELPER_VERSION=1.43.1
51+
ARG MC_HELPER_VERSION=1.45.0
5252
ARG MC_HELPER_BASE_URL=${GITHUB_BASEURL}/itzg/mc-image-helper/releases/download/${MC_HELPER_VERSION}
5353
# used for cache busting local copy of mc-image-helper
5454
ARG MC_HELPER_REV=1

docs/mods-and-plugins/modrinth.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
Also, a specific version (or release type) can be declared adding a colon and then the version id, version number/name, or release type after the project slug. The version ID or number can be found in the 'Metadata' section. Valid release types are `release`, `beta`, `alpha`.
1313

1414
To select a datapack from a Modrinth project, prefix the entry with "datapack:". When running a vanilla server, this is optional since only datapacks will be available for vanilla servers to select.
15+
16+
You can also reference a file containing project entries by prefixing the **container path** path with `@`.
1517

1618
| Description | Example projects entry |
1719
|---------------------------------|-------------------------------------------------------|
@@ -21,6 +23,24 @@
2123
| Latest version using project ID | `P7dR8mSH` |
2224
| Latest version of datapack | `datapack:terralith` |
2325
| Specific version of datapack | `datapack:terralith:2.5.5` |
26+
| Projects Listing File | `@/path/to/modrinth-mods.txt` |
27+
28+
!!! info "More about listing files"
29+
30+
Each line in the listing file is processed as one of the references above; however, blank lines and comments that start with `#` are ignored.
31+
32+
Make sure to place the listing file in a mounted directory/volume or declare an appropriate mount for it.
33+
34+
For example, `MODRINTH_PROJECTS` can be set to "@/extras/modrinth-mods.txt", assuming "/extras" has been added to `volumes` section, where the container file `/extras/modrinth-mods.txt` contains
35+
36+
```text
37+
# This comment is ignored
38+
fabric-api
39+
40+
# This and previous blank line are ignore
41+
cloth-config
42+
datapack:terralith
43+
```
2444

2545
## Extra options
2646

0 commit comments

Comments
 (0)