diff options
| author | mat <git@matdoes.dev> | 2023-09-14 21:01:56 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-09-14 21:01:56 -0500 |
| commit | e585d9024d5d1a267659c4a05b535c3ffdd81bfb (patch) | |
| tree | d35c84c0963a602f8296a409bb5144cd69c53d9f /azalea/examples | |
| parent | c3717eaead706ed0d2fbd17b3c91fc2be759ff4a (diff) | |
| download | azalea-drasl-e585d9024d5d1a267659c4a05b535c3ffdd81bfb.tar.xz | |
detect obstructions while pathfinding and better results on timeout
Diffstat (limited to 'azalea/examples')
| -rw-r--r-- | azalea/examples/testbot.rs | 3 |
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"); |
