### Add ViaVersionPlugin to ClientBuilder Source: https://github.com/azalea-rs/azalea-viaversion/blob/master/README.md Integrate the ViaVersionPlugin into your Azalea client by adding it to the ClientBuilder. Ensure ViaVersionPlugin is started with the desired Minecraft version. ```rust use azalea::prelude::* use azalea_viaversion::ViaVersionPlugin; #[tokio::main] async fn main() { ClientBuilder::new() .add_plugins(ViaVersionPlugin::start("1.21.4").await) .start(Account::offline("Azalea"), "localhost") .await .unwrap(); } ``` -------------------------------- ### Configure Cargo.toml for Azalea and ViaVersion Source: https://github.com/azalea-rs/azalea-viaversion/blob/master/README.md When using a different branch or fork of Azalea, patch your project's Cargo.toml file to specify the correct Git repository and branch for both azalea and azalea-viaversion dependencies. ```toml [dependencies] azalea = { git = "https://github.com/azalea-rs/azalea" } azalea-viaversion = { git = "https://github.com/azalea-rs/azalea-viaversion" } # Note: You can also use this to pin Azalea to a specific commit. # [patch.'https://github.com/azalea-rs/azalea'] # azalea = { git = "https://github.com/azalea-rs/azalea", branch = "1.21.4" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.