1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
**NurtexMC** is a library written in Rust that allows you to create Minecraft bots and manage them, including connection and packet processing. This library focuses on an asynchronous environment, maximum speed and optimization, and ease of coding.
Supported Minecraft version: `1.21.11` (or protocol version - `774`).
To use this library in your code, add a dependency to the Cargo.toml:
```
nurtex = "0.4.0"
```
All current examples can be found here: [browse](https://github.com/nullclyze/NurtexMC/tree/main/examples)
```rust
use std::io;
use nurtex::create_bot;
use nurtex::events::EventInvoker;
async fn main() -> io::Result<()> {
// Creating a bot
let bot = crate_bot("NurtexBot");
// Create an event invoker
let mut event_invoker = EventInvoker::new();
// Сreate a handler for the "spawn" event
bot
}
```