diff options
| author | mat <git@matdoes.dev> | 2023-10-08 03:58:57 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-10-08 03:58:57 -0500 |
| commit | 5212ba4d5d6cb34f9543b8a98d07798deeb7ba94 (patch) | |
| tree | 7300befa1faaeebdcccb8ad1aacb7043daeb9e1e | |
| parent | 682609a24e62587094397aab13fda924aa44509e (diff) | |
| download | azalea-drasl-5212ba4d5d6cb34f9543b8a98d07798deeb7ba94.tar.xz | |
update repo links
26 files changed, 48 insertions, 34 deletions
@@ -55,7 +55,7 @@ For fun, mostly. I wasn't satisfied with the current state of Minecraft bot libr There are several branches in the Azalea repository that target older Minecraft versions. It is not guaranteed that they will be up-to-date with the latest version of Azalea. If you'd like to update them or add more, please open a PR. -- [1.20-1.20.1](https://github.com/mat-1/azalea/tree/1.20.1) -- [1.19.4](https://github.com/mat-1/azalea/tree/1.19.4) -- [1.19.3](https://github.com/mat-1/azalea/tree/1.19.3) -- [1.19.2](https://github.com/mat-1/azalea/tree/1.19.2) +- [1.20-1.20.1](https://github.com/azalea-rs/azalea/tree/1.20.1) +- [1.19.4](https://github.com/azalea-rs/azalea/tree/1.19.4) +- [1.19.3](https://github.com/azalea-rs/azalea/tree/1.19.3) +- [1.19.2](https://github.com/azalea-rs/azalea/tree/1.19.2) diff --git a/azalea-auth/Cargo.toml b/azalea-auth/Cargo.toml index a3c7be46..4af4e419 100644 --- a/azalea-auth/Cargo.toml +++ b/azalea-auth/Cargo.toml @@ -3,7 +3,7 @@ description = "A port of Mojang's Authlib and launcher authentication." edition = "2021" license = "MIT" name = "azalea-auth" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-auth" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-auth" version = "0.8.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-block/Cargo.toml b/azalea-block/Cargo.toml index 8d4e3d8e..f950e43f 100644 --- a/azalea-block/Cargo.toml +++ b/azalea-block/Cargo.toml @@ -3,7 +3,7 @@ description = "Representation of Minecraft block states." edition = "2021" license = "MIT" name = "azalea-block" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-block" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-block" version = "0.8.0" [lib] diff --git a/azalea-block/azalea-block-macros/Cargo.toml b/azalea-block/azalea-block-macros/Cargo.toml index fab4165f..82337071 100644 --- a/azalea-block/azalea-block-macros/Cargo.toml +++ b/azalea-block/azalea-block-macros/Cargo.toml @@ -3,7 +3,7 @@ description = "Proc macros used by azalea-block." edition = "2021" license = "MIT" name = "azalea-block-macros" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-block/azalea-block-macros" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-block/azalea-block-macros" version = "0.8.0" [lib] diff --git a/azalea-brigadier/Cargo.toml b/azalea-brigadier/Cargo.toml index a86bc862..c28f68a2 100644 --- a/azalea-brigadier/Cargo.toml +++ b/azalea-brigadier/Cargo.toml @@ -3,7 +3,7 @@ description = "A port of Mojang's Brigadier command parsing and dispatching libr edition = "2021" license = "MIT" name = "azalea-brigadier" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-brigadier" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-brigadier" version = "0.8.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-brigadier/README.md b/azalea-brigadier/README.md index 6e573c8b..44a5e2c5 100755 --- a/azalea-brigadier/README.md +++ b/azalea-brigadier/README.md @@ -22,5 +22,5 @@ assert_eq!( ); ``` -See the [tests](https://github.com/mat-1/azalea/tree/main/azalea-brigadier/tests) for more. +See the [tests](https://github.com/azalea-rs/azalea/tree/main/azalea-brigadier/tests) for more. diff --git a/azalea-buf/Cargo.toml b/azalea-buf/Cargo.toml index 3934e09a..183c38a7 100644 --- a/azalea-buf/Cargo.toml +++ b/azalea-buf/Cargo.toml @@ -3,7 +3,7 @@ description = "Serialize and deserialize buffers from Minecraft." edition = "2021" license = "MIT" name = "azalea-buf" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-buf" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-buf" version = "0.8.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-buf/azalea-buf-macros/Cargo.toml b/azalea-buf/azalea-buf-macros/Cargo.toml index 80e17815..d0151c70 100644 --- a/azalea-buf/azalea-buf-macros/Cargo.toml +++ b/azalea-buf/azalea-buf-macros/Cargo.toml @@ -3,7 +3,7 @@ description = "#[derive(McBuf)]" edition = "2021" license = "MIT" name = "azalea-buf-macros" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-buf" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-buf" version = "0.8.0" [lib] diff --git a/azalea-chat/Cargo.toml b/azalea-chat/Cargo.toml index 4857a119..aff0158d 100644 --- a/azalea-chat/Cargo.toml +++ b/azalea-chat/Cargo.toml @@ -3,7 +3,7 @@ description = "Parse Minecraft chat messages." edition = "2021" license = "MIT" name = "azalea-chat" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-chat" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-chat" version = "0.8.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-client/Cargo.toml b/azalea-client/Cargo.toml index 77dc3777..98cf924b 100644 --- a/azalea-client/Cargo.toml +++ b/azalea-client/Cargo.toml @@ -3,7 +3,7 @@ description = "A headless Minecraft client." edition = "2021" license = "MIT" name = "azalea-client" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-client" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-client" version = "0.8.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-core/Cargo.toml b/azalea-core/Cargo.toml index 5f175545..ef755472 100644 --- a/azalea-core/Cargo.toml +++ b/azalea-core/Cargo.toml @@ -3,7 +3,7 @@ description = "Miscellaneous things in Azalea." edition = "2021" license = "MIT" name = "azalea-core" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-core" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-core" version = "0.8.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-crypto/Cargo.toml b/azalea-crypto/Cargo.toml index dde9d8e3..e692f36b 100644 --- a/azalea-crypto/Cargo.toml +++ b/azalea-crypto/Cargo.toml @@ -4,7 +4,7 @@ edition = "2021" license = "MIT" name = "azalea-crypto" version = "0.8.0" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-crypto" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-crypto" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-entity/Cargo.toml b/azalea-entity/Cargo.toml index 7d650208..3cb85f77 100644 --- a/azalea-entity/Cargo.toml +++ b/azalea-entity/Cargo.toml @@ -3,7 +3,7 @@ name = "azalea-entity" version = "0.8.0" edition = "2021" description = "Things related to Minecraft entities used by Azalea" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-entity" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-entity" license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-inventory/Cargo.toml b/azalea-inventory/Cargo.toml index 2937aeaf..64db6423 100644 --- a/azalea-inventory/Cargo.toml +++ b/azalea-inventory/Cargo.toml @@ -3,7 +3,7 @@ description = "Representations of various inventory data structures in Minecraft edition = "2021" license = "MIT" name = "azalea-inventory" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-inventory-macros" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-inventory-macros" version = "0.8.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-inventory/azalea-inventory-macros/Cargo.toml b/azalea-inventory/azalea-inventory-macros/Cargo.toml index 2c59f8db..af0a3ff9 100644 --- a/azalea-inventory/azalea-inventory-macros/Cargo.toml +++ b/azalea-inventory/azalea-inventory-macros/Cargo.toml @@ -3,7 +3,7 @@ description = "Internal macros for azalea-inventory." edition = "2021" license = "MIT" name = "azalea-inventory-macros" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-inventory/azalea-inventory-macros" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-inventory/azalea-inventory-macros" version = "0.8.0" [lib] diff --git a/azalea-language/Cargo.toml b/azalea-language/Cargo.toml index e8c4cfc4..fdb93424 100644 --- a/azalea-language/Cargo.toml +++ b/azalea-language/Cargo.toml @@ -3,7 +3,7 @@ description = "Translate Minecraft strings from their id." edition = "2021" license = "MIT" name = "azalea-language" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-language" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-language" version = "0.8.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-nbt/Cargo.toml b/azalea-nbt/Cargo.toml index cdba260b..0199c535 100644 --- a/azalea-nbt/Cargo.toml +++ b/azalea-nbt/Cargo.toml @@ -4,7 +4,7 @@ edition = "2021" license = "MIT" name = "azalea-nbt" version = "0.8.0" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-nbt" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-nbt" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-physics/Cargo.toml b/azalea-physics/Cargo.toml index 89366d75..a5e6deaf 100644 --- a/azalea-physics/Cargo.toml +++ b/azalea-physics/Cargo.toml @@ -3,7 +3,7 @@ description = "Physics for Minecraft entities." edition = "2021" license = "MIT" name = "azalea-physics" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-physics" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-physics" version = "0.8.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-protocol/Cargo.toml b/azalea-protocol/Cargo.toml index 3dca5582..10f28913 100644 --- a/azalea-protocol/Cargo.toml +++ b/azalea-protocol/Cargo.toml @@ -3,7 +3,7 @@ description = "Send and receive Minecraft packets." edition = "2021" license = "MIT" name = "azalea-protocol" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-protocol" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-protocol" version = "0.8.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-protocol/azalea-protocol-macros/Cargo.toml b/azalea-protocol/azalea-protocol-macros/Cargo.toml index d0440d57..acef483e 100644 --- a/azalea-protocol/azalea-protocol-macros/Cargo.toml +++ b/azalea-protocol/azalea-protocol-macros/Cargo.toml @@ -4,7 +4,7 @@ edition = "2021" license = "MIT" name = "azalea-protocol-macros" version = "0.8.0" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-protocol/azalea-protocol-macros" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-protocol/azalea-protocol-macros" [lib] proc-macro = true diff --git a/azalea-registry/Cargo.toml b/azalea-registry/Cargo.toml index 9ab5ab6c..b32c5759 100644 --- a/azalea-registry/Cargo.toml +++ b/azalea-registry/Cargo.toml @@ -3,7 +3,7 @@ description = "Use Minecraft's registries." edition = "2021" license = "MIT" name = "azalea-registry" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-registry" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-registry" version = "0.8.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea-registry/azalea-registry-macros/Cargo.toml b/azalea-registry/azalea-registry-macros/Cargo.toml index 27917581..c92ea7e2 100644 --- a/azalea-registry/azalea-registry-macros/Cargo.toml +++ b/azalea-registry/azalea-registry-macros/Cargo.toml @@ -3,7 +3,7 @@ description = "Macros internally used in azalea-registry." edition = "2021" license = "MIT" name = "azalea-registry-macros" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-registry/azalea-registry-macros" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-registry/azalea-registry-macros" version = "0.8.0" [lib] diff --git a/azalea-world/Cargo.toml b/azalea-world/Cargo.toml index d5781e55..e0b32968 100644 --- a/azalea-world/Cargo.toml +++ b/azalea-world/Cargo.toml @@ -3,7 +3,7 @@ description = "The Minecraft world representation used in Azalea." edition = "2021" license = "MIT" name = "azalea-world" -repository = "https://github.com/mat-1/azalea/tree/main/azalea-world" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-world" version = "0.8.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/azalea/Cargo.toml b/azalea/Cargo.toml index 0b8eca12..bdab1233 100644 --- a/azalea/Cargo.toml +++ b/azalea/Cargo.toml @@ -3,7 +3,7 @@ description = "A framework for creating Minecraft bots." edition = "2021" license = "MIT" name = "azalea" -repository = "https://github.com/mat-1/azalea/tree/main/azalea" +repository = "https://github.com/azalea-rs/azalea/tree/main/azalea" version = "0.8.0" [package.metadata.release] diff --git a/azalea/README.md b/azalea/README.md index ea882fc5..5a3751d5 100755 --- a/azalea/README.md +++ b/azalea/README.md @@ -13,7 +13,7 @@ default nightly`. Then, add one of the following lines to your Cargo.toml: Latest bleeding-edge version (recommended): -`azalea = { git="https://github.com/mat-1/azalea" }`\ +`azalea = { git="https://github.com/azalea-rs/azalea" }`\ Latest "stable" release: `azalea = "0.8.0"` @@ -21,7 +21,7 @@ Latest "stable" release: For faster compile times, make a `.cargo/config.toml` file in your project and copy -[this file](https://github.com/mat-1/azalea/blob/main/.cargo/config.toml) +[this file](https://github.com/azalea-rs/azalea/blob/main/.cargo/config.toml) into it. You may have to install the LLD linker. For faster performance in debug mode, add the following code to your @@ -73,11 +73,11 @@ async fn handle(bot: Client, event: Event, state: State) -> anyhow::Result<()> { # Swarms -Azalea lets you create "swarms", which are a group of bots in the same world that can perform actions together. See [testbot](https://github.com/mat-1/azalea/blob/main/azalea/examples/testbot.rs) for an example. Also, if you're using swarms, you should also have both `azalea::prelude::*` and `azalea::swarm::prelude::*`. +Azalea lets you create "swarms", which are a group of bots in the same world that can perform actions together. See [testbot](https://github.com/azalea-rs/azalea/blob/main/azalea/examples/testbot.rs) for an example. Also, if you're using swarms, you should also have both `azalea::prelude::*` and `azalea::swarm::prelude::*`. # Plugins -Azalea uses [Bevy ECS](https://docs.rs/bevy_ecs) internally to store information about the world and clients. Bevy plugins are more powerful than async handler functions, but more difficult to use. See [pathfinder](https://github.com/mat-1/azalea/blob/main/azalea/src/pathfinder/mod.rs) as an example of how to make a plugin. You can then enable a plugin by adding `.add_plugin(ExamplePlugin)` in your client/swarm builder. +Azalea uses [Bevy ECS](https://docs.rs/bevy_ecs) internally to store information about the world and clients. Bevy plugins are more powerful than async handler functions, but more difficult to use. See [pathfinder](https://github.com/azalea-rs/azalea/blob/main/azalea/src/pathfinder/mod.rs) as an example of how to make a plugin. You can then enable a plugin by adding `.add_plugin(ExamplePlugin)` in your client/swarm builder. Also note that just because something is an entity in the ECS doesn't mean that it's a Minecraft entity. You can filter for that by having `With<MinecraftEntityId>` as a filter. @@ -97,7 +97,7 @@ Note: If you get a `SetLoggerError`, it's because you have multiple loggers. Aza ## Deadlocks -If your code is simply hanging, it might be a deadlock. Copy the deadlock block in [`azalea/examples/testbot.rs`](https://github.com/mat-1/azalea/blob/main/azalea/examples/testbot.rs) to the beginning of your code and it'll print a long backtrace if a deadlock is detected. +If your code is simply hanging, it might be a deadlock. Copy the deadlock block in [`azalea/examples/testbot.rs`](https://github.com/azalea-rs/azalea/blob/main/azalea/examples/testbot.rs) to the beginning of your code and it'll print a long backtrace if a deadlock is detected. ## Backtraces diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs index 3a75bff7..f0382634 100644 --- a/azalea/src/pathfinder/mod.rs +++ b/azalea/src/pathfinder/mod.rs @@ -699,8 +699,22 @@ fn stop_pathfinding_on_instance_change( } /// A component that makes bots run /particle commands while pathfinding to show -/// where they're going. This requires the bots to have op permissions, and -/// it'll make them spam *a lot* of commands. +/// where they're going. This requires the bots to have server operator +/// permissions, and it'll make them spam *a lot* of commands. +/// +/// ``` +/// async fn handle(mut bot: Client, event: azalea::Event, state: State) -> anyhow::Result<()> { +/// match event { +/// azalea::Event::Init => { +/// bot.ecs +/// .lock() +/// .entity_mut(bot.entity) +/// .insert(PathfinderDebugParticles); +/// } +/// _ => {} +/// } +/// } +/// ``` #[derive(Component)] pub struct PathfinderDebugParticles; |
