Port of the host proxy, will default to 8080 if not entered. Host url to the proxy, don't include the port. Port of the host url, will default to 25565 if not entered. Host url to the server, don't include the port. Path to the JRE executable file, will default to java if not entered. (Versions below 1.13 should be the "universal" jar while versions above 1.13+ should be the "installer" jar) Min amount of memory being used by Minecraft. Max amount of memory being used by Minecraft. The name of the folder, jar file, and version json in the version folder. The actual Minecraft launcher uses release and snapshot. Minecraft version that is going to be launched.Īny string. MCLC will auto determine the OS if this field isn't provided.Īrray of custom Minecraft arguments you want to add.Īrray of custom Java arguments you want to add. Path where you want the launcher to work in.
Free 2-day shipping is great and, like everyone else, we enjoyed not knowing how much it actually cost. While you shop on Amazon, Capital One Shopping instantly finds you the best price.
Option to remove the client package zip file after its finished extracting. After years of hacking online shopping, we decided to build a tool to do it for us Capital One Shopping. Do not rehost Minecraft, it's against ToS.
Path or URL to the client package zip file. Launches the client with the specified options as a parameter. Launcher.on('data', (e) => console.log(e)) Launcher.on('debug', (e) => console.log(e)) MCLC so you can handle auth based errors and validation!Īuthorization: Authenticator.getAuth("username", "password"), handling authentication outside before you initialize the getAuth function through the authorization field and instead For production launchers, I recommend not passing Native launcher is current Starting launcher.dll with C:Program Files (x86)Minecraftruntimejre-圆41.8.051binjavaw.exe Found SetDllDirectoryW in kernel32. Npm i minecraft-launcher-core Standard Example const = require('minecraft-launcher-core')
Since people seem to use this, I've created a Discord server for anyone who needs to get in contact with me or get help! Basically a core for your Electron or script based launchers.
Coding-Kiwi - Pointed out I didn't pass clientToken in initial authentication function.Khionu - Research on how Minecraft's natives are handled.These are the people that helped out that aren't listed here! The pid is printed in console after the process is launched. What should it look like running from console? New URL that MCLC will make calls to authenticate the login.Įmitted when launch arguments are set for the Minecraft Jar.Įmitted when information is returned from the Minecraft ProcessĬode number that is returned by the Minecraft ProcessĮmitted when clientPackage finishes being extractedĮmitted when a file successfully downloadsĮmitted when data is received while downloadingĮmitted when functions occur, made to help debug if errors occurĮmitted when files are being downloaded in order. Token being checked if it's the same client that the access_token was created from. Token being checked if it can be used to login with (online mode).Ĭlient token being checked to see if there was a change of client (online mode). If one is not specified, one will be generated
Password for the Mojang account being used if online mode.Ĭlient token that will be used. Authenticator Functions getAuth Parameter Was used to support Forge 1.13 before ForgeWrapper. This runs an executable with specified launch arguments.
If no version jar is specified, MCLC will default back to the normal MC jar so mods like Fabric work. Since people seem to use this, Ive created a Discord server for anyone who needs to get in contact with me or. If you are loading up a client outside of vanilla Minecraft or Forge (Optifine and for an example), you'll need to download the needed files yourself if you don't provide downloads url downloads like Forge and Fabric. MCLC (Minecraft Launcher Core) is a NodeJS solution for launching modded and vanilla Minecraft without having to download and format everything yourself.