[PR #2427] [MERGED] A creaking heart destroyed by an explosion makes its creaking die #4307

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

📋 Pull Request Information

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

Base: main ← Head: fix/creaking-heart-explosion


📝 Commits (1)

  • dbd24e2 A creaking heart blown up by an explosion makes its creaking die

📊 Changes

3 files changed (+10 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+1 -1)
📝 crates/horizon-client/src/game/creaking.rs (+4 -3)
📝 crates/horizon-client/src/game/explosion.rs (+5 -0)

📄 Description

What and why

When an explosion destroyed a creaking heart, its creaking just crumbled away. In vanilla it twitches and dies, the same as when a player breaks the heart.

The explosion now runs the same creaking death (twitch sound, tearing down, health 0) on the heart's protector before the heart is destroyed. The experience a natural heart gives when an explosion caused by a player breaks it is not added: Horizon does not record who lit a TNT, so the explosion has no player owner to check.

Vanilla reference

  • CreakingHeartBlock.onExplosionHit
  • CreakingHeartBlockEntity.removeProtector (with a damage source)
  • Explosion.BlockInteraction.shouldAffectBlocklikeEntities (only destroying explosions reach this code)

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/2427 **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/creaking-heart-explosion` --- ### 📝 Commits (1) - [`dbd24e2`](https://github.com/horizon-rust/horizon/commit/dbd24e2e16534cbdadb9cd56118d987d25b0ec07) A creaking heart blown up by an explosion makes its creaking die ### 📊 Changes **3 files changed** (+10 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+1 -1) 📝 `crates/horizon-client/src/game/creaking.rs` (+4 -3) 📝 `crates/horizon-client/src/game/explosion.rs` (+5 -0) </details> ### 📄 Description ## What and why When an explosion destroyed a creaking heart, its creaking just crumbled away. In vanilla it twitches and dies, the same as when a player breaks the heart. The explosion now runs the same creaking death (twitch sound, tearing down, health 0) on the heart's protector before the heart is destroyed. The experience a natural heart gives when an explosion caused by a player breaks it is not added: Horizon does not record who lit a TNT, so the explosion has no player owner to check. ## Vanilla reference - `CreakingHeartBlock.onExplosionHit` - `CreakingHeartBlockEntity.removeProtector` (with a damage source) - `Explosion.BlockInteraction.shouldAffectBlocklikeEntities` (only destroying explosions reach this code) ## 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:16:13 +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#4307
No description provided.