Minecraft:Java Edition client command line arguments: Difference between revisions
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
== Command line parts == | == Command line parts == | ||
The complete command | The complete command used to start the {{wp|Java virtual machine}} consists of the following parts: | ||
* Location of the JVM executable | * Location of the JVM executable, usually provided by the system or downloaded by the launcher. Can be changed in the [[Minecraft:Minecraft Launcher#Installations|installation options]] in the launcher. | ||
* | * [[#JVM arguments|JVM arguments]] generated by the launcher and partially specified in its [[Minecraft:Minecraft Launcher#Installations|installation options]]. | ||
* | * {{code|-cp}}, which stands for "classpath". | ||
* The paths to the required libraries and the [[Minecraft:client.jar]], separated by {{code|:}} on Linux and macOS and with {{code|;}} on Windows. Generated based on {{code|arguments.jvm}} in [[Minecraft:client.json]]. | |||
* | * The [[#Main class|main class]], specified as {{code|mainClass}} in [[Minecraft:client.json]]. | ||
* [[#Game arguments|Game arguments]] generated by the launcher based on {{code|arguments.game}} in [[Minecraft:client.json]]. | |||
== JVM arguments == | == JVM arguments == | ||
| Line 19: | Line 19: | ||
! Description | ! Description | ||
|- | |- | ||
| {{code|-Djava.library.path{{=}}{{ph|natives folder}} | | {{code|-Djava.library.path{{=}}{{ph|library natives folder}}}} | ||
| | | Sets the folder containing the library natives. Usually {{file|directory|[[Minecraft:.minecraft]]/bin/{{ph|natives folder}}/java}}. | ||
|- | |- | ||
| {{code|-Djna.tmpdir{{=}}{{ph| | | {{code|-Djna.tmpdir{{=}}{{ph|JNA temporary folder}}}} | ||
| | | Sets the folder {{wp|Java Native Access}} uses for temporary files. Usually {{file|directory|[[Minecraft:.minecraft]]/bin/{{ph|natives folder}}/jna}}. | ||
|- | |- | ||
| {{code|-Dorg.lwjgl.system.SharedLibraryExtractPath{{=}}{{ph|natives folder}} | | {{code|-Dorg.lwjgl.system.SharedLibraryExtractPath{{=}}{{ph|LWJGL natives folder}}}} | ||
| | | Sets the folder containing the {{wp|LWJGL}} natives. Usually {{file|directory|[[Minecraft:.minecraft]]/bin/{{ph|natives folder}}/lwjgl}}. | ||
|- | |- | ||
| {{code|-Dio.netty.native.workdir{{=}}{{ph|natives folder}} | | {{code|-Dio.netty.native.workdir{{=}}{{ph|Netty natives folder}}}} | ||
| | | Sets the folder containing the {{wp|Netty (software)|Netty}} natives. Usually {{file|directory|[[Minecraft:.minecraft]]/bin/{{ph|natives folder}}/netty}}. | ||
|- | |- | ||
| {{code|-Dminecraft.launcher.brand{{=}}{{ph|launcher name}}}} | | {{code|-Dminecraft.launcher.brand{{=}}{{ph|launcher name}}}} | ||
| | | Sets the name of the launcher. Included in crash reports and telemetry. | ||
|- | |- | ||
| {{code|-Dminecraft.launcher.version{{=}}{{ph|launcher version}}}} | | {{code|-Dminecraft.launcher.version{{=}}{{ph|launcher version}}}} | ||
| | | Sets the version of the launcher. Ignored by the game. | ||
|- | |- | ||
| {{code|- | | {{code|-XX:HeapDumpPath{{=}}MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump}} | ||
| | | Supposedly makes Intel drivers on laptops with two GPUs use the dedicated GPU.<ref>{{reddit|d8j90e|comment/f1b2anr|apparently Intel drivers on laptops with two graphics cards scan the process name for strings like "minecraft" and "javaw.exe" and switch to the dedicated GPU if it sees those names.|scratchisthebest|September 24, 2019}}</ref> | ||
|- | |- | ||
| {{code|-XstartOnFirstThread}} | | {{code|-XstartOnFirstThread}} | ||
| Tells the JVM to start on the first thread.<br>Some macOS versions require this while others break with it, leaving the game stuck as "not responding". | | Tells the JVM to start on the first thread.<br>Some macOS versions require this while others break with it, leaving the game stuck as "not responding". | ||
|- | |- | ||
| {{code|- | | {{code|-Xms{{ph|initial memory}}}} | ||
| | | Sets the initial memory used in bytes. | ||
|- | |||
| {{code|-Xmx{{ph|maximum memory}}}} | |||
| Sets the maximum memory used in bytes. | |||
|- | |- | ||
| {{code|- | | {{code|-Xss{{ph|stack memory}}}} | ||
| Sets the | | Sets the memory used for the stack in bytes. | ||
|} | |} | ||
All byte counts can be suffixed with {{code|K}} for kilobytes, {{code|M}} for megabytes or {{code|G}} for gigabytes, each of which is equivalent to 1024 of the previous. | |||
== Game arguments == | == Game arguments == | ||
| Line 56: | Line 60: | ||
! Description | ! Description | ||
|- | |- | ||
| {{code|-- | | {{code|--version {{ph|version name}}}} | ||
| | | Sets the name of the version. Required to start the game. Specified in [[Minecraft:client.json]] and [[Minecraft:version_manifest.json]] under {{code|id}}. Shown in the [[Minecraft:debug screen]] and in crash reports. | ||
|- | |||
| {{code|--versionType {{ph|version type}}}} | |||
| Sets the type of the version. Usually {{code|release}}, {{code|snapshot}}, {{code|old_beta}} or {{code|old_alpha}}, specified in [[Minecraft:client.json]] and [[Minecraft:version_manifest.json]] under {{code|type}}. Defaults to {{code|release}}. | |||
|- | |||
| {{code|--accessToken {{ph|access token}}}} | |||
| Sets the token generated during the login. Required to start the game. An invalid token will allow singleplayer but show any error when attempting to join a server. The format depends on the authentication scheme. | |||
|- | |- | ||
| {{code|--username {{ph|player name}}}} | | {{code|--username {{ph|player name}}}} | ||
| | | Sets the player's name used for singleplayer. Must match the name of the account for multiplayer. Defaults to {{code|Player}} followed by the millisecond component of the current system time, which is essentially a random integer from {{code|0}} to {{code|999}}. | ||
|- | |- | ||
| {{code|--uuid {{ph|UUID}}}} | | {{code|--uuid {{ph|UUID}}}} | ||
| | | Sets the player's UUID. Hyphens are optional. If the access token is valid, then the UUID must match that account for both singleplayer and multiplayer. Defaults to a UUID generated from the player's name. | ||
|- | |- | ||
| {{code|--xuid {{ph|XUID}}}} | | {{code|--xuid {{ph|XUID}}}} | ||
| | | Sets the player's Xbox User ID. | ||
|- | |- | ||
| {{code|--demo}} | | {{code|--demo}} | ||
| Switches the game to [[Minecraft: | | Switches the game to [[Minecraft:demo mode]]. | ||
|- | |- | ||
| {{code|-- | | {{code|--offlineDeveloperMode}} | ||
| | | Switches the game to offline developer mode. | ||
|- | |- | ||
| {{code|-- | | {{code|--clientId {{ph|client ID}}}} | ||
| | | Sets the ID included in [[Minecraft:telemetry]]. Usually the [[Minecraft:UUID]] from {{file|file|clientId_v2.txt}} in [[Minecraft:.minecraft]], encoded as base64. Defaults to not including an ID in the telemetry data. | ||
|- | |- | ||
| {{code|--gameDir {{ph|game folder}}}} | | {{code|--gameDir {{ph|game folder}}}} | ||
| | | Sets the folder for the instance's files. Usually {{file|directory|[[Minecraft:.minecraft]]}}. Defaults to the current working directory. | ||
|- | |- | ||
| {{code|--assetsDir {{ph|assets folder}}}} | | {{code|--assetsDir {{ph|assets folder}}}} | ||
| | | Sets the folder that contains, among others, the {{file|directory|objects}} folder. Usually {{file|directory|[[Minecraft:.minecraft]]/assets}}. Defaults to {{file|directory|assets}} in the instance's files. | ||
|- | |- | ||
| {{code|--resourcePackDir {{ph|resource pack folder}}}} | | {{code|--resourcePackDir {{ph|resource pack folder}}}} | ||
| | | Sets the folder for resource packs. Defaults to {{file|directory|resourcepacks}} in the instance's files. | ||
|- | |- | ||
| {{code|--assetIndex {{ph|assets index name}}}} | | {{code|--assetIndex {{ph|assets index name}}}} | ||
| | | Sets the name (without {{code|.json}}) of the JSON file located in {{file|directory|indexes}} in the assets folder to use for mapping internal names to indexes into the {{file|directory|assets/objects}} folder. The index name depends on the game's version.{{info needed|How exactly do game version and index name relate? It used to be the version's name, but now it's just a single integer. It might be incremented with each version, but I'm not sure.}} | ||
|- | |- | ||
| {{code|--width {{ph|width}}}} | | {{code|--width {{ph|width}}}} | ||
| | | Sets the initial width of the game's window. Defaults to {{code|854}}. | ||
|- | |- | ||
| {{code|--height {{ph|height}}}} | | {{code|--height {{ph|height}}}} | ||
| | | Sets the initial height of the game's window. Defaults to {{code|480}}. | ||
|- | |||
| {{code|--fullscreen}} | |||
| Enables fullscreen. | |||
|- | |||
| {{code|--fullscreenWidth {{ph|horizontal fullscreen resolution}}}} | |||
| rowspan=2 | Set fullscreen resolution to use and store in the [[Minecraft:options]] when starting the game for the first time. Must be one of the resolutions selectable with the in-game slider. | |||
|- | |||
| {{code|--fullscreenHeight {{ph|vertical fullscreen resolution}}}} | |||
|- | |- | ||
| {{code|--disableMultiplayer}} | | {{code|--disableMultiplayer}} | ||
| Disables the multiplayer | | Disables the multiplayer and realms buttons. | ||
|- | |- | ||
| {{code|--disableChat}} | | {{code|--disableChat}} | ||
| Disables sending and | | Disables sending and seeing public and private messages in multiplayer and worlds opened to LAN. Commands and server messages are allowed.<br>Most servers send player messages as server messages, reimplement private messages, and sometimes even offer commands to send public messages, which mostly or entirely nullifies this argument. | ||
|- | |- | ||
| {{code|--quickPlaySingleplayer {{ph|world name}}}} | | {{code|--quickPlaySingleplayer [{{ph|world folder name}}]}} | ||
| | | Automatically joins the singleplayer world once the game has started. Defaults to the most recently played world if the folder name is omitted. | ||
|- | |- | ||
| {{code|--quickPlayMultiplayer {{ph|server address}}}} | | {{code|--quickPlayMultiplayer {{ph|server address}}}} | ||
| | | Automatically joins the server once the game has started. | ||
|- | |- | ||
| {{code|--quickPlayRealms {{ph| | | {{code|--quickPlayRealms {{ph|Realm ID}}}} | ||
| | | Automatically joins the Realm once the game has started. | ||
|- | |- | ||
| {{code|-- | | {{code|--quickPlayPath {{ph|quick play logs path}}}} | ||
| Sets the path to the file to write [[Minecraft:Quick Play#Logs|Quick Play logs]] to, relative to the instance's files. | |||
| | |||
|- | |- | ||
| {{code|--checkGlErrors}} | | {{code|--checkGlErrors}} | ||
| | | Does nothing. It is accepted and ignored. | ||
|- | |- | ||
| {{code|--renderDebugLabels}} | | {{code|--renderDebugLabels}} | ||
| | | Names GPU calls to make them identifiable in debugging. | ||
|- | |- | ||
| {{code|--vulkanValidation}} | | {{code|--vulkanValidation}} | ||
| | | Detects Vulkan errors instead of ignoring them and enables render debug labels. | ||
|- | |- | ||
| {{code|--graphicsBackend {{ph|graphics backend}}}} | | {{code|--graphicsBackend {{ph|graphics backend}}}} | ||
| Sets the graphics backend of Minecraft. | | Sets the graphics backend of Minecraft. Must be {{code|default}}, {{code|opengl}} or {{code|vulkan}}. Defaults to {{code|default}}. | ||
|- | |- | ||
| {{code|--jfrProfile}} | | {{code|--jfrProfile}} | ||
| Line 144: | Line 150: | ||
|- | |- | ||
| {{code|--tracyNoImages}} | | {{code|--tracyNoImages}} | ||
| | | Disables capturing frames to display in the timeline when debugging with Tracy. | ||
|- | |- | ||
| {{code|--proxyHost {{ph|proxy host}}}} | | {{code|--proxyHost {{ph|proxy host}}}} | ||
| | | Routes traffic through a proxy. | ||
|- | |- | ||
| {{code|--proxyPort {{ph|proxy port}}}} | | {{code|--proxyPort {{ph|proxy port}}}} | ||
| | | Sets the port of the proxy. Defaults to {{code|8080}}. | ||
|- | |- | ||
| {{code|--proxyUser {{ph|proxy | | {{code|--proxyUser {{ph|proxy username}}}} | ||
| | | rowspan=2 | Set the authentication for the used proxy. Required for multiplayer when using a proxy. | ||
|- | |- | ||
| {{code|--proxyPass {{ph|proxy password}}}} | | {{code|--proxyPass {{ph|proxy password}}}} | ||
|} | |} | ||
| Line 170: | Line 172: | ||
|- | |- | ||
| {{code|--session {{ph|session authentication}}}} | | {{code|--session {{ph|session authentication}}}} | ||
| The session ID used to authenticate with Mojang while connecting to servers. | | The session ID used to authenticate with Mojang while connecting to servers.<br>Defined as: {{code|token:{{ph|access authentication token}}:{{ph|authentication UUID}}}}. | ||
Defined as: {{code|token:{{ph|access authentication token}}:{{ph|authentication UUID}}}}. | |||
| [[Minecraft:13w16a]] to [[Minecraft:13w39b]] | | [[Minecraft:13w16a]] to [[Minecraft:13w39b]] | ||
|- | |- | ||
| {{code|--userProperties {{ph|user properties}}}} | | {{code|--userProperties {{ph|user properties}}}} | ||
| | | unknown{{info needed|What did it do?}} | ||
| [[Minecraft:13w47a]] to [[Minecraft:25w31a]] | | [[Minecraft:13w47a]] to [[Minecraft:25w31a]] | ||
|- | |- | ||
| Line 183: | Line 184: | ||
|- | |- | ||
| {{code|--server {{ph|server address}}}} | | {{code|--server {{ph|server address}}}} | ||
| The same as the new {{code|--quickPlayMultiplayer {{ph|server address}}}}. | | rowspan=2 | The same as the new {{code|--quickPlayMultiplayer {{ph|server address}}[:{{ph|server port}}]}}. | ||
| until [[Minecraft:23w13a]] | | rowspan=2 | until [[Minecraft:23w13a]] | ||
|- | |- | ||
| {{code|--port {{ph|server port}}}} | | {{code|--port {{ph|server port}}}} | ||
|- | |- | ||
| {{code|--workDir {{ph|game folder}}}} | | {{code|--workDir {{ph|game folder}}}} | ||
| Line 195: | Line 194: | ||
|- | |- | ||
| {{code|--dataPackDir {{ph|data pack folder}}}} | | {{code|--dataPackDir {{ph|data pack folder}}}} | ||
| | | Did nothing. It was accepted and ignored. | ||
| [[Minecraft:1.16-pre1]] to [[Minecraft:21w13a]] | | [[Minecraft:1.16-pre1]] to [[Minecraft:21w13a]] | ||
|- | |- | ||
| Line 227: | Line 226: | ||
|- | |- | ||
| {{code|--tweakClass {{ph|tweaker class}}}} | | {{code|--tweakClass {{ph|tweaker class}}}} | ||
| An optional class implementing {{code|net.minecraft.launchwrapper.ITweaker}} that can modify other classes while the game is starting. | | An optional class implementing {{code|net.minecraft.launchwrapper.ITweaker}} that can modify other classes while the game is starting.<br>The vanilla tweakers are in the {{code|net.minecraft.launchwrapper}} package, for example {{code|net.minecraft.launchwrapper.VanillaTweaker}}. | ||
The vanilla tweakers are in the {{code|net.minecraft.launchwrapper}} package, for example {{code|net.minecraft.launchwrapper.VanillaTweaker}}. | |||
|- | |- | ||
|} | |} | ||
| Line 234: | Line 232: | ||
== Main class == | == Main class == | ||
A | A version's default main class is in its [[Minecraft:version.json]] under {{code|mainClass}}. | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Class | ! Class | ||
! | ! Versions | ||
! Source | |||
|- | |- | ||
| {{code|net.minecraft.client.main.Main}} | | {{code|net.minecraft.client.main.Main}} | ||
| colspan=2 | after 1.5.2 | | colspan=2 | after [[Minecraft:Java Edition 1.5.2|release 1.5.2]] | ||
|- | |- | ||
| {{code|net.minecraft.launchwrapper.Launch}} | | {{code|net.minecraft.launchwrapper.Launch}} | ||
| rowspan=2 | Alpha | | rowspan=2 | [[Minecraft:Alpha v1.0.11]] through release 1.5.2 | ||
| new launcher | | [[Minecraft:Minecraft Launcher|new launcher]] | ||
|- | |- | ||
| {{code|net.minecraft.client.Minecraft}} | | {{code|net.minecraft.client.Minecraft}} | ||
| Line 252: | Line 251: | ||
|- | |- | ||
| {{code|{{ph|obfuscated}}}} | | {{code|{{ph|obfuscated}}}} | ||
| start of Alpha | | start of Alpha through [[Minecraft:Alpha v1.0.5_01]] | ||
| launcher | | launcher | ||
|- | |- | ||
| {{code|net.minecraft.client.MinecraftApplet}} | | {{code|net.minecraft.client.MinecraftApplet}} | ||
| Alpha | | Alpha | ||
| website applet | | website [[Minecraft:applet]] | ||
|- | |- | ||
| {{code|net.minecraft.minecraft.{{ph|obfuscated}}}} | | {{code|net.minecraft.minecraft.{{ph|obfuscated}}}} | ||
| Line 267: | Line 266: | ||
|- | |- | ||
| {{code|com.mojang.minecraft.{{ph|obfuscated}}}} | | {{code|com.mojang.minecraft.{{ph|obfuscated}}}} | ||
| Classic 0.0.13a_03 | | [[Minecraft:Classic 0.0.13a_03]] through end of Classic | ||
| rowspan=2 | launcher | | rowspan=2 | launcher | ||
|- | |- | ||
| {{code|com.mojang.minecraft.Minecraft}} | | {{code|com.mojang.minecraft.Minecraft}} | ||
| start of Classic | | start of Classic through Classic 0.0.13a | ||
|- | |- | ||
| {{code|com.mojang.minecraft.MinecraftApplet}} | | {{code|com.mojang.minecraft.MinecraftApplet}} | ||
| Line 278: | Line 277: | ||
|- | |- | ||
| {{code|com.mojang.minecraft.RubyDung}} | | {{code|com.mojang.minecraft.RubyDung}} | ||
| colspan=2 | late pre-Classic | | colspan=2 | late [[Minecraft:pre-Classic]] | ||
|- | |- | ||
| {{code|com.mojang.rubydung.RubyDung}} | | {{code|com.mojang.rubydung.RubyDung}} | ||
Latest revision as of 11:12, 26 June 2026
Template:Italic title When starting the Minecraft:Java Edition client, the Minecraft:Minecraft Launcher passes various command line arguments to the Template:Wp, such as the path to the game itself and account login information. These arguments are chosen based on the contents of the Template:Mono file corresponding to the selected version, options set in the launcher, and the current operating system.
Command line parts
The complete command used to start the Template:Wp consists of the following parts:
- Location of the JVM executable, usually provided by the system or downloaded by the launcher. Can be changed in the installation options in the launcher.
- JVM arguments generated by the launcher and partially specified in its installation options.
- Template:Code, which stands for "classpath".
- The paths to the required libraries and the Minecraft:client.jar, separated by Template:Code on Linux and macOS and with Template:Code on Windows. Generated based on Template:Code in Minecraft:client.json.
- The main class, specified as Template:Code in Minecraft:client.json.
- Game arguments generated by the launcher based on Template:Code in Minecraft:client.json.
JVM arguments
| Argument | Description |
|---|---|
| Template:Code | Sets the folder containing the library natives. Usually Template:File. |
| Template:Code | Sets the folder Template:Wp uses for temporary files. Usually Template:File. |
| Template:Code | Sets the folder containing the Template:Wp natives. Usually Template:File. |
| Template:Code | Sets the folder containing the Template:Wp natives. Usually Template:File. |
| Template:Code | Sets the name of the launcher. Included in crash reports and telemetry. |
| Template:Code | Sets the version of the launcher. Ignored by the game. |
| Template:Code | Supposedly makes Intel drivers on laptops with two GPUs use the dedicated GPU.<ref>Template:Reddit</ref> |
| Template:Code | Tells the JVM to start on the first thread. Some macOS versions require this while others break with it, leaving the game stuck as "not responding". |
| Template:Code | Sets the initial memory used in bytes. |
| Template:Code | Sets the maximum memory used in bytes. |
| Template:Code | Sets the memory used for the stack in bytes. |
All byte counts can be suffixed with Template:Code for kilobytes, Template:Code for megabytes or Template:Code for gigabytes, each of which is equivalent to 1024 of the previous.
Game arguments
| Argument | Description |
|---|---|
| Template:Code | Sets the name of the version. Required to start the game. Specified in Minecraft:client.json and Minecraft:version_manifest.json under Template:Code. Shown in the Minecraft:debug screen and in crash reports. |
| Template:Code | Sets the type of the version. Usually Template:Code, Template:Code, Template:Code or Template:Code, specified in Minecraft:client.json and Minecraft:version_manifest.json under Template:Code. Defaults to Template:Code. |
| Template:Code | Sets the token generated during the login. Required to start the game. An invalid token will allow singleplayer but show any error when attempting to join a server. The format depends on the authentication scheme. |
| Template:Code | Sets the player's name used for singleplayer. Must match the name of the account for multiplayer. Defaults to Template:Code followed by the millisecond component of the current system time, which is essentially a random integer from Template:Code to Template:Code. |
| Template:Code | Sets the player's UUID. Hyphens are optional. If the access token is valid, then the UUID must match that account for both singleplayer and multiplayer. Defaults to a UUID generated from the player's name. |
| Template:Code | Sets the player's Xbox User ID. |
| Template:Code | Switches the game to Minecraft:demo mode. |
| Template:Code | Switches the game to offline developer mode. |
| Template:Code | Sets the ID included in Minecraft:telemetry. Usually the Minecraft:UUID from Template:File in Minecraft:.minecraft, encoded as base64. Defaults to not including an ID in the telemetry data. |
| Template:Code | Sets the folder for the instance's files. Usually Template:File. Defaults to the current working directory. |
| Template:Code | Sets the folder that contains, among others, the Template:File folder. Usually Template:File. Defaults to Template:File in the instance's files. |
| Template:Code | Sets the folder for resource packs. Defaults to Template:File in the instance's files. |
| Template:Code | Sets the name (without Template:Code) of the JSON file located in Template:File in the assets folder to use for mapping internal names to indexes into the Template:File folder. The index name depends on the game's version.Template:Info needed |
| Template:Code | Sets the initial width of the game's window. Defaults to Template:Code. |
| Template:Code | Sets the initial height of the game's window. Defaults to Template:Code. |
| Template:Code | Enables fullscreen. |
| Template:Code | Set fullscreen resolution to use and store in the Minecraft:options when starting the game for the first time. Must be one of the resolutions selectable with the in-game slider. |
| Template:Code | |
| Template:Code | Disables the multiplayer and realms buttons. |
| Template:Code | Disables sending and seeing public and private messages in multiplayer and worlds opened to LAN. Commands and server messages are allowed. Most servers send player messages as server messages, reimplement private messages, and sometimes even offer commands to send public messages, which mostly or entirely nullifies this argument. |
| Template:Code | Automatically joins the singleplayer world once the game has started. Defaults to the most recently played world if the folder name is omitted. |
| Template:Code | Automatically joins the server once the game has started. |
| Template:Code | Automatically joins the Realm once the game has started. |
| Template:Code | Sets the path to the file to write Quick Play logs to, relative to the instance's files. |
| Template:Code | Does nothing. It is accepted and ignored. |
| Template:Code | Names GPU calls to make them identifiable in debugging. |
| Template:Code | Detects Vulkan errors instead of ignoring them and enables render debug labels. |
| Template:Code | Sets the graphics backend of Minecraft. Must be Template:Code, Template:Code or Template:Code. Defaults to Template:Code. |
| Template:Code | Starts profiling with Template:Wp on game launch. |
| Template:Code | Starts profiling with Tracy on game launch. |
| Template:Code | Disables capturing frames to display in the timeline when debugging with Tracy. |
| Template:Code | Routes traffic through a proxy. |
| Template:Code | Sets the port of the proxy. Defaults to Template:Code. |
| Template:Code | Set the authentication for the used proxy. Required for multiplayer when using a proxy. |
| Template:Code |
Legacy arguments
| Argument | Description | Versions |
|---|---|---|
| Template:Code | The session ID used to authenticate with Mojang while connecting to servers. Defined as: Template:Code. |
Minecraft:13w16a to Minecraft:13w39b |
| Template:Code | unknownTemplate:Info needed | Minecraft:13w47a to Minecraft:25w31a |
| Template:Code | unknownTemplate:Info needed | Minecraft:1.8.1-pre1 to Minecraft:25w31a |
| Template:Code | The same as the new Template:Code. | until Minecraft:23w13a |
| Template:Code | ||
| Template:Code | The same as the new Template:Code. | Minecraft:13w16a to Minecraft:13w23b |
| Template:Code | Did nothing. It was accepted and ignored. | Minecraft:1.16-pre1 to Minecraft:21w13a |
| Template:Code | The assets folder. Presumably Template:File by default.Template:Info needed | until Minecraft:13w48b |
| Template:Code | The authentication scheme used for logging in.
Template:Code for Minecraft:Microsoft authentication |
1.7.3 to 1.21.8 |
Launch wrapper arguments
Minecraft versions 1.5.2 and prior use a wrapper class to launch the game, which has different arguments than Minecraft itself. This is so they can be properly launched by the Minecraft:Minecraft Launcher.
| Argument | Description |
|---|---|
| Template:Code | The name of the version. |
| Template:Code | The folder for the instance's files. Template:File by default. |
| Template:Code | The folder that contains, among others, the Template:File folder. Template:File by default. |
| Template:Code | An optional class implementing Template:Code that can modify other classes while the game is starting. The vanilla tweakers are in the Template:Code package, for example Template:Code. |
Main class
A version's default main class is in its Minecraft:version.json under Template:Code.
| Class | Versions | Source |
|---|---|---|
| Template:Code | after release 1.5.2 | |
| Template:Code | Minecraft:Alpha v1.0.11 through release 1.5.2 | new launcher |
| Template:Code | old launcher | |
| Template:Code | start of Alpha through Minecraft:Alpha v1.0.5_01 | launcher |
| Template:Code | Alpha | website Minecraft:applet |
| Template:Code | Indev and Infdev | launcher |
| Template:Code | website applet | |
| Template:Code | Minecraft:Classic 0.0.13a_03 through end of Classic | launcher |
| Template:Code | start of Classic through Classic 0.0.13a | |
| Template:Code | Classic | website applet |
| Template:Code | late Minecraft:pre-Classic | |
| Template:Code | early pre-Classic | |
Assets
The launcher downloads additional required resources and saves them to Template:File to be used by the game.
Minecraft requires several arguments when launched.
Since 1.12.2, they are defined in Minecraft:client.json under Template:Code.
Before that, the game arguments were defined in Minecraft:client.json under Template:Code while the JVM arguments were defined directly in the launcher.