mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-03 15:39:21 +00:00
Added support for datapack enable/disable properties for feature flags (#1798)
This commit is contained in:
1 parent
ad912fe7bf
commit
17cf058aa4
2 files changed
+9
No files matched your search
@@ -1034,6 +1034,13 @@ If ops configuration already exists, `OPS_FILE` will not be retrieved and any us
|
|||||||
|
|
||||||
> Similar to whitelists, you can provide both `OPS_FILE` and `OPS`, and Minecraft 1.7.5 or earlier will use `ops.txt` rather than `ops.json`.
|
> Similar to whitelists, you can provide both `OPS_FILE` and `OPS`, and Minecraft 1.7.5 or earlier will use `ops.txt` rather than `ops.json`.
|
||||||
|
|
||||||
|
### Enable/disable initial selection of datapacks
|
||||||
|
|
||||||
|
New to [22W42A](https://www.minecraft.net/en-us/article/minecraft-snapshot-22w42a), datapacks with feature flags can be controlled before initial world creation by setting these to a comma separated list of packs:
|
||||||
|
|
||||||
|
- `INITIAL_ENABLED_PACKS`
|
||||||
|
- `INITIAL_DISABLED_PACKS`
|
||||||
|
|
||||||
### Server icon
|
### Server icon
|
||||||
|
|
||||||
A server icon can be configured using the `ICON` variable. The image will be automatically
|
A server icon can be configured using the `ICON` variable. The image will be automatically
|
||||||
|
|||||||
@@ -108,6 +108,8 @@ function customizeServerProps {
|
|||||||
setServerProp "simulation-distance" SIMULATION_DISTANCE
|
setServerProp "simulation-distance" SIMULATION_DISTANCE
|
||||||
setServerProp "previews-chat" PREVIEWS_CHAT
|
setServerProp "previews-chat" PREVIEWS_CHAT
|
||||||
setServerProp "enforce-secure-profile" ENFORCE_SECURE_PROFILE
|
setServerProp "enforce-secure-profile" ENFORCE_SECURE_PROFILE
|
||||||
|
setServerProp "initial-enabled-packs" INITIAL_ENABLED_PACKS
|
||||||
|
setServerProp "initial-disabled-packs" INITIAL_DISABLED_PACKS
|
||||||
if [[ $MOTD ]]; then
|
if [[ $MOTD ]]; then
|
||||||
setServerPropValue "motd" "$(echo "$MOTD" | mc-image-helper asciify)"
|
setServerPropValue "motd" "$(echo "$MOTD" | mc-image-helper asciify)"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user