You can change it by providing a path to the java binary with the -jvm argument. The JVM is installed in a sub-directory called jvm inside the main directory. The launcher uses Java Virtual Machine to run the game, by default the launcher downloads and uses the official JVM These two arguments are overwritten by the -l ( -login) argument. If you omit the username, the first 8 characters of the UUIDĪre used for it. If you omit the UUID, a random one is chosen. i ( -uuid) to define your player's UUID. If you need fake offline accounts you can use -u ( -username) to define the username and/or However, if you use this, make sure that you either use an alias or a variable with the -l argument, for exempleĬheck below for more information about authentication sessions. For will become this is useful to avoid leaking it when recording or streaming. You can also use -anonymise in order to hide most of your email when printing it to the terminal. Not cached nor valid, you will be asked for the password on every launch. You can disable session caching using the argument -t ( -temp-login). In this case the launcher will open a page in your web browser with the You can use the the -m ( -microsoft) to authenticate a Microsoft account if you already had If your session is notĬached nor valid, the launcher will ask for the password. Log into your account (login with a username is deprecated by Mojang). Online mode is supported by this launcher, use the -l ( -login) argument to If you omit the version argument, it's equivalent to release. Sub-command), or a type of version to select the latest of this type ( release (default) or snapshot), Which can be either a full version id (which you can get from the search The only positional argument is the version, Of arguments allow you to control how to game will behave. The portablemc start sub-command is used to prepare and launch the game. Now, it's used by the launcher only for the version manifest fetching as it is now locally cached. You can use the special value 0 to force using local caches, if supported. The command and always set the main and work directory like you want.Īn advanced argument -timeout can be used to set a global timeout value that can be freely usedīy the launcher or addons. The two arguments -main-dir and -work-dir may or may not be used by sub commands, then you can alias This launcher also stores the authentication credentials in this directory ( -main-dir) and user-specific working directory (for example in ~/.minecraft, by default it's the This can be useful if you have a shared read-only main directory You may also need -work-dir to change the directory where your saves, resource packs andĪll "user-specific" content is stored. Of this directory is OS-dependent, but always in your user's home directory, The mainĭirectory stores libraries, assets, versions. You may need to use -main-dir if you want to change the main directory of the game. You can use -hĪrgument to display help (also works for every sub-commands). Sub-commandsĪrguments are split between multiple sub-commands. Systems this should work properly because the script is put in ~/.local/bin. On Windows you have to search for aĭirectory at %appdata%/Python/Python3X/Scripts and add it to the user's environment variable Path. If it fails, you mustĮnsure that the scripts directory is in your user path environment variable. If you are not an administrator and if you are, it allows not to modify other users' installations.Īfter that, you can try to show the launcher help message using portablemc in your terminal. We advise you to keep -user because this allows to install the launcher for your current user only, it is implicit Pip command is not in the path and the python executable is. You might have to use pip3 instead of pip in order to run it on Python 3. The easiest way to install the launcher is to use the pip tool of your Python installation. This launcher's version is also following the semver specification. Python -V, the version must be greater or equal to 3.6 according to semver specification, Table of contentsīefore starting, please check if your Python version is valid for the launcher by doing Install now! Fabric, Forge and Quilt addons It aims to be fast and reliable for all Minecraft versions in a stateless manner, it also supportsĪddons, official ones can be found below. This launcher is compatible with the directory structure of the official Minecraft Launcher. An easy-to-use command line Minecraft launcher in only one Python script!
0 Comments
Leave a Reply. |