

Json object redefining paths for better customization. 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. Option to remove the client package zip file after its finished extracting. 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)) For production launchers, I recommend not passing // the getAuth function through the authorization field and instead // handling authentication outside before you initialize // MCLC so you can handle auth based errors and validation! authorization: Authenticator.getAuth( "username", "password"), 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! MCLC (Minecraft Launcher Core) is a NodeJS solution for launching modded and vanilla Minecraft without having to download and format everything yourself.īasically a core for your Electron or script based launchers.
