From 2b74cfae4a4e7f700b5bf162f6a8ac3ff7bd2e12 Mon Sep 17 00:00:00 2001 From: Kacpherek Date: Tue, 27 Oct 2026 22:29:06 +0100 Subject: [PATCH] Drop a beehive with its bees when it is broken in creative BeehiveBlock.playerWillDestroy drops the hive item with bees and honey_level when drops are prevented and block_drops is on; creative breaks dropped nothing. --- crates/horizon-client/src/game.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs index ff1f6fb91..2d9dc2797 100644 --- a/crates/horizon-client/src/game.rs +++ b/crates/horizon-client/src/game.rs @@ -3983,6 +3983,17 @@ impl Game<'_> { // library: the block entity's side effects (containers spill), neighbour // and shape updates, and the destroy event (particles, sound). let creative = self.creative; + // BeehiveBlock.playerWillDestroy: a creative break still drops the hive + // with its bees and honey level. + if creative + && self.ui.rules.bool("block_drops") + && let Some((h, (honey, _))) = &hive + && (!h.bees.is_empty() || honey.is_some_and(|l| l > 0)) + && let Some(stack) = self.picked_stack(pos, true) + { + let at = pos.map(f64::from); + self.spawn_item(stack, at, dispenser::new_item_motion(), 10); + } let correct_tool = !facts.requires_tool || self .res