From e585d9024d5d1a267659c4a05b535c3ffdd81bfb Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 14 Sep 2023 21:01:56 -0500 Subject: detect obstructions while pathfinding and better results on timeout --- azalea/examples/testbot.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'azalea/examples') diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs index 8e6f5b98..c562041e 100644 --- a/azalea/examples/testbot.rs +++ b/azalea/examples/testbot.rs @@ -129,6 +129,9 @@ async fn handle(mut bot: Client, event: Event, _state: State) -> anyhow::Result< println!("going to {target_pos:?}"); bot.goto(BlockPosGoal::from(target_pos)); } + "worldborder" => { + bot.goto(BlockPosGoal::from(BlockPos::new(30_000_000, 70, 0))); + } "look" => { let Some(entity) = entity else { bot.chat("I can't see you"); -- cgit v1.2.3