diff options
| author | mat <git@matdoes.dev> | 2026-01-16 03:01:33 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-01-16 14:29:01 -0600 |
| commit | 43b7d6aad17eaf2656fcb8edc2122edfd93f539f (patch) | |
| tree | c8a4013080e0cbdf9dfc1db9a916f0a037a15714 /azalea/examples | |
| parent | 914f881dd834aef67755f2e0fd4989253fc9f794 (diff) | |
| download | azalea-drasl-43b7d6aad17eaf2656fcb8edc2122edfd93f539f.tar.xz | |
pathfinder tweaks, and add a way to enable baritone compat for debugging
Diffstat (limited to 'azalea/examples')
| -rw-r--r-- | azalea/examples/testbot/commands/movement.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/azalea/examples/testbot/commands/movement.rs b/azalea/examples/testbot/commands/movement.rs index 06c7ebd1..3f015f2c 100644 --- a/azalea/examples/testbot/commands/movement.rs +++ b/azalea/examples/testbot/commands/movement.rs @@ -210,4 +210,11 @@ pub fn register(commands: &mut CommandDispatcher<Mutex<CommandSource>>) { *source.state.task.lock() = BotTask::None; 1 })); + commands.register(literal("forcestop").executes(|ctx: &Ctx| { + let source = ctx.source.lock(); + source.bot.force_stop_pathfinding(); + source.reply("ok"); + *source.state.task.lock() = BotTask::None; + 1 + })); } |
