[PR #642] [MERGED] Light both redstone ore variants when mining starts #2691

Closed
opened 2026-11-02 15:58:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/642
Author: @Online5277
Created: 10/17/2026
Status: ✅ Merged
Merged: 10/17/2026
Merged by: @ludovic111

Base: main ← Head: fix/redstone-ore-attack


📝 Commits (1)

  • cf7ed86 Light redstone ore when mining begins

📊 Changes

4 files changed (+48 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+7 -0)
📝 crates/horizon-client/src/game/hand.rs (+4 -1)
📝 crates/horizon-world/src/level/interact.rs (+16 -0)
📝 crates/horizon-world/src/level/tests.rs (+21 -0)

📄 Description

Redstone ore and deepslate redstone ore now enter their lit state when survival mining starts. The mining paths previously never invoked a block attack behavior, leaving the ore unlit.

Add the RedStoneOreBlock.attack state change through the shared level behavior API, then call it when a new mining target begins in both the local hand and the legacy/server-guest mining path. The normal block-update path handles the state change; the existing random-tick behavior turns it off again. The state change was checked against the pinned 26.3 implementation.

Fixes #625.

Validation: the in-memory level regression passed with prepared behavior data, covering both ore variants, repeated attacks, random-tick reset, and an unaffected stone block. Client and world all-target Clippy with warnings denied, formatting and diff checks passed.

Draft for in-game testing: begin mining each ore variant by hand in a dark room, stop before breaking it, and verify it emits light and later returns to normal. Repeat in an integrated world and as a server guest. No client was launched; light propagation and rendering remain manual checks. Redstone-specific ambient/interaction particles and right-click/stepping activation are outside this mining fix.


🔄 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/642 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/17/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/redstone-ore-attack` --- ### 📝 Commits (1) - [`cf7ed86`](https://github.com/horizon-rust/horizon/commit/cf7ed868b90cdd64c7434708ca8a9d9fa5585644) Light redstone ore when mining begins ### 📊 Changes **4 files changed** (+48 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+7 -0) 📝 `crates/horizon-client/src/game/hand.rs` (+4 -1) 📝 `crates/horizon-world/src/level/interact.rs` (+16 -0) 📝 `crates/horizon-world/src/level/tests.rs` (+21 -0) </details> ### 📄 Description Redstone ore and deepslate redstone ore now enter their lit state when survival mining starts. The mining paths previously never invoked a block attack behavior, leaving the ore unlit. Add the RedStoneOreBlock.attack state change through the shared level behavior API, then call it when a new mining target begins in both the local hand and the legacy/server-guest mining path. The normal block-update path handles the state change; the existing random-tick behavior turns it off again. The state change was checked against the pinned 26.3 implementation. Fixes #625. Validation: the in-memory level regression passed with prepared behavior data, covering both ore variants, repeated attacks, random-tick reset, and an unaffected stone block. Client and world all-target Clippy with warnings denied, formatting and diff checks passed. Draft for in-game testing: begin mining each ore variant by hand in a dark room, stop before breaking it, and verify it emits light and later returns to normal. Repeat in an integrated world and as a server guest. No client was launched; light propagation and rendering remain manual checks. Redstone-specific ambient/interaction particles and right-click/stepping activation are outside this mining fix. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:58:18 +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#2691
No description provided.