From 0a945e73ec43b3b0389e004e138c83f41cddc532 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 17 Jun 2022 18:09:34 -0500 Subject: EntityPos --- bot/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bot/src') diff --git a/bot/src/main.rs b/bot/src/main.rs index cd27ba5a..2618675e 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -21,6 +21,10 @@ async fn main() { // TODO: have a "loaded" or "ready" event that fires when all chunks are loaded Event::Login => {} Event::Chat(p) => { + let state = client.state.lock().await; + let world = state.world.as_ref().unwrap(); + // println!("{:?}", state.player.entity); + // world.get_block_state(state.player.entity.pos); // println!("{}", p.message.to_ansi(None)); // if p.message.to_ansi(None) == " ok" { // let state = client.state.lock().await; -- cgit v1.2.3