[PR #2220] [MERGED] Bees come out and get angry when an explosion destroys their hive #4113

Closed
opened 2026-11-03 04:14:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2220
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/explosion-beehive-bees


📝 Commits (3)

  • cc39d57 Explosions empty and anger the bees of destroyed hives
  • e8ae26c Carry the exploding mob's kind with its blast and anger bees at guests too
  • 4c78d32 Merge main into fix/explosion-beehive-bees

📊 Changes

12 files changed (+87 additions, -12 deletions)

View changed files

📝 crates/horizon-client/examples/probe/mob_ai_probe.rs (+1 -1)
📝 crates/horizon-client/src/game/beehives.rs (+31 -5)
📝 crates/horizon-client/src/game/combat.rs (+4 -0)
📝 crates/horizon-client/src/game/creatures.rs (+9 -2)
📝 crates/horizon-client/src/game/explosion.rs (+29 -0)
📝 crates/horizon-client/src/game/minecarts.rs (+3 -1)
📝 crates/horizon-client/src/game/tnt.rs (+3 -1)
📝 crates/horizon-client/src/game/wither.rs (+1 -1)
📝 crates/horizon-client/src/mobs.rs (+3 -1)
📝 crates/horizon-client/src/mobs/hostile.rs (+1 -0)
📝 crates/horizon-client/src/mobs/sulfur_cube.rs (+1 -0)
📝 crates/horizon-client/src/mobs/wither.rs (+1 -0)

📄 Description

What and why

A beehive or bee nest blown up by an explosion just vanished: the bees inside were lost and the bees nearby did not get angry. Now:

  • Any explosion that destroys a hive makes nearby bees go for the player (same box as when a player breaks a hive).
  • If the blast comes from primed TNT, a creeper, a wither skull, a wither or a TNT minecart, the bees inside are let out first (emergency release).

The sources are marked with a small flag around those explosions, so other blasts (ghast fireballs, beds, anchors, end crystals) still do not release bees, as in vanilla.

Vanilla reference

  • BeehiveBlock.onExplosionHit (calls angerNearbyBees after the block is gone)
  • BeehiveBlock.getDrops (emptyAllLivingFromHive(null, state, EMERGENCY) for PrimedTnt, Creeper, WitherSkull, WitherBoss, MinecartTNT)
  • BlockBehaviour.onExplosionHit (drops are computed before the block is removed)

Self-check

cargo check -p horizon-client passes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2220 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/explosion-beehive-bees` --- ### 📝 Commits (3) - [`cc39d57`](https://github.com/horizon-rust/horizon/commit/cc39d57e070d73b84080e031157704f2295529ce) Explosions empty and anger the bees of destroyed hives - [`e8ae26c`](https://github.com/horizon-rust/horizon/commit/e8ae26c27016790f088eb6b4eeb1650ac5dffee5) Carry the exploding mob's kind with its blast and anger bees at guests too - [`4c78d32`](https://github.com/horizon-rust/horizon/commit/4c78d32e36c1bb054edb1ceab492cd2f78757e51) Merge main into fix/explosion-beehive-bees ### 📊 Changes **12 files changed** (+87 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/mob_ai_probe.rs` (+1 -1) 📝 `crates/horizon-client/src/game/beehives.rs` (+31 -5) 📝 `crates/horizon-client/src/game/combat.rs` (+4 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+9 -2) 📝 `crates/horizon-client/src/game/explosion.rs` (+29 -0) 📝 `crates/horizon-client/src/game/minecarts.rs` (+3 -1) 📝 `crates/horizon-client/src/game/tnt.rs` (+3 -1) 📝 `crates/horizon-client/src/game/wither.rs` (+1 -1) 📝 `crates/horizon-client/src/mobs.rs` (+3 -1) 📝 `crates/horizon-client/src/mobs/hostile.rs` (+1 -0) 📝 `crates/horizon-client/src/mobs/sulfur_cube.rs` (+1 -0) 📝 `crates/horizon-client/src/mobs/wither.rs` (+1 -0) </details> ### 📄 Description ## What and why A beehive or bee nest blown up by an explosion just vanished: the bees inside were lost and the bees nearby did not get angry. Now: - Any explosion that destroys a hive makes nearby bees go for the player (same box as when a player breaks a hive). - If the blast comes from primed TNT, a creeper, a wither skull, a wither or a TNT minecart, the bees inside are let out first (emergency release). The sources are marked with a small flag around those explosions, so other blasts (ghast fireballs, beds, anchors, end crystals) still do not release bees, as in vanilla. ## Vanilla reference - `BeehiveBlock.onExplosionHit` (calls `angerNearbyBees` after the block is gone) - `BeehiveBlock.getDrops` (`emptyAllLivingFromHive(null, state, EMERGENCY)` for `PrimedTnt`, `Creeper`, `WitherSkull`, `WitherBoss`, `MinecartTNT`) - `BlockBehaviour.onExplosionHit` (drops are computed before the block is removed) ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:14:46 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4113
No description provided.