mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-10-18 17:18:11 +00:00
Add support for Modrinth projects file (#3506)
This commit is contained in:
1 parent
1cf2783daf
commit
d8075916e3
2 files changed
+21
-1
No files matched your search
+1
-1
@@ -48,7 +48,7 @@ RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
|
|||||||
--var version=${MC_SERVER_RUNNER_VERSION} --var app=mc-server-runner --file {{.app}} \
|
--var version=${MC_SERVER_RUNNER_VERSION} --var app=mc-server-runner --file {{.app}} \
|
||||||
--from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
|
--from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
|
||||||
|
|
||||||
ARG MC_HELPER_VERSION=1.43.1
|
ARG MC_HELPER_VERSION=1.45.0
|
||||||
ARG MC_HELPER_BASE_URL=${GITHUB_BASEURL}/itzg/mc-image-helper/releases/download/${MC_HELPER_VERSION}
|
ARG MC_HELPER_BASE_URL=${GITHUB_BASEURL}/itzg/mc-image-helper/releases/download/${MC_HELPER_VERSION}
|
||||||
# used for cache busting local copy of mc-image-helper
|
# used for cache busting local copy of mc-image-helper
|
||||||
ARG MC_HELPER_REV=1
|
ARG MC_HELPER_REV=1
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
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`.
|
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`.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
You can also reference a file containing project entries by prefixing the **container path** path with `@`.
|
||||||
|
|
||||||
| Description | Example projects entry |
|
| Description | Example projects entry |
|
||||||
|---------------------------------|-------------------------------------------------------|
|
|---------------------------------|-------------------------------------------------------|
|
||||||
@@ -21,6 +23,24 @@
|
|||||||
| Latest version using project ID | `P7dR8mSH` |
|
| Latest version using project ID | `P7dR8mSH` |
|
||||||
| Latest version of datapack | `datapack:terralith` |
|
| Latest version of datapack | `datapack:terralith` |
|
||||||
| Specific version of datapack | `datapack:terralith:2.5.5` |
|
| Specific version of datapack | `datapack:terralith:2.5.5` |
|
||||||
|
| Projects Listing File | `@/path/to/modrinth-mods.txt` |
|
||||||
|
|
||||||
|
!!! info "More about listing files"
|
||||||
|
|
||||||
|
Each line in the listing file is processed as one of the references above; however, blank lines and comments that start with `#` are ignored.
|
||||||
|
|
||||||
|
Make sure to place the listing file in a mounted directory/volume or declare an appropriate mount for it.
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
```text
|
||||||
|
# This comment is ignored
|
||||||
|
fabric-api
|
||||||
|
|
||||||
|
# This and previous blank line are ignore
|
||||||
|
cloth-config
|
||||||
|
datapack:terralith
|
||||||
|
```
|
||||||
|
|
||||||
## Extra options
|
## Extra options
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user