[PR #2490] [MERGED] Light redstone ore when an entity stands on it #4360

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

📋 Pull Request Information

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

Base: main ← Head: fix/2485-redstone-ore-step


📝 Commits (2)

  • 9958fe0 Light redstone ore when an entity stands on it
  • d8b8246 Light redstone ore under dropped items too

📊 Changes

1 file changed (+36 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/sculk.rs (+36 -0)

📄 Description

What and why

Standing on or jumping onto redstone ore did not light it. Only mining it (attack_block) did. In vanilla, RedStoneOreBlock.stepOn lights the ore for any entity that is not stepping carefully, every tick it stands on the ore.

The per-tick player and mob phase now looks at the block 0.2 below each entity that is on the ground. If it is redstone ore or deepslate redstone ore, the existing ore lighting is used (it only changes an unlit ore). Sneaking players are skipped, as are spectators. This phase runs for the window player and for every server player, so it covers the server thread and LAN guests too.

Right-clicking the ore (useItemOn) is not part of this change.

Fixes #2485.

Vanilla reference

  • RedStoneOreBlock.stepOn and interact
  • Entity.applyEffectsFromBlocks (calls stepOn while on the ground, using getOnPosLegacy)
  • Entity.isSteppingCarefully

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/2490 **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/2485-redstone-ore-step` --- ### 📝 Commits (2) - [`9958fe0`](https://github.com/horizon-rust/horizon/commit/9958fe0e49b49e0a933c65d32309e1d362f18674) Light redstone ore when an entity stands on it - [`d8b8246`](https://github.com/horizon-rust/horizon/commit/d8b8246622bbbbb0cb1479dfff79536cf7318587) Light redstone ore under dropped items too ### 📊 Changes **1 file changed** (+36 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/sculk.rs` (+36 -0) </details> ### 📄 Description ## What and why Standing on or jumping onto redstone ore did not light it. Only mining it (`attack_block`) did. In vanilla, `RedStoneOreBlock.stepOn` lights the ore for any entity that is not stepping carefully, every tick it stands on the ore. The per-tick player and mob phase now looks at the block 0.2 below each entity that is on the ground. If it is redstone ore or deepslate redstone ore, the existing ore lighting is used (it only changes an unlit ore). Sneaking players are skipped, as are spectators. This phase runs for the window player and for every server player, so it covers the server thread and LAN guests too. Right-clicking the ore (`useItemOn`) is not part of this change. Fixes #2485. ## Vanilla reference - `RedStoneOreBlock.stepOn` and `interact` - `Entity.applyEffectsFromBlocks` (calls `stepOn` while on the ground, using `getOnPosLegacy`) - `Entity.isSteppingCarefully` ## 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:37 +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#4360
No description provided.