2021-03-28 12:52:48 -05:00
|
|
|
use mcpi_api::{Vec3, create, TileVec3};
|
2021-03-21 10:56:19 -05:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn main() {
|
|
|
|
let mut mc = create("localhost:4711");
|
2021-03-26 11:46:02 -05:00
|
|
|
let posp = mc.player().get_pos();
|
2021-03-21 10:56:19 -05:00
|
|
|
let posp2 = Vec3::from(posp.x, posp.y + 10.0, posp.z);
|
2021-03-26 11:46:02 -05:00
|
|
|
mc.player().set_pos(&posp2);
|
|
|
|
let post = mc.player().get_tile_pos();
|
|
|
|
let post2 = TileVec3::from(post.x, post.y + 10, post.z);
|
|
|
|
mc.player().set_tile_pos(&post2);
|
|
|
|
mc.player().setting("autojump", true);
|
2021-03-21 10:56:19 -05:00
|
|
|
}
|