aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-09-14 21:01:56 -0500
committermat <git@matdoes.dev>2023-09-14 21:01:56 -0500
commite585d9024d5d1a267659c4a05b535c3ffdd81bfb (patch)
treed35c84c0963a602f8296a409bb5144cd69c53d9f /azalea/examples
parentc3717eaead706ed0d2fbd17b3c91fc2be759ff4a (diff)
downloadazalea-drasl-e585d9024d5d1a267659c4a05b535c3ffdd81bfb.tar.xz
detect obstructions while pathfinding and better results on timeout
Diffstat (limited to 'azalea/examples')
-rw-r--r--azalea/examples/testbot.rs3
1 files changed, 3 insertions, 0 deletions
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");