From e229894a9bd06ca83b12621b90e79fac267f1cb4 Mon Sep 17 00:00:00 2001 From: valgulnecron <39313199+ValgulNecron@users.noreply.github.com> Date: Mon, 5 Oct 2026 03:16:02 +0200 Subject: [PATCH] feat(minecraft-java): open Set difficulty on the current difficulty The level param now declares currentFrom: difficulty, so Gameplane's dashboard pre-fills it from the live difficulty metric instead of always showing normal. The editor schema gains the currentFrom property. Older Gameplane versions prune the unknown field, so the module stays compatible. minecraft-java 2.8.2 -> 2.9.0. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01NsN6bnAMRM9XQtrTQ6KC7U Signed-off-by: valgulnecron <39313199+ValgulNecron@users.noreply.github.com> --- .schema/gametemplate.schema.json | 6 ++++++ minecraft-java/module.yaml | 2 +- minecraft-java/template.yaml | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.schema/gametemplate.schema.json b/.schema/gametemplate.schema.json index cda2754..a53e863 100644 --- a/.schema/gametemplate.schema.json +++ b/.schema/gametemplate.schema.json @@ -157,6 +157,12 @@ "items": { "description": "ActionParamSpec is a single input collected before running an action.", "properties": { + "currentFrom": { + "description": "CurrentFrom names a status metric (spec.capabilities.status.metrics[].id)\nwhose live value pre-fills this input in the dashboard dialog, so a\n\"set\" action opens on the current setting. Default applies when the\nmetric has no reading or (for Type=enum) no option matches it.", + "maxLength": 63, + "pattern": "^[a-z0-9]([a-z0-9-]*[a-z0-9])?$", + "type": "string" + }, "default": { "description": "Default is the pre-filled value (as a string).", "type": "string" diff --git a/minecraft-java/module.yaml b/minecraft-java/module.yaml index e065101..c1d583b 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.8.2 +version: 2.9.0 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, and in-app Modrinth browse. diff --git a/minecraft-java/template.yaml b/minecraft-java/template.yaml index c3f585f..70866f1 100644 --- a/minecraft-java/template.yaml +++ b/minecraft-java/template.yaml @@ -381,6 +381,7 @@ spec: enum: ["peaceful", "easy", "normal", "hard"] default: normal required: true + currentFrom: difficulty # whitelist-add / whitelist-remove were removed here — whitelist # management now lives solely on the Players tab # (capabilities.players.whitelist above), so quick actions don't