Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

RMCLL - Rust MineCraft Launcher Library

Still work in progress!

An example for launching a minecraft 1.12.2 client in your home directory:

fnmain(){use std::env;use rmcll::launcher;use rmcll::yggdrasil::{self,Authenticator};// prepare for starting minecraft client processlet game_dir = env::home_dir().unwrap().join(".minecraft/");let game_auth_info = yggdrasil::offline("zzzz").auth().unwrap();let launcher = launcher::create(game_dir, game_auth_info);let args = launcher.to_arguments("1.12.2").unwrap();// start the 1.12.2 client nowprintln!("\nStarting minecraft with: {} {:?}", args.program(), args.args());let minecraft_process = args.start().unwrap();let output = minecraft_process.wait_with_output().unwrap();let exit_code = output.status.code().unwrap();println!("\nMinecraft client finished with exit code {}", exit_code);}

License: Apache 2.0

About

[WIP] RMCLL - Rust MineCraft Launcher Library - a library for launching minecraft client written by rust

Topics

Resources

Stars

14 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages