2021-02-12 08:49:54 +00:00
|
|
|
# Minecraft Pi Edition API for Rust
|
|
|
|
|
|
|
|
This project ports the MCPI API to rust!
|
2021-04-03 16:05:08 +00:00
|
|
|
|
2021-04-09 18:33:09 +00:00
|
|
|
## How to install
|
|
|
|
|
2021-04-27 10:41:59 +00:00
|
|
|
Simply install this by adding `mcpi_api = "0.2.2"` to your Cargo.toml
|
2021-04-09 18:33:09 +00:00
|
|
|
|
2021-04-03 16:05:08 +00:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
Hello world!
|
|
|
|
```rust
|
|
|
|
use mcpi_api::create;
|
|
|
|
let mut mc = create("localhost:4711");
|
|
|
|
mc.post_to_chat("Hello World!")
|
|
|
|
```
|