From 65fe07215149ab81d0862ab7edac71d6a8417ef8 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 13 Mar 2025 20:46:12 +0000 Subject: fix wrong Consumable component implementation and add set_equipment test --- azalea-core/src/lib.rs | 1 + azalea-core/src/sound.rs | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 azalea-core/src/sound.rs (limited to 'azalea-core/src') diff --git a/azalea-core/src/lib.rs b/azalea-core/src/lib.rs index ba6d61ef..a539dbd4 100755 --- a/azalea-core/src/lib.rs +++ b/azalea-core/src/lib.rs @@ -16,6 +16,7 @@ pub mod objectives; pub mod position; pub mod registry_holder; pub mod resource_location; +pub mod sound; #[cfg(feature = "bevy_ecs")] pub mod tick; pub mod tier; diff --git a/azalea-core/src/sound.rs b/azalea-core/src/sound.rs new file mode 100644 index 00000000..f12205e0 --- /dev/null +++ b/azalea-core/src/sound.rs @@ -0,0 +1,9 @@ +use azalea_buf::AzBuf; + +use crate::resource_location::ResourceLocation; + +#[derive(Clone, Debug, PartialEq, AzBuf)] +pub struct CustomSound { + pub location: ResourceLocation, + pub fixed_range: Option, +} -- cgit v1.2.3