[PR #1062] [MERGED] Fix creative barrier block markers #3015

Closed
opened 2026-11-02 16:00:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1062
Author: @rdbtCVS
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @ludovic111

Base: main ← Head: t3/fix-issue-1057


📝 Commits (1)

  • cadc20c Fix creative barrier and light block marker particles

📊 Changes

6 files changed (+267 additions, -5 deletions)

View changed files

➕ crates/horizon-client/examples/marker_particles_probe.rs (+90 -0)
📝 crates/horizon-client/src/animate_tick.rs (+26 -0)
📝 crates/horizon-client/src/game.rs (+10 -4)
📝 crates/horizon-client/src/game/render_tick.rs (+11 -1)
➕ mods/horizon/src/test/java/dev/horizonlab/parity/VanillaMarkerParticlesOracle.java (+98 -0)
➕ tools/test_marker_particles_parity.py (+32 -0)

📄 Description

What and why

Fixes #1057.

Selecting a barrier in creative mode now reveals nearby placed barrier blocks through the existing block-marker particles. The ambient tick selects markers from the main hand, checks the placed block type, and emits stationary particles at block centers using the placed state's model texture. This also restores light-block markers, including the correct texture for each light level.

Vanilla reference

Follows the pinned 26.3 ClientLevel.getMarkerParticleTarget, animateTick, and doAnimateTick, inspected with tools/rea_vanilla.py. Reuses the existing BlockMarker particle provider.

tools/test_marker_particles_parity.py checks 432 combinations of game mode, main-hand item, offhand item and stack count against the shipped client. It also compares barrier-marker positions, zero velocities and subsequent random draws (16,872 matching output lines). Passed three consecutive runs.

Self-check

The self-check passed all 1,030 client tests, rustfmt, workspace clippy and the public-tree check. Its Python step encountered an environment-only path error because TMPDIR used a symlinked /home/bob path. Rerunning the complete Python suite with the canonical /srv/bob-data temporary path passed all 251 tests. The block below preserves the original self-check output.

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at defaa7cd2, 3 min 57 s)

Check Result
Scope ✅ 6 files, +267 −5
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 251 run, FAILED (errors=1) (20 s)
rustfmt ✅ (6 s)
clippy ✅ (2 s)
tests: horizon-client ✅ 1030 passed (3 min 29 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Visual validation

Confirmed in an isolated game session that a 5×3 grid of placed barriers displays red markers when a barrier is selected. Also verified light-block markers at levels 0, 4, 8, 12 and 15 display their corresponding textures. Before screenshot: #1057. Captured local after screenshots of both scenes.


🔄 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/1062 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/20/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `t3/fix-issue-1057` --- ### 📝 Commits (1) - [`cadc20c`](https://github.com/horizon-rust/horizon/commit/cadc20cd58aefa2d518943042e2ea0db457ab59f) Fix creative barrier and light block marker particles ### 📊 Changes **6 files changed** (+267 additions, -5 deletions) <details> <summary>View changed files</summary> ➕ `crates/horizon-client/examples/marker_particles_probe.rs` (+90 -0) 📝 `crates/horizon-client/src/animate_tick.rs` (+26 -0) 📝 `crates/horizon-client/src/game.rs` (+10 -4) 📝 `crates/horizon-client/src/game/render_tick.rs` (+11 -1) ➕ `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaMarkerParticlesOracle.java` (+98 -0) ➕ `tools/test_marker_particles_parity.py` (+32 -0) </details> ### 📄 Description ## What and why Fixes #1057. Selecting a barrier in creative mode now reveals nearby placed barrier blocks through the existing block-marker particles. The ambient tick selects markers from the main hand, checks the placed block type, and emits stationary particles at block centers using the placed state's model texture. This also restores light-block markers, including the correct texture for each light level. ## Vanilla reference Follows the pinned 26.3 `ClientLevel.getMarkerParticleTarget`, `animateTick`, and `doAnimateTick`, inspected with `tools/rea_vanilla.py`. Reuses the existing `BlockMarker` particle provider. `tools/test_marker_particles_parity.py` checks 432 combinations of game mode, main-hand item, offhand item and stack count against the shipped client. It also compares barrier-marker positions, zero velocities and subsequent random draws (16,872 matching output lines). Passed three consecutive runs. ## Self-check The self-check passed all 1,030 client tests, rustfmt, workspace clippy and the public-tree check. Its Python step encountered an environment-only path error because `TMPDIR` used a symlinked `/home/bob` path. Rerunning the complete Python suite with the canonical `/srv/bob-data` temporary path passed all 251 tests. The block below preserves the original self-check output. **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at defaa7cd2, 3 min 57 s) | Check | Result | | --- | --- | | Scope | ✅ 6 files, +267 −5 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 251 run, FAILED (errors=1) (20 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (2 s) | | tests: horizon-client | ✅ 1030 passed (3 min 29 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | ## Visual validation Confirmed in an isolated game session that a 5×3 grid of placed barriers displays red markers when a barrier is selected. Also verified light-block markers at levels 0, 4, 8, 12 and 15 display their corresponding textures. Before screenshot: #1057. Captured local after screenshots of both scenes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:00:49 +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#3015
No description provided.