From 06068377bd17f95bdafe86ff14bab1d0d852aa53 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sun, 2 Oct 2022 14:58:42 -0500 Subject: New example (#24) the example isn't finished but it's finished enough --- examples/mine_a_chunk.rs | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 examples/mine_a_chunk.rs (limited to 'examples/mine_a_chunk.rs') diff --git a/examples/mine_a_chunk.rs b/examples/mine_a_chunk.rs deleted file mode 100644 index bb85a637..00000000 --- a/examples/mine_a_chunk.rs +++ /dev/null @@ -1,27 +0,0 @@ -use azalea::{Account, Accounts, Event, pathfinder}; - -// You can use the `azalea::Bots` struct to control many bots as one unit. - -#[tokio::main] -async fn main() { - let accounts = Accounts::new(); - - for i in 0..10 { - accounts.add(Account::offline(format!("bot{}", i))); - } - - let bots = accounts.join("localhost".try_into().unwrap()).await.unwrap(); - - bots.goto(azalea::BlockCoord(0, 70, 0)).await; - // or bots.goto_goal(pathfinder::Goals::Goto(azalea::BlockCoord(0, 70, 0))).await; - - // destroy the blocks in this area and then leave - - bots.fill( - azalea::Selection::Range( - azalea::BlockCoord(0, 0, 0), - azalea::BlockCoord(16, 255, 16) - ), - azalea::block::Air - ).await; -} -- cgit v1.2.3