Skip to content

Commit 2cd7472

Browse files
authored
Documented the loader prefix option for MODRINTH_PROJECTS (#3720)
1 parent 66f26c0 commit 2cd7472

File tree

5 files changed

+134
-117
lines changed

5 files changed

+134
-117
lines changed

docs/Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM python:3.11
2-
3-
RUN pip install --upgrade pip
4-
5-
WORKDIR /mkdocs
6-
7-
RUN --mount=target=/build/requirements.txt,source=docs/requirements.txt \
8-
pip install -r /build/requirements.txt
9-
1+
FROM python:3.11
2+
3+
RUN pip install --upgrade pip
4+
5+
WORKDIR /mkdocs
6+
7+
RUN --mount=target=/build/requirements.txt,source=docs/requirements.txt \
8+
pip install -r /build/requirements.txt
9+
1010
ENTRYPOINT ["mkdocs"]
-2.55 KB
Loading

docs/misc/autopause-autostop/autopause.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Auto-Pause
2-
3-
!!! important
4-
5-
As of [1.21.2](https://minecraft.wiki/w/Java_Edition_1.21.2) it is not recommend to use this feature since Minecraft server natively auto-pauses when the server is empty. That is configured via the enivironment variable `PAUSE_WHEN_EMPTY_SECONDS`, which maps to the `pause-when-empty-seconds` server property.
2+
3+
!!! important
4+
5+
As of [1.21.2](https://minecraft.wiki/w/Java_Edition_1.21.2) it is not recommend to use this feature since Minecraft server natively auto-pauses when the server is empty. That is configured via the enivironment variable `PAUSE_WHEN_EMPTY_SECONDS`, which maps to the `pause-when-empty-seconds` server property.
66

77
An auto-pause functionality is provided that monitors whether clients are connected to the server. If a client is not connected for a specified time, the Java process is put into a pause state. When a client attempts to connect while the process is paused, then process will be restored to a running state. The experience for the client does not change. This feature can be enabled by setting the environment variable `ENABLE_AUTOPAUSE` to "true".
88

99
!!! important
1010

11-
**You must greatly increase or disable max-tick-time watchdog functionality.** From the server's point of view, the pausing causes a single tick to take as long as the process is stopped, so the server watchdog might intervene after the process is continued, possibly forcing a container restart. To prevent this, ensure that the `max-tick-time` in the `server.properties` file is set to a very large value or -1 to disable it entirely, which is highly recommended. That can be set with `MAX_TICK_TIME` as described in [the section below](../../configuration/server-properties.md#max-tick-time).
11+
**You must greatly increase or disable max-tick-time watchdog functionality.** From the server's point of view, the pausing causes a single tick to take as long as the process is stopped, so the server watchdog might intervene after the process is continued, possibly forcing a container restart. To prevent this, ensure that the `max-tick-time` in the `server.properties` file is set to a very large value or -1 to disable it entirely, which is highly recommended. That can be set with `MAX_TICK_TIME` as described in [server properties](../../configuration/server-properties.md).
1212

1313
Non-vanilla versions might have their own configuration file, you might have to disable their watchdogs separately. For PaperMC servers, you need to send the JVM flag `-Ddisable.watchdog=true`, this can be done with the docker env variable `-e JVM_DD_OPTS=disable.watchdog:true`
1414

docs/mods-and-plugins/modrinth.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,29 @@
44

55
## Usage
66

7-
To use this feature, set the environment variable `MODRINTH_PROJECTS` to a comma or newline separated list of project slugs (short name) or IDs.
7+
To use this feature, set the environment variable `MODRINTH_PROJECTS` to a comma or newline separated list of projects.
8+
9+
Each project entry can be any of the following combinations where a colon (`:`) is used to separate the different parts:
10+
11+
```
12+
Project
13+
Project : Version
14+
Project : Release Type
15+
Prefix : Project
16+
Prefix : Project : Version
17+
Prefix : Project : Release Type
18+
@ Listing File
19+
```
20+
21+
Where:
22+
23+
- **Project** is the project slug or ID, see below
24+
- **Version** is the version ID or number. When omitted, the latest release version will be selected.
25+
- **Release Type** is `release`, `beta`, or `alpha` indicating the latest version to select.
26+
- **Prefix** is `datapack`, `fabric`, `forge`, or `paper`
27+
- The `datapack` prefix is optional when running a vanilla server
28+
- The `fabric`, `forge`, and `paper` prefixes allow for installing mods/plugins that differ from server's `TYPE`. Using [Sinytra Connector](https://modrinth.com/mod/connector) is an example of this, where Fabric mods can be loaded into a NeoForge server.
29+
- **Listing file** is a container path to a file containing a list of projects
830

931
!!! tip "Project ID"
1032

@@ -23,12 +45,6 @@ To use this feature, set the environment variable `MODRINTH_PROJECTS` to a comma
2345
+-- project slug
2446
```
2547

26-
Also, a specific version (or release type) can be declared by 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`.
27-
28-
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.
29-
30-
You can also reference a file containing project entries by prefixing the **container path** path with `@`.
31-
3248
### Examples
3349
3450
| Description | Example projects entry |
@@ -39,6 +55,7 @@ You can also reference a file containing project entries by prefixing the **cont
3955
| Latest version using project ID | `P7dR8mSH` |
4056
| Latest version of datapack | `datapack:terralith` |
4157
| Specific version of datapack | `datapack:terralith:2.5.5` |
58+
| Mod loader override | `fabric:fabric-api`<br/>`fabric:fabric-api:bQZpGIz0` |
4259
| Projects Listing File | `@/path/to/modrinth-mods.txt` |
4360

4461
### Notes

mkdocs.yml

Lines changed: 96 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,96 @@
1-
---
2-
site_name: Minecraft Server on Docker (Java Edition)
3-
site_url: https://docker-minecraft-server.readthedocs.io/en/latest/
4-
site_description: Documentation for Minecraft Server on Docker
5-
repo_url: https://github.com/itzg/docker-minecraft-server
6-
edit_uri: blob/master/docs/
7-
theme:
8-
name: material
9-
features:
10-
- navigation.tracking
11-
- navigation.tabs
12-
- navigation.tabs.sticky
13-
- navigation.sections
14-
- navigation.expand
15-
- navigation.top
16-
- navigation.indexes
17-
locale: en
18-
palette:
19-
20-
# Palette toggle for automatic mode
21-
- media: "(prefers-color-scheme)"
22-
toggle:
23-
icon: material/brightness-auto
24-
name: Switch to light mode
25-
26-
# Palette toggle for light mode
27-
- media: "(prefers-color-scheme: light)"
28-
scheme: default
29-
toggle:
30-
icon: material/brightness-7
31-
name: Switch to dark mode
32-
33-
# Palette toggle for dark mode
34-
- media: "(prefers-color-scheme: dark)"
35-
scheme: slate
36-
toggle:
37-
icon: material/brightness-4
38-
name: Switch to system preference
39-
40-
highlightjs: true
41-
hljs_languages:
42-
- yaml
43-
- bash
44-
- java
45-
- docker
46-
- shell
47-
- json
48-
49-
extra_css:
50-
- css/extra.css
51-
markdown_extensions:
52-
- admonition
53-
- toc:
54-
permalink: true
55-
- attr_list
56-
- def_list
57-
- footnotes
58-
- tables
59-
- pymdownx.emoji:
60-
emoji_index: !!python/name:material.extensions.emoji.twemoji
61-
emoji_generator: !!python/name:material.extensions.emoji.to_svg
62-
- pymdownx.highlight:
63-
anchor_linenums: true
64-
line_spans: __span
65-
pygments_lang_class: true
66-
- pymdownx.inlinehilite
67-
- pymdownx.details
68-
- pymdownx.snippets
69-
- pymdownx.superfences
70-
- mdx_gh_links:
71-
user: camalot
72-
repo: mkdocs-test
73-
- mkdocs-click
74-
copyright: Copyright &copy; itzg 2024.
75-
plugins:
76-
- search
77-
- autorefs
78-
- mkdocstrings:
79-
handlers:
80-
python:
81-
options:
82-
docstring_section_style: list
83-
members_order: source
84-
show_root_heading: true
85-
show_source: false
86-
show_signature_annotations: true
87-
# https://github.com/ultrabug/mkdocs-static-i18n
88-
- i18n:
89-
languages:
90-
- locale: en
91-
name: English
92-
build: true
93-
default: true
94-
- literate-nav:
95-
nav_file: README.md
96-
implicit_index: true
1+
---
2+
site_name: Minecraft Server on Docker (Java Edition)
3+
site_url: https://docker-minecraft-server.readthedocs.io/en/latest/
4+
site_description: Documentation for Minecraft Server on Docker
5+
repo_url: https://github.com/itzg/docker-minecraft-server
6+
edit_uri: blob/master/docs/
7+
theme:
8+
name: material
9+
features:
10+
- navigation.tracking
11+
- navigation.tabs
12+
- navigation.tabs.sticky
13+
- navigation.sections
14+
- navigation.expand
15+
- navigation.top
16+
- navigation.indexes
17+
locale: en
18+
palette:
19+
20+
# Palette toggle for automatic mode
21+
- media: "(prefers-color-scheme)"
22+
toggle:
23+
icon: material/brightness-auto
24+
name: Switch to light mode
25+
26+
# Palette toggle for light mode
27+
- media: "(prefers-color-scheme: light)"
28+
scheme: default
29+
toggle:
30+
icon: material/brightness-7
31+
name: Switch to dark mode
32+
33+
# Palette toggle for dark mode
34+
- media: "(prefers-color-scheme: dark)"
35+
scheme: slate
36+
toggle:
37+
icon: material/brightness-4
38+
name: Switch to system preference
39+
40+
highlightjs: true
41+
hljs_languages:
42+
- yaml
43+
- bash
44+
- java
45+
- docker
46+
- shell
47+
- json
48+
49+
extra_css:
50+
- css/extra.css
51+
markdown_extensions:
52+
- admonition
53+
- toc:
54+
permalink: true
55+
- attr_list
56+
- def_list
57+
- footnotes
58+
- tables
59+
- pymdownx.emoji:
60+
emoji_index: !!python/name:material.extensions.emoji.twemoji
61+
emoji_generator: !!python/name:material.extensions.emoji.to_svg
62+
- pymdownx.highlight:
63+
anchor_linenums: true
64+
line_spans: __span
65+
pygments_lang_class: true
66+
- pymdownx.inlinehilite
67+
- pymdownx.details
68+
- pymdownx.snippets
69+
- pymdownx.superfences
70+
- mdx_gh_links:
71+
user: camalot
72+
repo: mkdocs-test
73+
- mkdocs-click
74+
copyright: Copyright &copy; itzg 2024.
75+
plugins:
76+
- search
77+
- autorefs
78+
- mkdocstrings:
79+
handlers:
80+
python:
81+
options:
82+
docstring_section_style: list
83+
members_order: source
84+
show_root_heading: true
85+
show_source: false
86+
show_signature_annotations: true
87+
# https://github.com/ultrabug/mkdocs-static-i18n
88+
- i18n:
89+
languages:
90+
- locale: en
91+
name: English
92+
build: true
93+
default: true
94+
- literate-nav:
95+
nav_file: README.md
96+
implicit_index: true

0 commit comments

Comments
 (0)