An open API service indexing awesome lists of open source software.

https://github.com/ismaileke/bedrock-client

Bedrock Client written in Rust.
https://github.com/ismaileke/bedrock-client

bedrock bedrock-server client minecraft minecraft-server protocol raknet rust

Last synced: 3 months ago
JSON representation

Bedrock Client written in Rust.

Awesome Lists containing this project

README

        



# 🦀 Bedrock Client

[![latest release](https://shields.io/github/v/release/ismaileke/bedrock-client)](https://github.com/ismaileke/bedrock-client/releases/latest)
![GitHub License](https://img.shields.io/github/license/ismaileke/bedrock-client)
![GitHub Downloads](https://img.shields.io/github/downloads/ismaileke/bedrock-client/total)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/ismaileke/bedrock-client/rust.yml)

## ⚙️ Demo



![bedrock-client](https://github.com/user-attachments/assets/7de7d6ac-9235-45ad-a8ed-2a90514237d5)

## đź§© Usage

đź“„Cargo.toml
```css
[dependencies]
bedrock-client = { git = "https://github.com/ismaileke/bedrock-client.git", branch = "master" }
tokio = "1.43.0"
```

đź“„main.rs
```rust
use bedrock_client::client;

#[tokio::main]
async fn main() {
let mut client = client::create(
"127.0.0.1".to_string(), // target address
19132, // target port
"1.21.60".to_string(), // client version
false, // debug mode
|code, url| {
// If you turn on debug, the login code and url will already appear in the console, but you can use this if you want to edit it yourself.
println!("You can log in with the code {} at {}", code, url);
}
).await.unwrap();

client.set_packet_callback(|packet_name| {
// It can be used to try different things with incoming packages. Different features will be added later.
println!("New packet received: {}", packet_name);
});

client.connect().expect("Target IP Connection Error");
}
```

![github stats](https://repobeats.axiom.co/api/embed/70276ac33a6a218bad362509eacf217169042d47.svg "Repobeats analytics image")

> [!NOTE]
> This project is mainly designed for [Abyssal Eclipse](https://github.com/ismaileke/abyssal-eclipse), but you can get ideas and develop something from the code I wrote.
>
> It is still in development. I can't develop the project because I don't have time. Access to the servers is generally successful. I need to create the Chunk system for [Abyssal Eclipse](https://github.com/ismaileke/abyssal-eclipse).