#minecraft #minecraft-client

bin+lib minecraft-essentials

A Package that gives all Minecraft client launchers essentials

2 releases

0.2.7 Feb 10, 2024
0.2.6 Jan 31, 2024
0.2.5 Jan 31, 2024

#108 in Games

Download history 53/week @ 2024-01-28 28/week @ 2024-02-04 34/week @ 2024-02-11

115 downloads per month

Custom license

27KB
598 lines

Minecraft-Essentials

A Package that gives all Minecraft client launchers essentials.

Features

  • Essential - functionality for Minecraft Client Launchers
  • Simplifies - Minecraft Client Launcher Building.
  • Fast - performs better than other frameworks in authentification and launching
  • Safe - Forbids Unsafe Code #![forbid(unsafe_code)]
  • Beginner Friendly - Full documentation and examples/template avalible on github.

Where is the Other Packages???

Some of the packages had to be split up for reasons they are located here:


Installation

Prerequisites:

  • Rust

Usage:

Oauth BearToken:

use minecraft_essentials::*;


let client_id = "";
let client_secret = "";
let port = None;

let bedrockrel = false;
let auth = Oauth::new(client_id, port);

println!("{}", auth.url());

let auth_info = auth.launch(bedrockrel, client_secret).await;

println!("{:?}", auth_info)

Oauth Bedrock Relm:

use minecraft_essentials::*;


let client_id = "";
let client_secret = "";

let port = None;
let bedrockrel = true;

let auth = Oauth::new(client_id, port);
println!("{}", auth.url());

let auth_info = auth.launch(bedrockrel, client_secret).await;

println!("{:?}", auth_info)

Device_Code

use minecraft_essentials::*;
let client_id = "111231209837123098712";
let code = device_code::new(client_id);
println!("Stuff Here: {}", code.prelaunch());

let code_info = code.launch().await?;

More usages coming soon.

Want to contribute?

If you want to contrubute to this rust/main version package/library check this out here

Licensing

This library is licensed under the BSD 3.0 Licence

Dependencies

~18–33MB
~587K SLoC