[PR #2953] [MERGED] Render beacon beams, Christmas chests and glow frame maps like vanilla #4705

Closed
opened 2026-11-03 05:07:21 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2953
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/beacon-christmas-chest-glow-frame


📝 Commits (4)

  • 7d99d23 Fix beacon beam distance and cull at render distance
  • 52f3dcc Use christmas chest textures on 24-26 December
  • 5b41d9e Light glow frame maps at 15728850
  • e0bb088 item frames: glow frame map light is block coordinate 210, as vanilla's 15728850

📊 Changes

4 files changed (+40 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/block_entity_render.rs (+24 -0)
📝 crates/horizon-client/src/game/beacon.rs (+9 -1)
📝 crates/horizon-client/src/game/frames.rs (+3 -1)
📝 crates/horizon-client/src/game/item_draw.rs (+4 -4)

📄 Description

What and why

  • Beacon beam: the distance used x and y instead of the horizontal distance, so the beam width was wrong for beacons to the north or south. Beams beyond render distance x 16 are now skipped, as vanilla does. A beacon with Levels 0 still draws no beam: vanilla's getBeamSections returns an empty list then, so that check stays.
  • Christmas chests: on 24-26 December, normal and trapped chests now use the christmas textures. Copper and ender chests keep theirs. The date is the local one, read once when the renderer is first used, as vanilla does when it builds the chest renderer.
  • minecraft:local_time now uses the system time zone instead of UTC. The Christmas chest item switches on the local date.
  • A map in a glow item frame is drawn at light 15728850 (sky 15, block 13), not full bright.

Vanilla reference

  • Beacon beam: block/entity/BeaconBlockEntity.java:293-295 (getBeamSections is empty at Levels 0), blockentity/BeaconRenderer.java:46-48 (horizontal distance / 96 scale), :51-68 (submit, one beam per section), :197 (shouldRender, render distance x 16 via getViewDistance)
  • Christmas chests: blockentity/ChestRenderer.java:51-56 (xmasTextures set in the constructor), :106-118 (getChestMaterial), util/SpecialDates.java:24-25 (isExtendedChristmas)
  • Local time: client/renderer/item/properties/select/LocalTime.java:55-60 (calendar in the system zone unless time_zone is set), assets/minecraft/items/chest.json
  • Glow frame map light: entity/ItemFrameRenderer.java:89 (getLightCoords(isGlowFrame, 15728850, ...)), :31 (BRIGHT_MAP_LIGHT_ADJUSTMENT)

Self-check

clippy and fmt pass for horizon-client. Not run in game.


🔄 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/2953 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/beacon-christmas-chest-glow-frame` --- ### 📝 Commits (4) - [`7d99d23`](https://github.com/horizon-rust/horizon/commit/7d99d23aefd60d78b9bbdbdf4e80f8557b89b9cb) Fix beacon beam distance and cull at render distance - [`52f3dcc`](https://github.com/horizon-rust/horizon/commit/52f3dcc5ef265269668ad29eaf9566eba4093b94) Use christmas chest textures on 24-26 December - [`5b41d9e`](https://github.com/horizon-rust/horizon/commit/5b41d9ebf339c4b99d7da28b3cfb2a2245b075d3) Light glow frame maps at 15728850 - [`e0bb088`](https://github.com/horizon-rust/horizon/commit/e0bb0881e845f5df7bf7afd5823acda5b7cce95f) item frames: glow frame map light is block coordinate 210, as vanilla's 15728850 ### 📊 Changes **4 files changed** (+40 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/block_entity_render.rs` (+24 -0) 📝 `crates/horizon-client/src/game/beacon.rs` (+9 -1) 📝 `crates/horizon-client/src/game/frames.rs` (+3 -1) 📝 `crates/horizon-client/src/game/item_draw.rs` (+4 -4) </details> ### 📄 Description ## What and why - Beacon beam: the distance used x and y instead of the horizontal distance, so the beam width was wrong for beacons to the north or south. Beams beyond render distance x 16 are now skipped, as vanilla does. A beacon with Levels 0 still draws no beam: vanilla's `getBeamSections` returns an empty list then, so that check stays. - Christmas chests: on 24-26 December, normal and trapped chests now use the christmas textures. Copper and ender chests keep theirs. The date is the local one, read once when the renderer is first used, as vanilla does when it builds the chest renderer. - `minecraft:local_time` now uses the system time zone instead of UTC. The Christmas chest item switches on the local date. - A map in a glow item frame is drawn at light 15728850 (sky 15, block 13), not full bright. ## Vanilla reference - Beacon beam: `block/entity/BeaconBlockEntity.java:293-295` (`getBeamSections` is empty at Levels 0), `blockentity/BeaconRenderer.java:46-48` (horizontal distance / 96 scale), `:51-68` (submit, one beam per section), `:197` (`shouldRender`, render distance x 16 via `getViewDistance`) - Christmas chests: `blockentity/ChestRenderer.java:51-56` (`xmasTextures` set in the constructor), `:106-118` (`getChestMaterial`), `util/SpecialDates.java:24-25` (`isExtendedChristmas`) - Local time: `client/renderer/item/properties/select/LocalTime.java:55-60` (calendar in the system zone unless `time_zone` is set), `assets/minecraft/items/chest.json` - Glow frame map light: `entity/ItemFrameRenderer.java:89` (`getLightCoords(isGlowFrame, 15728850, ...)`), `:31` (`BRIGHT_MAP_LIGHT_ADJUSTMENT`) ## Self-check clippy and fmt pass for horizon-client. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:21 +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#4705
No description provided.