

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.

get_minecraft_command ( latest_version, minecraft_directory, options ) # Start Minecraft subprocess. get_secure_login_data ( CLIENT_ID, REDIRECT_URL ) print ( f "Please open minecraft_command = minecraft_launcher_lib. install_minecraft_version ( latest_version, minecraft_directory ) # Login login_url, state, code_verifier = minecraft_launcher_lib. get_minecraft_directory () # Make sure, the latest version of Minecraft is installed minecraft_launcher_lib. get_latest_version () # Get Minecraft directory minecraft_directory = minecraft_launcher_lib. CLIENT_ID = "YOUR CLIENT ID" REDIRECT_URL = "YOUR REDIRECT URL" # Get latest version latest_version = minecraft_launcher_lib. For more information look at the documentation. import minecraft_launcher_lib import subprocess import sys # Set the data for your Azure Application here. This library containts functions to install and execute minecraft and interacting with mojang accounts. A Python library for creating a custom minecraft launcher.
