diff --git a/.schema/gametemplate.schema.json b/.schema/gametemplate.schema.json index efc4354..d5290a1 100644 --- a/.schema/gametemplate.schema.json +++ b/.schema/gametemplate.schema.json @@ -639,6 +639,22 @@ "maxItems": 16, "type": "array" }, + "installMarkers": { + "description": "InstallMarkers lists files, relative to the data mount, in which the\nimage records a finished pack install without checking that the mods\nare still there (e.g. \".ftb-installed\"). Before each start with this\nprovider's pack applied, the operator deletes them when the active\nloader's mods mount is empty, so the image installs the pack again.\nOmit for images that check the installed files themselves.", + "items": { + "maxLength": 128, + "minLength": 1, + "type": "string" + }, + "maxItems": 4, + "type": "array", + "x-kubernetes-validations": [ + { + "message": "installMarkers entries must be relative to the data mount and must not contain '..'", + "rule": "self.all(p, !p.startsWith('/') && !p.contains('..'))" + } + ] + }, "missingFilesPath": { "description": "MissingFilesPath is the file, relative to the data mount, where the\nimage lists files that need a manual download\n(e.g. \"MODS_NEED_DOWNLOAD.txt\").", "maxLength": 128, @@ -2148,7 +2164,7 @@ "type": "object" }, "sentinelIsolation": { - "description": "SentinelIsolation restricts a wake sentinel to its own server's advertised\nports. Templates opt in after module connectivity validation; absent or\nfalse retains the legacy namespace-wide sentinel allowances.", + "description": "SentinelIsolation restricts a wake sentinel to its own server's advertised\nports. A template that advertises any port gets this by default (a\nrunning server takes it at its next start); true applies it at once and\nrequires an advertised port. Only a template with no advertised port\nkeeps the legacy namespace-wide sentinel allowances.", "type": "boolean" }, "storage": { diff --git a/minecraft-java/README.md b/minecraft-java/README.md index f1ddd51..9f960e4 100644 --- a/minecraft-java/README.md +++ b/minecraft-java/README.md @@ -45,6 +45,12 @@ Changing the pinned version is a server update, and Gameplane adopts packs that were installed before version pinning existed. FTB packs are modpacks only and do not appear in the Mods tab. +Since 2.13.1, an FTB pack whose mods folder is empty is installed again on the +next start (for example after removing the pack and installing the same +version, or after changing the server version). This needs a Gameplane release +after 0.5.0; older versions need `FTB_FORCE_REINSTALL=true` set once in the +server's environment. + Each provider pins its pack by version: CurseForge by file ID (`CF_FILE_ID`), Modrinth by version ID (`MODRINTH_VERSION`) and FTB by version ID (`FTB_MODPACK_VERSION_ID`). diff --git a/minecraft-java/module.yaml b/minecraft-java/module.yaml index 103fc99..5bc7da4 100644 --- a/minecraft-java/module.yaml +++ b/minecraft-java/module.yaml @@ -2,7 +2,7 @@ apiVersion: gameplane.local/module/v1 name: minecraft-java displayName: Minecraft (Java Edition) -version: 2.13.0 +version: 2.13.1 game: minecraft-java categories: [Sandbox, Survival, Building, Modded, Creative] summary: Vanilla / Paper / Spigot / Bukkit / Purpur / Forge / NeoForge / Fabric / Quilt servers (itzg/minecraft-server) with a version+loader picker spanning 1.16.5–latest, per-loader mod volumes, in-app Modrinth browse, and Modrinth, CurseForge and FTB modpacks. diff --git a/minecraft-java/specs.md b/minecraft-java/specs.md index 99c969a..bce6537 100644 --- a/minecraft-java/specs.md +++ b/minecraft-java/specs.md @@ -4,7 +4,7 @@ - **Game**: Minecraft: Java Edition - **Module Slug**: `minecraft-java` -- **Version**: 2.13.0 (minimum Gameplane 0.5.0) +- **Version**: 2.13.1 (minimum Gameplane 0.5.0) - **Role**: GameTemplate for Minecraft Java servers, backed by the community `itzg/minecraft-server` image. --- @@ -47,6 +47,7 @@ The Mods tab and the Modpacks tab read the same provider list. - `TYPE=FTBA`, `FTB_MODPACK_ID`, pinned by `FTB_MODPACK_VERSION_ID`. - Keyless. Modpacks only. +- `installMarkers: [.ftb-installed]`: the image skips the install when this file matches the pinned pack and never checks the mods folder. Gameplane (releases after 0.5.0) deletes the file before a start when the mods folder is empty, so the pack installs again after a removal or a server version change. Older Gameplane versions ignore the field. ### Modrinth provider diff --git a/minecraft-java/template.yaml b/minecraft-java/template.yaml index cfce55c..2aaa806 100644 --- a/minecraft-java/template.yaml +++ b/minecraft-java/template.yaml @@ -23,7 +23,7 @@ spec: displayName: Minecraft (Java Edition) game: minecraft-java # Kept in lockstep with module.yaml's bundle version from 2.5.0 onward. - version: 2.13.0 + version: 2.13.1 categories: [Sandbox, Survival, Building, Modded, Creative] # Brand color the dashboard tints this game's icon/accents with. accentColor: "#5b9a3e" @@ -773,6 +773,11 @@ spec: modpacks: refEnv: FTB_MODPACK_ID versionEnv: FTB_MODPACK_VERSION_ID + # The image skips the install when this file matches the pinned + # pack, without checking the mods folder. Gameplane deletes it + # when the mods folder is empty, so the pack installs again + # after a removal or a server version change. + installMarkers: [.ftb-installed] env: - { name: TYPE, value: FTBA } - provider: hangar