[PR #5356] [MERGED] Shift wildflowers and pink petals on a golem*s antenna #6234

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5356
Author: @MSedgeMC
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: fix/flowerbed-display-shift


📝 Commits (2)

📊 Changes

1 file changed (+54 additions, -10 deletions)

View changed files

📝 crates/horizon-client/src/game/mob_blocks.rs (+54 -10)

📄 Description

BuiltInBlockModels.createFlowerBedModel gives wildflowers and pink petals a display-context variant that shifts them by (0.25, 0, 0.25), used in the copper golem's antenna context with the unshifted model as fallback. Horizon's antenna matrix had no such term, so those two blocks sat a quarter block off on a golem's antenna.

The antenna matrix moved into a small free function so the coordinate test can reach it, and the shift is applied innermost — the order vanilla's mulPose produces, and the unit cube's Z-180 turn flips it, so a pre-multiplied shift would put it wrong.

Proven: the existing carried_block_vertices_match_vanilla_block_coordinates test was extended and passes on a build box, checking six sample points through the antenna matrix with and without the shift; a pre-multiplied shift fails it.

Not proven: the pixels. Also stated in the report: the expected coordinates were derived from the bytecode expression and cross-checked with an independent matrix product, because the 26.3 classes are Java 25 and only JDK 21 is installed here, so they could not be executed to capture the numbers.


🔄 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/5356 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/flowerbed-display-shift` --- ### 📝 Commits (2) - [`0e9f0e8`](https://github.com/horizon-rust/horizon/commit/0e9f0e8f95e67c86df1b4d8c8f86a8f67a3c2a00) Shift wildflowers and pink petals on a golem*s antenna - [`27f3b8a`](https://github.com/horizon-rust/horizon/commit/27f3b8aac675ac9fc84617c65345d87ecad50c9c) Merge main into #5356 ### 📊 Changes **1 file changed** (+54 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/mob_blocks.rs` (+54 -10) </details> ### 📄 Description BuiltInBlockModels.createFlowerBedModel gives **wildflowers** and **pink petals** a display-context variant that shifts them by (0.25, 0, 0.25), used in the copper golem's antenna context with the unshifted model as fallback. Horizon's antenna matrix had no such term, so those two blocks sat a quarter block off on a golem's antenna. The antenna matrix moved into a small free function so the coordinate test can reach it, and the shift is applied innermost — the order vanilla's mulPose produces, and the unit cube's Z-180 turn flips it, so a pre-multiplied shift would put it wrong. **Proven:** the existing carried_block_vertices_match_vanilla_block_coordinates test was extended and passes on a build box, checking six sample points through the antenna matrix with and without the shift; a pre-multiplied shift fails it. **Not proven:** the pixels. Also stated in the report: the expected coordinates were derived from the bytecode expression and cross-checked with an independent matrix product, because the 26.3 classes are Java 25 and only JDK 21 is installed here, so they could not be executed to capture the numbers. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:16:10 +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#6234
No description provided.