[PR #2987] [MERGED] LAN guests and clients see tipped and spectral arrows, the ominous item spawner, and block, item and text displays #4738

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

📋 Pull Request Information

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

Base: main ← Head: fix/entity-physics-lan-parity


📝 Commits (7)

  • 2b2dc19 Show tipped and spectral arrows to guests and clients
  • 621473f Send the ominous item spawner to guests and draw its floating item
  • 3934833 Send text, block and item display data to clients
  • b910cdd Draw block and item display entities on clients
  • 1944dd4 Fix display light borrow and format
  • 5589047 Merge main into this branch
  • d3c6f0d Merge main into #2987 (lan_entities.rs: lan_display_data beside main's lan_entity_uuids)

📊 Changes

12 files changed (+606 additions, -30 deletions)

View changed files

📝 crates/horizon-client/src/arrows.rs (+3 -0)
📝 crates/horizon-client/src/game.rs (+1 -0)
📝 crates/horizon-client/src/game/creatures.rs (+9 -1)
📝 crates/horizon-client/src/game/lan_entities.rs (+97 -2)
📝 crates/horizon-client/src/game/ominous_item_spawner.rs (+30 -0)
📝 crates/horizon-client/src/game/persist.rs (+1 -1)
📝 crates/horizon-client/src/game/remote.rs (+1 -0)
📝 crates/horizon-client/src/game/remote_objects.rs (+34 -5)
📝 crates/horizon-client/src/game/remote_projectiles.rs (+63 -0)
📝 crates/horizon-client/src/game/text_displays.rs (+138 -19)
📝 crates/horizon-client/src/projectiles.rs (+32 -0)
📝 crates/horizon-client/src/text_display.rs (+197 -2)

📄 Description

What and why

  • A server sent every arrow as a plain one. A spectral arrow is now its own type and a tipped arrow carries its effect colour; the client draws arrow_spectral.png and the swirl and sparkle particles.
  • The ominous item spawner existed only on the server. A client now sees the item grow and turn.
  • Summoned displays reached clients as bare entities. The server now sends the Display entries (8 to 22) and each type's own (text, block state, item and context). A client draws block and item displays under the same billboard and transformation as text, with the brightness override or the light at the entity.

Vanilla reference

  • Arrow.java:24,72,76-92 (ID_EFFECT_COLOR, tick particles), SpectralArrow.java:34.
  • OminousItemSpawner.java:28,110 (DATA_ITEM).
  • Display.java:468-492 (DATA_BLOCK_STATE_ID and the other synched entries), DisplayRenderer.java:137 and :164 (block and item renderers).

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/2987 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/entity-physics-lan-parity` --- ### 📝 Commits (7) - [`2b2dc19`](https://github.com/horizon-rust/horizon/commit/2b2dc1929fe4a65a4db77a82900c69931147b36f) Show tipped and spectral arrows to guests and clients - [`621473f`](https://github.com/horizon-rust/horizon/commit/621473f60e054bd3b5de2b8ae5432cb8733d42f9) Send the ominous item spawner to guests and draw its floating item - [`3934833`](https://github.com/horizon-rust/horizon/commit/3934833369077e6517b2735892518bb82e1b5877) Send text, block and item display data to clients - [`b910cdd`](https://github.com/horizon-rust/horizon/commit/b910cdd257ad9cccbd0da600795cb20b00eecfeb) Draw block and item display entities on clients - [`1944dd4`](https://github.com/horizon-rust/horizon/commit/1944dd45e4a8b156433c651cf999f4ce09cb5e8a) Fix display light borrow and format - [`5589047`](https://github.com/horizon-rust/horizon/commit/558904775f69091c5bfaac537550aa414b262680) Merge main into this branch - [`d3c6f0d`](https://github.com/horizon-rust/horizon/commit/d3c6f0d93752fded9985ff2300f6b034f9ce92f9) Merge main into #2987 (lan_entities.rs: lan_display_data beside main's lan_entity_uuids) ### 📊 Changes **12 files changed** (+606 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/arrows.rs` (+3 -0) 📝 `crates/horizon-client/src/game.rs` (+1 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+9 -1) 📝 `crates/horizon-client/src/game/lan_entities.rs` (+97 -2) 📝 `crates/horizon-client/src/game/ominous_item_spawner.rs` (+30 -0) 📝 `crates/horizon-client/src/game/persist.rs` (+1 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+1 -0) 📝 `crates/horizon-client/src/game/remote_objects.rs` (+34 -5) 📝 `crates/horizon-client/src/game/remote_projectiles.rs` (+63 -0) 📝 `crates/horizon-client/src/game/text_displays.rs` (+138 -19) 📝 `crates/horizon-client/src/projectiles.rs` (+32 -0) 📝 `crates/horizon-client/src/text_display.rs` (+197 -2) </details> ### 📄 Description ## What and why - A server sent every arrow as a plain one. A spectral arrow is now its own type and a tipped arrow carries its effect colour; the client draws arrow_spectral.png and the swirl and sparkle particles. - The ominous item spawner existed only on the server. A client now sees the item grow and turn. - Summoned displays reached clients as bare entities. The server now sends the Display entries (8 to 22) and each type's own (text, block state, item and context). A client draws block and item displays under the same billboard and transformation as text, with the brightness override or the light at the entity. ## Vanilla reference - Arrow.java:24,72,76-92 (ID_EFFECT_COLOR, tick particles), SpectralArrow.java:34. - OminousItemSpawner.java:28,110 (DATA_ITEM). - Display.java:468-492 (DATA_BLOCK_STATE_ID and the other synched entries), DisplayRenderer.java:137 and :164 (block and item renderers). ## 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:34 +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#4738
No description provided.