From 0d16f01571ec8315f3979eae46981e559ade1cf9 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Fri, 10 Jan 2025 16:45:27 -0600 Subject: Fluid physics (#199) * start implementing fluid physics * Initial implementation of fluid pushing * different travel function in water * bubble columns * jumping in water * cleanup * change ultrawarm to be required * fix for clippy --- azalea-block/src/behavior.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'azalea-block/src/behavior.rs') diff --git a/azalea-block/src/behavior.rs b/azalea-block/src/behavior.rs index 498ba06f..aeae8a74 100755 --- a/azalea-block/src/behavior.rs +++ b/azalea-block/src/behavior.rs @@ -4,6 +4,8 @@ pub struct BlockBehavior { pub destroy_time: f32, pub explosion_resistance: f32, pub requires_correct_tool_for_drops: bool, + + pub force_solid: Option, } impl Default for BlockBehavior { @@ -14,6 +16,7 @@ impl Default for BlockBehavior { destroy_time: 0., explosion_resistance: 0., requires_correct_tool_for_drops: false, + force_solid: None, } } } @@ -52,4 +55,10 @@ impl BlockBehavior { self.requires_correct_tool_for_drops = true; self } + + // TODO: currently unused + pub fn force_solid(mut self, force_solid: bool) -> Self { + self.force_solid = Some(force_solid); + self + } } -- cgit v1.2.3