A plan for meta format v2 and for reworking how MultiMC finds, installs and starts Java. Most of it is decided only where it says so: section 7 lists the decisions, each with a recommendation or its outcome, and the formats in section 5 are sketches to start the field-by-field review from.
How this document came about:
- 2026-11-03: started as notes on a meta format v2, an exploration of alternative formats and ways to deliver the metadata. It didn't go far. Its findings are section 10.
- 2026-11-19: the Java runtime overhaul plan was drafted (sections 1 to 8).
- 2026-11-20: the scope was widened beyond Java, to the Launcher's old workarounds and the game arguments (section 9), and the plan took over this document.
Related: Runtimes.md (the 2021 design, checked in section 2), LauncherNetwork.md (sites, mirrors, caching).
- Users don't download, pick or configure a Java runtime, except on platforms we can't serve.
- Users don't deal with Java arguments or garbage collector tuning unless they make modpacks. Memory needs come from the modpack where it says them, and from sane defaults where not.
- Java arguments are modelled, not a text field: friendly controls for the common ones, and lists from different places combined intelligently.
- A meta format v2 that stays close to vanilla's. It is a clean break: older MultiMC and other launchers don't need to understand it.
- Less support load. Java setup and tuning are most of the questions we get.
Everything in this section was checked on 2026-11-19 against the Launcher (develop,
3bad7af0), meta (f5049f0), Mojang's live data (the runtime index and all 925 version files) and
Prism's meta (eca2ecf).
| Claim (2021) | Status |
|---|---|
Vanilla hardcodes -Xmx2G + G1 flags (amd64), -Xmx800M (x86) in its launcher |
Changed. Since 26.1-snapshot-2 (2026-01-07) version files carry the defaults themselves, in arguments.default-user-jvm (2.3). For older versions they are still launcher-side; the values need checking in the vanilla launcher's sources. |
The piston index URL (.../java-runtime/2ec0cc96.../all.json) |
Still live, same URL. |
Components jre-legacy, java-runtime-alpha, -beta |
Outdated. Now also -gamma, -gamma-snapshot (17), -delta (21), -epsilon (25). See 2.2. |
Versions get a Java range (minVersion/maxVersion), the highest eligible is preferred |
Not built. Mojang gives one javaVersion per version (component and major). The range stays; which Java within it is preferred is open (D2). |
Per-version variables (maxHeap, heapRegionSize per architecture) |
Superseded by default-user-jvm, which says the same with vanilla's own rules. |
A runtime registry with managedArgs/hardArgs per major version |
Not built. The idea survives as the policy document (5.3). |
| Java older than 7 unsupported; the Launcher's Java parts target 7 | True: libraries/launcher and javacheck build with -source 7 -target 7. The lowest runtime Mojang serves is 8. |
Global settings JavaPath, JavaTimestamp, JavaArchitecture, JavaVersion, LastHostname, JvmArgs, MinMemAlloc, MaxMemAlloc, PermGen |
True, plus JavaVendor. Defaults: 512 / 1024 / 128 MiB. The doc has two slips: its second "MinMemAlloc" is MaxMemAlloc (-Xmx), and PermGen is -XX:PermSize, not -Xmx. |
-XX:PermSize only when the value isn't 64 |
True, and only for Java that still has PermGen. |
Instance overrides OverrideJavaLocation, OverrideJavaArgs, OverrideMemory, legacy OverrideJava; instance args replace the global ones |
True (MinecraftInstance.cpp). |
| A changed hostname or a missing Java brings back the Java wizard | True (Application.cpp): a different LastHostname, or a JavaPath that doesn't resolve. |
Version named by the index per platform (- means not offered):
| Component | Java | linux | linux-i386 | mac-os | mac-os-arm64 | windows-x64 | windows-x86 | windows-arm64 |
|---|---|---|---|---|---|---|---|---|
| jre-legacy | 8 | 8u202 | 8u202 | 8u74 | - | 8u51 | 8u51 | - |
| java-runtime-alpha | 16 | 16.0.1 | - | 16.0.1 | - | 16.0.1 | 16.0.1 | - |
| java-runtime-beta | 17 | 17.0.15 | - | 17.0.15 | - | 17.0.15 | 17.0.1 | - |
| java-runtime-gamma | 17 | 17.0.15 | - | 17.0.15 | 17.0.15 | 17.0.15 | 17.0.8 | 17.0.15 |
| java-runtime-delta | 21 | 21.0.7 | - | 21.0.7 | 21.0.7 | 21.0.7 | - | 21.0.7 |
| java-runtime-epsilon | 25 | 25.0.5.1 | - | 25.0.5.1 | 25.0.5.1 | 25.0.1 | - | 25.0.0 |
- There is no Linux arm64 at all, no 32-bit Java above 17 (Linux: above 8), and nothing below 17 for arm64. That matches what vanilla supports.
- MultiMC is built for lin32, lin64, osx64 and win32. Every one of them is covered to the extent vanilla covers it. The Windows build is 32-bit and mostly runs on 64-bit systems, and the macOS build is x86-64 and often runs on arm64, so the runtime's platform has to come from the system, not from how the Launcher was compiled. (Planned since 2026-11-20: arm64 builds of MultiMC on Linux, macOS and Windows. Mojang's runtimes don't cover those in full: nothing for Linux arm64, and no Java 8 or 16 for macOS and Windows arm64. See D1.)
- A runtime is a tree of files with SHA-1, size, an executable bit, and symlinks (about 200 links on Linux and macOS, none on Windows). Download sizes: 45 to 110 MB with LZMA, 90 to 235 MB on disk.
- Each index entry has an
availability(group,progress): Mojang rolls runtimes out in stages. All entries read were at 100. - The Java 8 builds are old on purpose (8u51 on Windows is from 2015, patched for
certificates:
8u51-cacert462b08). Newer Java 8 broke Intel HD 2000/3000 drivers on Windows 10, which is also why theHeapDumpPath=MojangTricksIntelDrivers...argument exists.
javaVersion(component,majorVersion) is on every version except 18 from the 1.6 era (13w24a to 13w38c, with 1.6 to 1.6.4). Timeline: 8 until 21w18a, 16 from 21w19a, 17 from 1.18-pre2, 21 from 24w14a, 25 from 26.1-snapshot-1.arguments.jvmexists since 17w43a. Ten distinct lists so far. Besides the classpath and native paths they carry real requirements:-XstartOnFirstThread(macOS),-Xss1M(x86),--enable-native-access=ALL-UNNAMED(26.1+),--add-exports java.base/jdk.internal.misc=ALL-UNNAMED(26.3+),-XX:StackShadowPages=32(latest snapshots), and since 26.2 separate native folders (${natives_directory}/java,/jna,/lwjgl,/netty).arguments.default-user-jvmexists since 26.1-snapshot-2: what the user may override. Heap went from-Xms4G -Xmx4Gto-Xms2G -Xmx4Gto, in the 26.4 snapshots,-XX:ErgoHeapSizeLimit=4G -XX:MaxRAMPercentage=25(a quarter of the RAM, at most 4 GB). The collector is ZGC, with the old G1 set kept for Windows before 10.0.17134.- Rules use:
os.name,os.arch(onlyx86),os.version(a regex),os.versionRange(min/max, new in 26.1), and sixfeatures(is_demo_user,has_custom_resolution,has_quick_plays_supportand threeis_quick_play_*). That is the complete list across all versions.
- Meta reads
javaVersionanddefault-user-jvmand writes neither. Ofarguments.jvmit keeps one thing,-XX:StackShadowPages, as a trait.-XstartOnFirstThreadis a trait set by "uses LWJGL 3". Meta's 26.3 file has traitsXR:Initial,StackShadowPages=32,FirstThreadOnMacOSand a flatminecraftArguments. updateJavas.pyandjavasutil.pyexist butupdate.shnever runs them, and their model stops atjava-runtime-delta.- The Launcher decides the required Java from release dates (
VerifyJavaInstall: five thresholds, lower bounds only). It knows nothing of mod loaders' limits. - The JVM command line is built in
MinecraftInstance::javaArguments(): the user's text, then the dock icon and first-thread (macOS),StackShadowPages, the IntelHeapDumpPath(Windows, always: Launcher#5477),-Xms/-Xmx,PermSize,-XX:-UseBASE64Intrinsics(Java 9 and later, since 2026-11-18, see 2.6),-Duser.language=en(always: Launcher#5010). It passes no collector flags, so Java 8 runs its default, the parallel collector, where vanilla has always used G1. It passes none of the newer required arguments (--enable-native-access,--add-exports). Whether 26.3 runs correctly without them was not checked. - The default heap is 1 GB (Launcher#5698). One Java path serves all instances unless overridden per instance.
- Java is probed by running
javacheck, and the result is cached in settings next to the path (JavaVersion,JavaArchitecture,JavaVendor,JavaTimestamp), globally and again per instance. - No modpack importer (ATLauncher, Technic, Modrinth, legacy FTB) reads a memory or Java hint.
Exported instances carry the exporting machine's
JavaPath(Launcher#5002). - Modern Forge and NeoForge start through ForgeWrapper, which works out their JVM arguments
(module path,
--add-opens) at run time. Those arguments never reach meta's output.
- On develop:
launcher/mojang/PackageManifest(mojang_files::Package: files, folders, symlinks;fromManifestContents,fromInspectedFolder;UpdateOperations::resolve(from, to)gives deletes, mkdirs, downloads, links, executable fixes), with tests. - Branch
feature/jres(the 2020 commit offeature/package_installation, rebased on 2025-01-17, 2 commits):PackageInstallTask(inspects the folder in a thread while fetching the manifest, then applies the difference in place),ComponentsManifest(the index parser, with a test), aSetExecutabledownload option,tools/grabjre. The hookup inJavaInstallListhardcodes five Java 8 manifest URLs ("FIXME: data-drive"). It installs toruntimes/<kernel>/<arch>/<version>/datawith the manifest beside it. - Launcher#5810 and meta#25 (2026-11-19, one author): a manual Java downloader. A
three-pane dialog (vendor, major version, build) offering Adoptium, Azul, IBM Semeru and
Mojang; meta generates one package per vendor in the format Prism uses. The user still
chooses a Java, and the instance still doesn't know which one it needs, so it doesn't reach
the goals above. In the code read: its own JSON parsing beside
Json.h, archives unpacked by running the system'star, a hardcoded vendor list. See decision D9. - Prism's meta (MS-PL): v1 extended, not a format closer to vanilla. Version files gain
compatibleJavaMajors(a list),compatibleJavaName(the piston component),+jvmArgs(a flat list:StackShadowPages, and since 2026-11-17 a security mitigation),+agents; game arguments are still flattened. Java is four packages (net.minecraft.java,net.adoptium.java,com.azul.java,com.ibm.java), one version file per major withruntimes[]. Worth taking if we want them: the Adoptium and Azul upstream readers, and the code that fills Mojang's platform gaps from other vendors. - The old idea list already had: use Mojang's Java and don't redistribute; one way of probing instead of several; one Java settings UI; pack-provided minimum and optimum heap; settings that work when the folder moves between machines.
"Java4Shell" (CVE-2026-114938, disclosed 2026-11-17, from the two advisories read, not
verified further): OpenJDK 17.0.6 and later on x86-64 CPUs with AVX-512 VBMI, triggered by
malformed Base64, including from a TLS server the program connects to. The interim mitigation
is a JVM flag, -XX:-UseBASE64Intrinsics. Prism shipped it through meta the same day
(+jvmArgs), reaching every install at once. MultiMC shipped it in the Launcher on
2026-11-18 (9705e3a4: the flag for Java 9 and later, hardcoded in javaArguments()), because
meta can't carry a JVM argument. That takes a Launcher release and reaches only installs
that update, and taking the flag out again once runtimes are fixed takes another. With the
policy document both are a change in meta. Mojang's 17.0.15 and 21.0.7 runtimes date from
2025-05; the Linux and macOS 25 runtime was replaced on 2026-11-18.
Four things, kept apart, because they change on different schedules:
- Facts about a version (meta v2 version files). Which Java it needs and its arguments,
kept as vanilla structures them:
javaVersion,arguments.jvm,arguments.default-user-jvm, with rules. Mod loaders add their own limits. - The runtime catalog (meta v2). Which runtimes exist for which platform and where their manifests are. Generated strictly: from Mojang's index, and for the platforms Mojang doesn't cover from the runtimes we rehost (D1, revisited 2026-11-20).
- Java policy (meta v2, its own document). Decisions that change on their own: default memory and collector per Java version where the version file says nothing, mitigations like the one above, arguments a Java version no longer accepts, runtimes held back. Changing policy never touches a version file.
- The Launcher. A runtime manager (installed, detected and user-added runtimes, probed one way), a typed argument model that merges layers, and instance settings that say "automatic" unless the user chose otherwise.
At launch: intersect the Java ranges of the instance's components, pick the runtime, install or repair it if needed, compute memory, merge the argument layers, print the result with where each argument came from.
Strictness (to be confirmed per interface in the review): meta is a producer and fails closed. An unknown piston component, platform, rule key or argument shape stops that generator and publishes nothing new for it. The Launcher reads v2 strictly as well, since v2 is a clean break. It is permissive in two places: local things (a system Java it can't probe is skipped, an unknown user-typed argument is passed through), and catalog builds of a kind it doesn't know, which it skips (5.2).
- Managed runtimes live in
runtimes/<id>/in MultiMC's folder:data/(the tree),manifest.json(the manifest it was installed from), and a small state file (catalog entry, platform, probe result). Installing, verifying and repairing are the same operation: inspectdata/, diff against the manifest, apply (UpdateOperations). Several versions sit side by side, shared by all instances. Paths are relative, so the folder still works when moved. - Other runtimes: detected system Java and paths the user added. Same registry, same probe, marked by origin.
- One probe, cached per runtime (path, size and time of the binary), not in instance settings.
- Resolution per instance:
-
Requirement: the intersection of the components' Java ranges.
-
The instance's choice: automatic (default), or a specific runtime or path.
-
Native first (2026-11-20): runtimes for the machine's own architecture are tried before ones it can only run through emulation. Emulation costs performance, and the aim is the better experience. With the 2026-11-19 point that a runtime for the CPU's architecture matters more than the version the game shipped with, this puts the architecture before the version: a native Java anywhere in the range comes before an emulated one. A native Java only helps where the version's native libraries exist for that architecture too (section 8, backfill), so the two are checked together.
Earlier sketch (2026-11-19), superseded in part and not settled. It puts the version before the architecture, which is now the wrong way round; which version within the range is used is open (D2); and since 2026-11-20 (D1) a working Java already on the system that fits the requirements is preferred over downloading one, where this sketch has it last. The sketch was: automatic means the lowest Java version in the range that this machine can run, which for vanilla is exactly the version the game names, with candidates tried in this order:
- Java versions from the lowest up;
- within a version, the runtime the user's preference names for that Java version, if there is one (4.4); otherwise the managed runtime for this system's own platform, then one for a platform the system can run through emulation (x64 on arm64 macOS and Windows, x86 on x64), then an installed or detected Java of that version.
In the sketch the version came before the platform: 1.16 on an arm64 Mac got x64 Java 8, as in vanilla, not arm64 Java 17. With "native first" above, where 17 is in that version's range and its native libraries exist for arm64, arm64 Java 17 comes first.
Whatever the order ends up being: a managed runtime that isn't installed is installed as a launch step, with progress. Offline, only what is already on the machine counts. Nothing fits: stop with a message that says which Java is needed and what to do.
-
A runtime that installs but doesn't run (musl, NixOS and the like) is marked unusable for this machine and resolution continues with detected Java.
-
- The first-run wizard no longer asks new installs to pick a Java, and the hostname check goes. Existing installs keep their old global Java as the selection for its own Java version, without being asked (4.4, revised 2026-11-20).
The command line is assembled from layers, lowest first:
- Version files: each component's
arguments.jvm, rules evaluated. - Defaults: the version's
default-user-jvmwhere it has one, otherwise policy defaults for the runtime's Java version. - Policy mitigations.
- The Launcher's own (classpath, native paths, dock icon).
- Global user settings.
- The instance: what the pack provides, then what the user set.
Every argument is parsed into a typed entry with a key, and merging is by key:
| Kind | Examples | Merge |
|---|---|---|
| Memory | -Xmx, -Xms, -Xss, -XX:MaxRAMPercentage |
higher layer wins |
| Collector choice | -XX:+UseG1GC, -XX:+UseZGC |
one group: a higher layer's choice removes the others and their tuning flags |
| Collector tuning | -XX:G1NewSizePercent=20, -XX:+ZGenerational |
belongs to a collector, dropped with it |
| Boolean flag | -XX:+AlwaysPreTouch, -XX:-UseBASE64Intrinsics |
higher layer wins |
| Valued flag | -XX:MaxGCPauseMillis=50 |
higher layer wins |
| Property | -Dkey=value |
higher layer wins |
| Module access | --add-opens, --add-exports, --enable-native-access |
union |
| Agent | -javaagent: |
union, in order |
| Unknown | anything else | passed through, in order |
- Unlock flags (
UnlockExperimentalVMOptions,UnlockDiagnosticVMOptions) are added when an argument needs them. - Arguments the chosen Java no longer accepts (policy's list:
PermSizeafter 7, ZGC before 15, and so on) are dropped with a log line instead of the JVM refusing to start. - A user argument can remove a lower layer's argument, which answers Launcher#5477 and #5010.
- The log prints the final command line with the origin of each argument.
- Global and instance arguments merge instead of the instance replacing the global text (decision D4).
- The same rules evaluator serves game arguments and library rules.
- The default is automatic. The Launcher computes one number and passes it as
-Xmx, so it behaves the same on every Java (as far as I knowMaxRAMPercentagearrived in 8u191, after Mojang's Windows and macOS Java 8 builds; to confirm) and the log shows it. - Inputs: the pack's recommended and minimum heap if it has them; otherwise the version's
default-user-jvmif it has one; otherwise policy defaults; then capped by this machine's RAM and by 32-bit Java. Below the pack's minimum: a clear warning before launch. - The user can set a fixed amount instead, per instance or globally. Minimum heap and PermGen leave the main UI: PermGen shows only for Java 7 (Launcher#1552), minimum heap is an advanced argument.
- Collector: what the version's
default-user-jvmsays; for older versions, policy per Java version, starting from what vanilla does (G1 with its long-standing flags on Java 8). - Pack hints come from importers, where the pack format has them (to check per format: ATLauncher, Technic, FTB, CurseForge; Modrinth's has none as far as I know), and are stored apart from the user's own settings. Export writes hints and leaves out machine-specific keys.
-
New keys are added; old ones stay readable and are not deleted, so an older MultiMC opening the folder behaves as before.
-
Instance overrides map to per-instance settings in the new system (decided 2026-11-19). Nobody is asked about these, and each maps on its own:
Today In the new system OverrideJavaLocation(or legacyOverrideJava) withJavaPaththe instance's Java is that specific runtime, registered as user-added if detection doesn't find it OverrideJavaArgs(or legacyOverrideJava) withJvmArgsthe instance's layer of arguments (4.2) OverrideMemorywithMinMemAlloc,MaxMemAlloc,PermGenthe instance's memory is fixed at those amounts no override automatic The old keys are how an instance without the new keys is read, so nothing is rewritten until the user changes the setting, and an older MultiMC still reads the instance as before.
A broken override (2026-11-20): when an instance's Java override points at a Java that is gone or unsuitable, the launch tells the user it is broken and offers two ways on:
- stop the launch, so they can fix it themselves;
- fix it by going back to fully automatic runtime resolution, and continue launching.
Not settled: what counts as unsuitable (missing, fails the probe, wrong architecture, outside the instance's range), and whether a user may deliberately keep a Java outside the range; whether going back to automatic also drops the instance's Java arguments and memory, or only the choice of runtime.
-
There is no global Java path in the new system (2026-11-19). One Java can't serve all instances any more: different versions of the game need different versions of Java. The old global
JavaPathis not read as a setting by the new system. -
The new system has its own preferences, per Java version, because that is the level at which a preference still means something. The global one is a mapping from Java major version to the selected runtime (2026-11-20). The rest is a sketch, for the review:
- globally, for each Java version: Automatic (the managed runtime), or a specific runtime from the registry (a detected or user-added Java of that version);
- per instance: Automatic (the requirement, resolved through the global preferences), or a specific runtime;
- whether MultiMC may download runtimes at all (for people who manage Java themselves).
-
Existing installs: the old global Java is carried over, without a question (2026-11-20, D3a below). It becomes the selected runtime for its own Java version, and every other Java version is automatic. This replaces the one-time choice decided on 2026-11-19 (a wizard page with Automatic preselected and Keep using as the other option). A bad old global Java is forgotten instead. The one-time page remains and shows the selection per Java major version, with the settings page's controls; the user can leave it or change it (D3a below).
-
New installs have nothing to carry over. They get automatic without a question, and choose a Java themselves only where no runtime is offered for their system.
-
For the review: whether memory is part of the same page. Automatic memory comes a step later than automatic runtimes (section 6), so either the page covers both when the second arrives, or existing global memory settings get their own one-time page then.
D3a: what becomes of the old global Java at the switch. It only ever suited the instances whose Java requirement it meets; the others fail to launch with it today.
| Option | What it preserves | What it costs | |
|---|---|---|---|
| A | Discard. Every instance without its own Java becomes automatic. | Nothing, deliberately. | An instance that ran on a newer Java than the game names (1.16 on 17, say) moves to whatever automatic picks (D2). A hand-picked Java (GraalVM, OpenJ9) is no longer used until it is set as a preference. |
| B | Apply to instances. Write it as the explicit Java of each instance without its own, where it fits that instance's range; the rest become automatic. | Exactly today's behaviour for every instance that works today. | A machine-specific absolute path copied into every instance (Launcher#5002 many times over). It breaks when the folder moves or that Java is updated or removed, it can't be undone in one place, and instances created later behave differently from the old ones. |
| C | Turn it into a preference for its own Java version. A global Java 17 becomes "for Java 17, use this one". | The user's pick, wherever that Java version is what an instance resolves to, old and new instances alike. One setting, undone in one place. | Like A for instances that ran on it while needing a lower version. |
Decided 2026-11-19: A is the preselected choice, C is the other one, not B. The page reads: Automatic, or Keep using for Java . B is the only one that keeps every working instance byte-for-byte as it is, but it does so by multiplying the thing this overhaul removes.
The old global Java in the mapping (2026-11-20): the former global Java becomes the selected runtime for its own Java major version in that mapping. That is how it is kept: as an entry there, which also puts it in the registry.
Revised 2026-11-20: this happens always. C is the outcome for every existing install, not one of two choices, and nothing is discarded: keeping the user's Java where it still fits is better than dropping it altogether. That replaces the 2026-11-19 decision above (A preselected, C the other choice). The one-time page (D3) no longer asks for a choice; what it does instead is below.
What follows from it (2026-11-20):
- The one-time page stays, and shows what was decided. It lists, per Java major version, the selection that was made automatically, with the same controls as the settings page it mirrors. The user can leave it as it is, or make changes there.
- A bad old global Java is simply forgotten. It does not enter the mapping, and its Java version is automatic like the others. What makes it bad ("just about right", 2026-11-20): a 32-bit Java on a 64-bit system, one that fails the probe, one that is gone, one outside what the game supports.
- A 32-bit Java on a 64-bit system is at least highlighted or warned about (2026-11-20). It is most likely a user's mistake, such as picking the wrong download. The warning shows next to the Java's entry in the UI, for example as a warning icon with an explanation (2026-11-20). At launch, a warning with a suggested automatic fix "would be nice" (2026-11-20; wanted, not a firm decision). The fix is the same as for a broken selection: back to automatic. Dismissing the warning has an option to mark the odd Java selection as intentional (2026-11-20), so it is not raised again for it. The warning icon next to the entry stays even then (2026-11-20). The mark is stored with the selection: the value of the global mapping is a structure, holding the selected runtime and this flag (the user's assumption, 2026-11-20; see 5.5). An instance's own Java selection holds the same: the per-instance data would not be much different from an entry of the global mapping (2026-11-20; see 5.4). Not designed: the wording.
- An entry of the mapping that goes bad later triggers a question (2026-11-20), as a broken instance override does above: it is not silently forgotten. Only the old global Java at the switch is forgotten without asking. Not designed: the wording, and whether the choices are the same two (stop, or go back to automatic for that Java version and continue).
- Instances that ran on the old global Java while needing a different Java version resolve through the mapping's other entries, which are automatic. (Not looked at with the user.)
Still for the review: the old JavaPath key would be left in multimc.cfg untouched, so
an older MultiMC opening the folder still works.
- Instance and global Java settings share one widget: Java (Automatic, or a runtime from the list, or browse), Memory (Automatic, or an amount), and an Advanced part with the argument list and the effective command line.
Each needs the field-by-field pass: what the field is, who writes it, when it can change.
{
"javaVersion": { "component": "java-runtime-delta", "majorVersion": 21, "maxMajorVersion": 21 },
"arguments": {
"game": [ "...", { "rules": [ ], "value": [ ] } ],
"jvm": [ "...", { "rules": [ ], "value": [ ] } ],
"default-user-jvm": [ { "rules": [ ], "value": [ ] } ]
}
}component,majorVersion: Mojang's, copied. For the 18 versions without it, from a static table in meta.majorVersionis the lowest Java that works. Which Java in the range gets used is open (D2).maxMajorVersion: ours, optional, from a hand-kept table in meta (Forge up to 1.12.2 stops at 8, for example). Question for the review: whether this belongs here or in policy, since we correct it as we learn.- Mod loader versions carry
javaVersionwithoutcomponent. arguments: Mojang's structure unchanged, including rules. Legacy versions get their arguments in the same structure instead of the Launcher hardcoding them.- Traits
FirstThreadOnMacOSandStackShadowPages=are not in v2; the arguments say it.
{
"formatVersion": 2,
"runtimes": [
{
"id": "java-runtime-delta",
"majorVersion": 21,
"builds": {
"linux-x64": {
"version": "21.0.7",
"released": "2025-05-19T00:00:00+00:00",
"source": "mojang",
"type": "manifest",
"manifest": { "url": "https://piston-meta.mojang.com/...", "sha1": "...", "size": 0 }
}
}
}
]
}- Written by meta, from Mojang's index for the builds that are Mojang's. Platform names are ours (
linux-x64,windows-x86,macos-arm64), mapped from Mojang's. - For a Mojang build the manifest stays Mojang's file at Mojang's URL; the Launcher checks its SHA-1, and each file's.
Mojang was the only source when this was sketched (2026-11-19). Since 2026-11-20 (D1) we
rehost runtimes for the platforms Mojang doesn't cover, so the points below are what those
builds rely on, not only an open door. Not designed: the source and type of a rehosted
build, and where its files are served from.
- Runtimes are keyed by Java version and our platform names, not by Mojang's.
idis the catalog's own name. A platform Mojang lacks (linux-arm64) is just another key inbuilds, and a Java version Mojang lacks is just another runtime. - Each build says where it is from and how it is delivered.
source(mojang) is for display and policy.typesays how to install:manifestis Mojang's file tree. A different delivery (an archive with a hash, say) would be a newtypewith its own member beside it. - The Launcher skips a build whose
typeit doesn't know, and treats that platform as not offered. This is the one place v2 is read permissively, so a new source can be added to the catalog without breaking Launchers that predate it. Meta stays strict about what it writes. - One build per runtime and platform. Choosing between sources is meta's job (and policy's), not the user's and not the Launcher's. A vendor chooser is not part of this.
- Nothing on disk assumes Mojang:
runtimes/<id>/holds the tree, what it was installed from, and the probe result, whatever the source. Verifying and repairing by manifest is available formanifestbuilds; another type would need its own way to verify.
One document with: default arguments per Java version range (with rules, the same shape as
default-user-jvm); mitigations (an id, a Java range, rules, arguments, and the runtime
versions that no longer need it); arguments removed per Java version; memory defaults; held
back runtime builds. Field list to be written in the review.
A Java mode (automatic, or explicit with the existing JavaPath), a memory mode (automatic,
or fixed with the existing MaxMemAlloc), and the pack's hints (minimum and recommended
heap) under their own keys. Names to be chosen in the review.
The instance's own Java selection would not be much different from an entry of the global
mapping in 5.5 (2026-11-20): the selected runtime and the "marked as intentional" flag of
4.4. Not worked out: how that sits beside the existing OverrideJavaLocation and
JavaPath keys, which stay readable and are how an instance without the new keys is read
(4.4).
A mapping from Java major version to the selected runtime (2026-11-20; a version with no
entry is automatic), and whether runtimes may be downloaded. The value of the mapping is a
structure, not a bare path, so it can hold more than the runtime: so far the selected
runtime and the "marked as intentional" flag of 4.4 (assumed 2026-11-20). The old global JavaPath and
its cache keys are not part of this; the former global Java enters the mapping as the entry
for its own major version (4.4), and the old keys stay in the file unread. Shape and names
to be chosen in the review.
Where a game version has no native libraries for a system and there is no backfill, the version is not offered by default on that system. It is hidden in the UI unless the user ticks "incompatible versions": one more filter checkbox beside the ones the Minecraft version list already has (Releases, Snapshots, Old Snapshots, Betas, Alphas, Experiments).
For that, the version index has to record which operating systems and architectures each
version is compatible with. Today an index entry has version, releaseTime, type,
sha256, and optionally recommended, volatile, requires and conflicts; nothing
about systems.
Not designed: what the field looks like; what meta derives it from (the native libraries of the version and of the LWJGL it requires, including backfilled ones, and whether a Java in its range exists for that system); and what happens with an existing instance of a version that is incompatible with the machine it is opened on.
5.4 and 5.5 now want structured values (a mapping whose values are structures), and the current settings format is not well suited to that. The idea: as groundwork before this work starts, move the settings system to something more structured than INI files.
What is there today (Launcher b56ab2eb):
multimc.cfgand everyinstance.cfgare flatkey=valuefiles without sections, read and written by the Launcher's own parser (INIFile). Every value is stored as a string.- The settings system (
SettingsObject, about 130 registered settings, overrides and passthroughs between instance and global) is separate from the storage:INISettingsObjectis its only backend. - Structured data already lives outside it, in JSON files of its own (
accounts.json,mmc-pack.json). Binary values are squeezed in as Base64 strings (the window state). instance.cfgis more than storage. Its presence is what makes a folder an instance, the importers for other pack formats write one, and it is part of every exported instance zip, so other tools and launchers produce and read it.multimc.cfgis only ours.
What it touches, not looked at with the user: the promise in 4.4 that an older MultiMC
opening the folder behaves as before; reading instance.cfg from imported packs, which has
to stay whatever the new storage is; and whether the two files are one question or two.
The user's suggestion: "have a way to provide security patches to known bad libraries." Nothing below is decided, and none of the fields has been reviewed.
What prompted it. Passed on from a separate investigation on 2026-11-24 and not checked again here, except the Customize code (Launcher b56ab2eb):
- A remote code execution flaw in the Minecraft client was published on 2026-11-22. A resource pack supplied by a server, with crafted TrueType fonts, causes an out-of-bounds write in FreeType's bytecode interpreter. FreeType fixed it upstream in 2026-04, first released in FreeType 2.15.0 (2026-10-11).
- Mojang's response on 2026-11-24:
org.lwjgl:lwjgl-freetype:3.4.3replaced by3.4.3-mojang-2.15.0(the jar and five natives) in 19 version files, 26.3-snapshot-10 to 26.4-pre-1, with the rest said to be in the works. Meta v1 had it within the hour, and the freetype libraries of all 200 versions that bundle one matched Mojang's. - 181 versions (1.20.5 to 26.2,
lwjgl-freetype3.3.2 to 3.4.2, FreeType 2.13.0 to 2.14.3) still ship the vulnerable code, at Mojang and so in meta. Versions before 24w03a have nolwjgl-freetype. Not established: whether each older client reaches the vulnerable path. - Where a change in meta does not reach: an instance whose Minecraft component was
customized. Customize is one click with no confirmation; it writes the whole version file
to the instance's
patches/net.minecraft.jsonand the instance stops following meta until Revert removes the file. Imported instances and instances made by other tools can arrive in that state. How common it is can't be measured. Offline launches use the cached version file.
This is the argument of 2.6 again, for libraries instead of JVM arguments: a fix that is data in meta reaches every install at once, but only where meta's data is what gets used.
The sketch (the other session's, following the facts and policy split of section 3):
- Its own document beside the Java policy (5.3): a list of advisories, each naming a bad library and what to do about it. Publishing or withdrawing one never touches a version file.
- Applied by the Launcher at launch, to the final merged library list, so after customized
components and local
patches/*.json(which keep the OneSix format, section 6 step 4). That is what reaches customized instances, and it works offline from the cached copy. - Matching: a Maven coordinate with a version range, or the SHA-1 of the known bad files.
- Action: replace with a named library (full entries, natives per platform), or warn where no safe replacement exists.
- A condition on a replacement: what else has to be present. Mojang's patched jar is built for LWJGL 3.4.3.
- Shown in the launch log: which library was swapped, and by which advisory, like the origin of each argument (4.2).
Open, for the review: a per-instance opt-out and how it is shown; whether "warn" can become refusing to launch; the scope (libraries only, or also the client jar, assets and runtimes, given 5.3 already has held back runtime builds); how strict the producer is for a hand-made document (a replacement has to exist and match its hash before publishing). Not tested, and not to be assumed: whether a newer FreeType native can be dropped into the older LWJGL versions.
Approach, 2026-11-20: built in parallel, merged when ready. The risk is taken out by standing the new system up beside the current one:
- a parallel meta v2;
- the Launcher on a new branch, built into a parallel updater tree that reuses the test setup (files2);
- so the whole system can be done in one go, then tested, refined and its UI redesigned as needed, without disrupting anything;
- the branch is merged back to
developwhen it is ready for testing by users. Until thendevelopcarries smaller changes and bug fixes, and keeps releasing to Latest as it does.
The steps below are therefore the order of building on the branch, not separate releases to users. They no longer each have to be safe to ship on their own.
- Review this plan and the formats, field by field. Decide section 7.
- Launcher groundwork, no format change:
- one probe and the runtime registry (detected and user-added only);
- the typed argument model replacing
javaArguments(), producing the same command line as today by default, with tests on recorded command lines; - the install machinery from
feature/jresbrought up to date: path containment checks,Json.h, theNet::layer, tests. Usable from a tool before anything depends on it.
- Meta v2: generators for every package (the loaders can start with v1's content in v2's
shape), the runtime catalog, the policy document, strict checks. Published beside
v1/, which stays as it is. Run on the test setup first. - Launcher reads v2. Local files (
patches/*.json, custom components) stay in the OneSix format and keep their reader; both feed one model.VerifyJavaInstall's date table goes. - Automatic runtimes: resolution, install at launch, the new settings UI, carrying the old global Java over for existing installs, no Java question for new ones.
- Automatic memory and collector defaults, pack hints in importers and export.
- Cleanup: Linux packages stop depending on a system Java, the wiki and support answers, the old PRs and issues closed with links.
Issues this closes or answers, by step: 5: Launcher#4013, #4419, #2717, #4442, #4677, #5002, #4251. 6: #5698, #3995, #5361, #5460, #1552. 2 and 4: #5139, #5010, #5477, #5498. Made possible later, not planned here: #3608 (argument profiles), #3657 (per-group settings), launching Forge without ForgeWrapper.
| Decision | Recommendation | |
|---|---|---|
| D1 | Where automatic runtimes come from | Mojang's first (2026-11-19); other JREs are probably needed for what Mojang doesn't offer, arm64 above all. Revisited 2026-11-20: (1) for the platforms Mojang doesn't cover, we rehost specific Java runtimes ourselves; (2) the license has to allow that, which limits the choice of vendor (to check); (3) if the user already has a working Java on their system that fits the requirements, that one is preferred over downloading. (4) There are still cases where people want to keep the runtimes inside the Launcher's data folder, portable use for example, so preferring the system's Java can't be the only mode. (5) We will want arm64 builds of MultiMC on all platforms, so the plan covers Java runtimes for arm64 on Linux, macOS and Windows. Against Mojang's table (2.2) that means: everything for Linux arm64, and Java 8 and 16 for macOS and Windows arm64. Not settled: which vendor and builds, what exactly "fits" covers for a system Java (4.1), and how the portable case is chosen. The catalog leaves room for rehosted builds (5.2). |
| D2 | Which Java when the range allows several | Open (2026-11-19; "the lowest that fits" was recorded too early). Under discussion: a well-defined range of versions guaranteed to work, and within it the most fitting. A runtime for the machine's own CPU architecture matters more than the version the game shipped with. Whether native libraries exist for that architecture is a factor, and missing ones may have to be backfilled. Mod loaders, mods and modpacks can tighten the range or change the requirement altogether (older Forge did not run on Java 9 and later; some mods need a higher Java). Native before emulated, 2026-11-20 (4.1): emulation costs performance. The rest of the order in 4.1 is not settled. Tentative, 2026-11-19: among several versions in the range that are all native on the machine, the one the game shipped with is the safe answer; newer ones may perform better but may need their own tuned arguments, so this is to be revisited after testing and tuning. Agreed in principle, same day: there are two separate things, a range of Java versions that work and a preference within it, and the preference is either explicit or derived from other facts. Where each is written, who may state a preference, and what it is derived from are not settled. |
| D3 | Existing installs | Decided 2026-11-19: there is no global Java path in the new system; it has its own preferences (4.4). Explicit per-instance paths and memory stay. The one-time choice decided the same day (automatic as the default) was replaced on 2026-11-20 (D3a): the one-time page now shows the selection made automatically for each Java major version, with the same controls as the settings page, and the user can leave it or change it. |
| D3a | What becomes of the old global Java at the switch | Revised 2026-11-20: it always becomes the selected runtime for its own Java major version, in the global mapping from Java major version to runtime. (2026-11-19 had it discarded by default, kept only on the user's choice.) A bad one is simply forgotten: a 32-bit Java on a 64-bit system, one that fails the probe, one that is gone, one outside what the game supports. A 32-bit Java on a 64-bit system is at least highlighted or warned about, next to its entry in the UI (a warning icon with an explanation, for example). Not applied to instances. Instance overrides map to per-instance settings (4.4). |
| D4 | Global and instance arguments | Merge by key. Today the instance text replaces the global text. |
| D5 | Automatic memory numbers | To choose together: the default for older vanilla, for modded, and the cap against system RAM. |
| D6 | Who reads Mojang's runtime index | Meta, publishing the catalog. The Launcher only fetches manifests and files from Mojang. Meta can then validate and hold back a bad build. (Written 2026-11-19, before D1 was revisited: rehosted runtimes are fetched from us, and meta lists them in the same catalog.) |
| D7 | Sequence | Approach, 2026-11-20: neither of the two options first listed here (v2 for every package before the Launcher switches, or a temporary shortcut). The whole system is built in parallel, a meta v2 and a Launcher branch with its own updater tree on the test setup, and merged to develop when ready for users to test (section 6). Settled the same day: little Java work is planned on develop meanwhile, short of something unpredictable like the Base64 flaw, which is easy enough to reconcile, and this is not expected to go on for long; it is a project branch, which the "work on develop, no worktrees" rule was never meant to rule out (that rule is about setup cost for every small unit of work); and the build and release system is stable and not being worked on at the same time, so the test setup is free for this. |
| D8 | Java 8 | Mojang's old builds, as vanilla uses, unless we find they break things for us. A newer Java 8 from another vendor is the alternative, and brings the Intel driver problem back for some. (Written 2026-11-19, before D1 was revisited: Mojang has no Java 8 for arm64, so there a rehosted Java 8 is needed whatever is chosen here.) |
| D9 | Launcher#5810 and meta#25 | Approach, 2026-11-20: first make sure of the code's origin. If the author wrote it, they can license it as MS-PL as they wish. If it is taken from GPL code and offered as MS-PL, that is a problem. How much of it gets reused is unknown; by the end of this work it will most likely be unrecognizable. Checked 2026-11-20: the Launcher PR's code is, word for word, what the same person committed to their own MultiMC fork on 2026-03-28, and it has next to nothing in common with Prism Launcher's GPL Java downloader (no identical lines, longest shared run 22 tokens, where really shared code shows over 100). No sign of GPL code from someone else. What is left to confirm with the author: in their fork the files said "Copyright Project Tick", first GPL, then Apache 2.0, so the MS-PL offer holds if that copyright is theirs alone to relicense. The meta PR shares a few constant names and one table with Prism's meta, which is MS-PL like ours. |
| D10 | The 2026-11-17 mitigation | Done 2026-11-18 in the Launcher (9705e3a4), hardcoded for Java 9 and later. It moves to the policy document when that exists (step 4), so it can be lifted per fixed runtime version. |
Two things the Java choice depends on. They are part of this plan "to some extent"; how far is not settled.
- Measured Java ranges. A script that launches the game in many combinations (game version, mod loader, Java version) and records which work, so the ranges in meta are measured instead of guessed. A combination works if the game gets into the main menu (2026-11-20). Not designed yet: how the script knows the main menu was reached, where it runs, and which combinations it covers.
- Native libraries for architectures Mojang doesn't cover. Probably taken from Prism's
meta (MS-PL). What is there (eca2ecf,
meta/common/mojang-library-patches.json, 179 entries): a table that matches a library by name and version and replaces it or adds libraries with rules per system.- macOS arm64: LWJGL 2, LWJGL 3.1.2 to 3.2.2 (the versions Mojang ships without arm64 natives), jinput, JNA, the Objective-C bridge, text2speech.
- Linux arm64 and arm32: LWJGL 2 and every LWJGL 3 the game used. Linux riscv64: LWJGL 3.3.6 and later.
- Windows arm64: one entry, for LWJGL 3.4.1. Nothing for older versions.
- The files come from build.lwjgl.org (LWJGL's own builds) and from personal GitHub repositories (MinecraftMachina, theofficialgman, r58Playz). The table carries SHA-1 and size for each.
- Decided 2026-11-19: we archive the backfilled native files ourselves, as with the Forge and NeoForge installers. A hash keeps a file from changing unnoticed, not from disappearing.
- Where the Launcher downloads a file from depends on what it is and how sure we are it
will stay there (2026-11-19). Mojang will be around and their infrastructure is fine,
so their files are downloaded from them. Maven repositories meant for development and
not for live traffic, and people's personal sites, can't be relied on, so those files
are served by us. Each host in the table has to be sorted into one or the other; how
serving them fits the mirrors in LauncherNetwork.md is not
worked out.
build.lwjgl.orgis the unclear one: it is the LWJGL project's own download host, but we don't know whether it is meant for launcher traffic. To do: ask the LWJGL project (2026-11-19; not asked yet). - Each library's license has to allow us to hand out copies. To be checked.
- Not everything in it is relevant to us (2026-11-19): arm32 and riscv64 are very niche, likely a few dozen users in total, and are not targets. What is left is arm64. MultiMC has no arm64 build today, but one is wanted on all platforms (2026-11-20), so native libraries are needed for arm64 on Linux, macOS and Windows. The table covers Linux and macOS; for Windows arm64 it has nothing below LWJGL 3.4.1, so older versions there either run as x64 under emulation or need builds from somewhere else. We have no numbers of our own yet: the start counts proposed in Statistics.md include the machine's CPU architecture and would give them.
Because meta gets a v2 anyway, the scope is wider than Java:
- Old workarounds in the Launcher move to meta. Release date hacks and other things that should have been data, not code.
- Game arguments are adopted too, as vanilla structures them. Some of the workarounds live there today.
This section is the inventory, checked on 2026-11-20 (Launcher b56ab2eb, meta f5049f0). What each item becomes in v2 is not designed yet.
| Threshold | Decides | Where |
|---|---|---|
java8/16/17/21/25BeginsDate |
the Java a version needs | VerifyJavaInstall (covered by javaVersion, 5.1) |
quickPlayBeginsDate (23w14a) |
--quickPlayMultiplayer or --server/--port; whether joining a world can be offered |
game arguments, the launch script, the shortcut dialog, instance settings, the worlds page (5 places) |
fabricBeginsDate, neoForgeBeginsDate, liteLoaderEndsDate |
which "Install ..." buttons are enabled | the instance's version page |
legacyCutoffDate (2013-06-25, marked "FIXME: remove") |
whether the core mods page shows | the mod folder page |
Vanilla's data already says the quick play part: the arguments carry rules on the features
has_quick_plays_support and is_quick_play_* from 23w14a on. --server and --port for
older versions are in no version file; the Launcher adds them itself.
| Table | What it is | Note |
|---|---|---|
fmlLibsMapping |
the libraries old Forge needs for Minecraft 1.3.2 to 1.5.2, with checksums, used with the legacyFML trait |
the same table exists in meta (forgeutil.py) |
lwjglWhitelist |
six library names treated as LWJGL when cleaning a version file | |
forgeInstallerBlacklist |
{"1.5.2"} |
nothing reads it any more |
| Trait | Effect in the Launcher | Set by meta from |
|---|---|---|
legacyLaunch, alphaLaunch |
start through the applet wrapper | the hand-kept legacy table (static/minecraft.json) |
noapplet |
start the main class without the applet wrapper | (not found in meta) |
texturepacks, no-texturepacks |
which of the texture pack and resource pack pages show | the legacy table |
legacyFML |
download the FML libraries | "Minecraft version is in the FML table" |
FirstThreadOnMacOS |
-XstartOnFirstThread |
"uses LWJGL 3" |
StackShadowPages=N |
-XX:StackShadowPages=N |
the one JVM argument meta keeps |
XR:Initial |
none: nothing in the Launcher reads it | Mojang's complianceLevel 1 |
- JVM: the dock icon and name (macOS), the Intel
HeapDumpPath(Windows),PermSize, the Base64 flag,-Duser.language=en, and two-Dfml.ignore...properties when the instance has jar mods. - Game:
--tweakClassper tweaker,--demofor a demo session, the quick play or server arguments, and in the Java part of the Launcher--width/--height(maximizing has "no good way"). Legacy versions get the user name and session through the applet instead. - Variables the Launcher fills in:
auth_player_name,auth_session,auth_access_token,auth_uuid,user_properties,user_type,profile_name,version_name,version_type,game_directory,game_assets,assets_root,assets_index_name. Vanilla's current lists also useclientid,auth_xuid(meta strips both),resolution_width,resolution_heightand fourquickPlay...variables.
18 distinct lists across 925 versions: 14 in the old one-line form (minecraftArguments,
up to 1.12.2) and 4 in the new form with rules (from 17w43a). Four main classes: two
RubyDung ones, net.minecraft.launchwrapper.Launch (c0.0.11a to 1.5.2, Mojang's own
wrapper with its tweaker) and net.minecraft.client.main.Main (from 13w16a).
For everything up to 1.5.2 meta throws Mojang's main class, arguments and libraries away and substitutes its own from the legacy table, and the Launcher starts those versions its own way. For 1.6 and later meta flattens the list to one line and drops every entry that has rules.
static/minecraft.json: the legacy table (main class, applet class, corrected release times, traits) for versions before 1.6.static/forge-legacyinfo.json: release time, hash and size of legacy Forge builds.static/lwjgl-3.2.2.json: a hand-made LWJGL version.- Mojang: LWJGL split out into its own packages, with rules for choosing between variants.
- Forge: tweakers pulled out of the arguments by a regular expression; modern versions get
an argument line built by hand, with
--fml.*filled in when missing, and ForgeWrapper as the main class; 1.6.1 skipped; 1.5.2 treated specially. - NeoForge: the early versions that were still named like Forge.
- Quilt: three loader versions excluded by name. LiteLoader: a fix for broken versions.
Redo meta as a service that polls upstream instead of a job run by a timer: it processes only what changed, so it does less work and can deliver updates much more often. Not needed for this plan; to be considered after it. Related: MultiMC/meta#24 (one failing upstream stops the whole run), and the delivery ideas and the compression finding in section 10.
Checked in meta's generators and the Launcher source on 2026-11-03. The exploration's points about Java requirements and stripped arguments are covered in sections 2 to 5 and 9; what follows is the rest. None of the ideas here is decided.
- Loose parsing.
formatVersion0 and 1 are both accepted, optional fields fall back to defaults, and unknown fields are ignored. A broken or misunderstood file can load as something else instead of failing. - Hashes unused. The root index lists each package index's SHA-256, and each package index each version's. They match the bytes served, but the Launcher never checks them.
- Whole-file package indexes. Each package index lists every version. Forge's is 1.8 MB with 5,092 versions, and it is downloaded again whenever a single build is added.
Version files repeat the same library lists almost word for word. Measured on meta's output on 2026-11-03 (9,096 files, every package and version):
| Form | Size |
|---|---|
| as published (pretty-printed JSON) | 235 MB |
| minified | 147 MB |
| minified, zstd -19 --long, as one blob | 1.5 MB |
As one blob, Forge is 930 KB, NeoForge 460 KB, Minecraft 150 KB and the rest about 110 KB. Meta changes several times a day, and a binary diff against the previous run is still about 150 KB, so one blob doesn't suit frequent updates. Shared parts referenced by hash (library sets, for example), or package indexes split into pieces that don't change, may help more.
- A strict format. One format version, exact keys, bounded numbers, and fixed patterns, read with the Launcher's strict JSON readers. Anything not understood is refused, so a newer format fails clearly in an older Launcher. (Section 3 adopts this, with one exception for the runtime catalog, 5.2.)
- Published by hash. Next to the paths, every file is also published at its SHA-256. Those files never change, so they can be cached forever at the edge with no purge, and only the root needs one. Today meta can't be edge-cached at all, because nothing purges it.
- Cached by hash. The Launcher keeps files by their SHA-256 and the last good root. Only the root is fetched to see what changed. Files it already has cost no request, and every download is checked against its hash (LauncherNetwork.md, Caching).
- Side by side with v1. Existing Launchers read
v1/, so v1 keeps being published as it is, with v2 next to it.
- What a version file contains, and what is shared between versions.
- How the Launcher evaluates rules and features, and which of them it supports. (The complete list of what Mojang uses is in 2.3.)
- Whether the root is signed, like the new updater's documents.
- How the package indexes are split, if at all.
Another way to deliver meta can always be added later. The idea: a custom archive format that splits the shared dictionary out and addresses the files inside with random access, the way a zip does. All of meta would then be a single small download; the Launcher maps it into memory and uncompresses a file when it is asked for, like a virtual file system.
Maybe a sub-project or follow-up; not designed. What it asks of v2 now is only that the content does not depend on how it is delivered: the same documents, named the same way, whether they come as separate files or out of an archive.
Measured 2026-11-20 on meta's output of that day (9,127 files, 236.1 MB as published, 147.5 MB minified; zstd 1.5.7, level 19, on the minified files). Totals include the dictionary and leave out the archive's index.
| Scheme | Size | Against the solid blob | To read one file, decompress |
|---|---|---|---|
| One solid blob (the 2026-11-03 finding, reproduced) | 1.50 MB | 1.0x | everything |
| Every file on its own, no dictionary | 23.3 MB | 15.5x | that file |
| Every file on its own, one shared 256 KB dictionary | 4.62 MB | 3.1x | that file |
| Every file on its own, one shared 1 MB dictionary | 3.61 MB | 2.4x | that file |
| Every file on its own, one shared 4 MB dictionary | 6.57 MB | 4.4x | that file |
| Every file on its own, a dictionary per package (256 KB each) | 3.90 MB | 2.6x | that file |
| Solid chunks of 16 files, with the 1 MB dictionary | 2.63 MB | 1.75x | about 0.2 MB (median) |
| Solid chunks of 64 files, no dictionary | 1.95 MB | 1.3x | about 0.9 MB (median), 4.7 MB at most |
| Solid chunks of 256 files, no dictionary | 1.65 MB | 1.1x | about 3 MB (median), 18 MB at most |
- With the 1 MB dictionary the files themselves are 2.56 MB and the dictionary is the other 1 MB. A typical version file is 60 to 220 bytes compressed. Past 1 MB a bigger dictionary costs more than it saves, and one dictionary for everything beats one per package.
- A dictionary trained three days earlier does within 1% as well, so it does not need retraining with every run.
- What a client fetches for an update. With every file on its own, unchanged files keep identical bytes. Over four pairs of states 9 to 62 hours apart that was 88 KB to 454 KB, where the same files as published are 0.8 MB to 18 MB. Nearly all of it is the package indexes: in one update of two new NeoForge builds, 87.6 KB of the 88.5 KB was NeoForge's index, and the two new version files were 225 and 166 bytes. The six package indexes are 0.39 MB of the 2.56 MB. So the whole-file indexes (10.1) are what an update costs, in this scheme too.
- An index for the archive (path, offset, length, SHA-256 per file) would be about 0.35 MB compressed, most of it the hashes.
- Decompression is not a cost in any scheme: microseconds for one file, well under a second for everything.
The measurement was run by a sub-agent. Checked independently: the file count, the published, minified and solid blob sizes, the size of the 1 MB dictionary scheme, that 300 random members decompress back to their originals, the changed-file counts of two pairs, and the 88.5 KB update. The chunked schemes, the other dictionary sizes and the timings were not re-run. All sizes except the three-days-earlier check are measured on the same files the dictionary was trained on.
Most of meta is JSON syntax; hashes, timestamps and artifact names repeating across files; and a small amount of unique data per file. There is prior art for removing that kind of repetition with tables: Java class files (the constant pool) and Android packages keep each string once and refer to it by number.
Measured on the same output as 10.5 (147.5 MB minified):
| Part | Share | Occurrences | Distinct |
|---|---|---|---|
| Braces, commas, colons | 6.1% | ||
| Numbers, booleans, null | 1.7% | ||
| Keys | 16.9% | 3.45 million | 57 (583 bytes) |
| String values | 75.3% | 2.00 million | 119,339 (8.6 MB, 5.8% of everything) |
Of the string values: URLs 43.9 MB (23,559 distinct, each used 20 times on average), hashes 19.7 MB (32,197 distinct, 14 times), artifact names 18.2 MB (25,543 distinct, 19 times), timestamps 0.5 MB (8,930 distinct, twice), the rest 28.8 MB (29,110 distinct, 19 times).
Two table schemes, both checked to give every file back exactly:
| Scheme | Uncompressed | Compressed (zstd 19) |
|---|---|---|
| One string table; each file a stream of references, compressed on its own | 13.9 MB of streams + 8.7 MB table | 6.49 MB |
| Strings and whole repeated subtrees stored once (an object, an array or a value is a numbered record that refers to other records); a file is one record number | 12.1 MB (3.4 MB records + 8.7 MB strings) | 1.87 MB as two pieces, 1.98 MB in independent 64 KB blocks |
- A string table alone is not enough: at 6.49 MB it is worse than zstd with a shared dictionary (3.61 MB, 10.5). The strings no longer repeat, but the same lists of libraries still do, as runs of references.
- Storing repeated subtrees once gets within a third of the solid blob (1.50 MB) and keeps random access. Uncompressed it is 12 MB, a twelfth of the minified size, so it could even be used without decompressing anything.
- "A small amount of unique data per file" in numbers: taking the files in path order, a file adds a median of 18 records (213 bytes) and 8 strings that no earlier file had; one in ten adds more than 60 records (715 bytes).
- The strings are now most of what is left (1.12 MB of the 1.87 MB). The 32,197 distinct hashes are random data: they take 20 or 32 bytes each however they are stored.
- Not measured: what an update costs in this scheme.
This is a rough experiment (the scripts are scratch tools, not kept), not a format design.
- The vanilla launcher's current defaults for versions before 26.1, and how it treats
availability. Needs its sources. - Whether Mojang's terms allow a third-party launcher to download their runtimes. Others do it; the old idea list assumed "download from Mojang, don't redistribute".
- Whether 26.3 and later run correctly today without the newer required JVM arguments.
- Memory and Java hints in each modpack format.
- Which Java ranges the mod loaders really need, per loader version. That table has to be built by hand and tested.
- Launching arm64 Java from the x86-64 macOS build, and x64 Java from the 32-bit Windows build on arm64 Windows.
- Disk use: up to five runtimes of 90 to 235 MB. Unused ones need a cleanup rule.