From 9693e382f32248541af360d1a66087f2133470de Mon Sep 17 00:00:00 2001 From: Geoff Bourne <988985+itzg@users.noreply.github.com> Date: Wed, 14 Oct 2026 20:18:46 -0500 Subject: [PATCH] Use Forge context for Cleanroom CurseForge files (#4337) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/mods-and-plugins/curseforge-files.md | 2 ++ scripts/start-setupModpack | 3 +++ 2 files changed, 5 insertions(+) diff --git a/docs/mods-and-plugins/curseforge-files.md b/docs/mods-and-plugins/curseforge-files.md index 7c999719..9127de93 100644 --- a/docs/mods-and-plugins/curseforge-files.md +++ b/docs/mods-and-plugins/curseforge-files.md @@ -4,6 +4,8 @@ Mods and plugins can be auto-downloaded and upgraded from CurseForge by setting A specific file can be omitted from each reference to allow for auto-selecting the newest version of the selected mod/plugin. The resolved `VERSION` and `TYPE` will be taken into consideration for selecting the appropriate file. +When `TYPE` is `CLEANROOM`, `CURSEFORGE_FILES` uses the Forge loader context to select compatible files. This only affects CurseForge file resolution; the server still runs with Cleanroom. + !!! info "CurseForge API key usage" A CurseForge API key is _now_ included by this image on Java 17 and newer; however, you can always supply your own instead. A CurseForge API key can be allocated and set with `CF_API_KEY` (or `CF_API_KEY_FILE`) [as described here](../types-and-platforms/mod-platforms/auto-curseforge.md#api-key). The `java8` image (and other pre-Java 17 tags) does not include a baked-in key; set `CF_API_KEY` yourself. diff --git a/scripts/start-setupModpack b/scripts/start-setupModpack index 9c8215b4..1ce863d6 100755 --- a/scripts/start-setupModpack +++ b/scripts/start-setupModpack @@ -342,6 +342,9 @@ function handleCurseForgeFiles() { forge|neoforge|fabric|quilt) args+=(--mod-loader "$TYPE") ;; + cleanroom) + args+=(--mod-loader forge) + ;; *) if isFamily HYBRID; then # To disambiguate mc-mods we'll assume that hybrid servers