[PR #2961] [MERGED] Hurt entities with falling stalactites and play landing sounds #4717

Closed
opened 2026-11-03 05:07:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/falling-stalactites


📝 Commits (1)

  • 60c5d9f Apply falling stalactite damage and landing sounds

📊 Changes

9 files changed (+93 additions, -21 deletions)

View changed files

📝 crates/horizon-client/src/falling_block.rs (+5 -1)
📝 crates/horizon-client/src/game.rs (+19 -6)
📝 crates/horizon-client/src/game/creatures.rs (+1 -0)
📝 crates/horizon-client/src/game/falling_damage.rs (+39 -4)
📝 crates/horizon-client/src/game/lan.rs (+4 -1)
📝 crates/horizon-client/src/mobs.rs (+5 -2)
📝 crates/horizon-world/src/level/falling.rs (+12 -4)
📝 crates/horizon-world/src/level/mod.rs (+6 -1)
📝 crates/horizon-world/src/level/tick.rs (+2 -2)

📄 Description

What and why

A stalactite that fell on a mob or player did no damage of its own and made no sound when it broke.

  • The falling tip now hurts entities it lands on. The damage per block fallen is the stalactite's length plus one, never less than 6, as in vanilla. It uses the falling_stalactite damage type, so a helmet reduces it.
  • A stalactite or sulfur spike that breaks on landing, or drops as an item, plays its landing sound for nearby players, including LAN guests.

Vanilla reference

  • SpeleothemBlock.java:203-245: spawnFallingStalactite and the tip's damage per distance.
  • FallingBlockEntity.java:187-246: the damage on landing and the falling_stalactite damage source.
  • LevelEventHandler.java:225-227,258-260: level events 1045 and 1052, their sounds and pitch.
  • damages_helmet.json: the damage type tag for helmet protection.

Self-check

clippy and fmt pass for horizon-client. Not run in game.


🔄 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/2961 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/falling-stalactites` --- ### 📝 Commits (1) - [`60c5d9f`](https://github.com/horizon-rust/horizon/commit/60c5d9fefd9ae8b97123b86e493e08610aaea90d) Apply falling stalactite damage and landing sounds ### 📊 Changes **9 files changed** (+93 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/falling_block.rs` (+5 -1) 📝 `crates/horizon-client/src/game.rs` (+19 -6) 📝 `crates/horizon-client/src/game/creatures.rs` (+1 -0) 📝 `crates/horizon-client/src/game/falling_damage.rs` (+39 -4) 📝 `crates/horizon-client/src/game/lan.rs` (+4 -1) 📝 `crates/horizon-client/src/mobs.rs` (+5 -2) 📝 `crates/horizon-world/src/level/falling.rs` (+12 -4) 📝 `crates/horizon-world/src/level/mod.rs` (+6 -1) 📝 `crates/horizon-world/src/level/tick.rs` (+2 -2) </details> ### 📄 Description ## What and why A stalactite that fell on a mob or player did no damage of its own and made no sound when it broke. - The falling tip now hurts entities it lands on. The damage per block fallen is the stalactite's length plus one, never less than 6, as in vanilla. It uses the `falling_stalactite` damage type, so a helmet reduces it. - A stalactite or sulfur spike that breaks on landing, or drops as an item, plays its landing sound for nearby players, including LAN guests. ## Vanilla reference - `SpeleothemBlock.java:203-245`: `spawnFallingStalactite` and the tip's damage per distance. - `FallingBlockEntity.java:187-246`: the damage on landing and the `falling_stalactite` damage source. - `LevelEventHandler.java:225-227,258-260`: level events 1045 and 1052, their sounds and pitch. - `damages_helmet.json`: the damage type tag for helmet protection. ## Self-check clippy and fmt pass for horizon-client. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:25 +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#4717
No description provided.