[PR #2351] [MERGED] Mined ice melts into water unless the tool has silk touch #4232

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

📋 Pull Request Information

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

Base: main ← Head: fix/ice-melts-when-mined


📝 Commits (1)

  • 872409e Mined ice melts into water unless the tool has silk touch

📊 Changes

3 files changed (+51 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+14 -0)
📝 crates/horizon-world/src/level/hooks.rs (+23 -0)
📝 crates/horizon-world/src/level/mod.rs (+14 -0)

📄 Description

What and why

Mining ice with a normal tool left air behind. In vanilla, ice breaks into water when it sits on a solid block or over a liquid, so you get a water source where the ice was. Horizon removed the block and stopped there.

Fix: after the drops, a player-mined ice block (and frosted ice) becomes a water source when the block below blocks motion or is a liquid. Silk touch keeps it as plain air, and nothing is placed in the nether. The same code runs for guests on the server thread, because it sits in the shared break path.

Vanilla reference

  • IceBlock.playerDestroy: runs after Block.playerDestroy, skipped when the tool has an enchantment in #minecraft:prevents_ice_melting (silk touch only), skipped when WATER_EVAPORATES is set (nether), otherwise sets water if the block below is in #minecraft:ice_melts_when_destroyed_above (#blocks_motion) or is a liquid.
  • ServerPlayerGameMode.destroyBlock: playerDestroy is not called in creative, so creative mining leaves air as before.

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/2351 **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/ice-melts-when-mined` --- ### 📝 Commits (1) - [`872409e`](https://github.com/horizon-rust/horizon/commit/872409ea57e005cecae3d272a547cc7e5fb15d3f) Mined ice melts into water unless the tool has silk touch ### 📊 Changes **3 files changed** (+51 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+14 -0) 📝 `crates/horizon-world/src/level/hooks.rs` (+23 -0) 📝 `crates/horizon-world/src/level/mod.rs` (+14 -0) </details> ### 📄 Description ## What and why Mining ice with a normal tool left air behind. In vanilla, ice breaks into water when it sits on a solid block or over a liquid, so you get a water source where the ice was. Horizon removed the block and stopped there. Fix: after the drops, a player-mined ice block (and frosted ice) becomes a water source when the block below blocks motion or is a liquid. Silk touch keeps it as plain air, and nothing is placed in the nether. The same code runs for guests on the server thread, because it sits in the shared break path. ## Vanilla reference - `IceBlock.playerDestroy`: runs after `Block.playerDestroy`, skipped when the tool has an enchantment in `#minecraft:prevents_ice_melting` (silk touch only), skipped when `WATER_EVAPORATES` is set (nether), otherwise sets water if the block below is in `#minecraft:ice_melts_when_destroyed_above` (`#blocks_motion`) or is a liquid. - `ServerPlayerGameMode.destroyBlock`: `playerDestroy` is not called in creative, so creative mining leaves air as before. ## 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:15:39 +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#4232
No description provided.