[PR #2656] [MERGED] Show other players gliding, swimming, spinning and holding a loaded crossbow #4512

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

📋 Pull Request Information

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

Base: main ← Head: fix/other-player-poses


📝 Commits (3)

  • 1821753 Show other players gliding, swimming, spinning and holding a loaded crossbow
  • 19de683 Merge remote-tracking branch 'origin/main' into HEAD
  • d980703 Merge main into fix/other-player-poses

📊 Changes

7 files changed (+122 additions, -8 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+12 -0)
📝 crates/horizon-client/src/game/lan.rs (+30 -0)
📝 crates/horizon-client/src/game/perspective.rs (+22 -7)
📝 crates/horizon-client/src/game/remote.rs (+18 -0)
📝 crates/horizon-client/src/game/remote_mob_data.rs (+18 -0)
📝 crates/horizon-client/src/lan/hub.rs (+1 -1)
📝 crates/horizon-client/src/mobs.rs (+21 -0)

📄 Description

What and why

Other players never showed these poses, in a LAN host's window drawing its guests or in a window drawing players on a server (the send side already existed):

  • Gliding: the elytra wings and the glide tilt. The glide flag (shared flag 0x80) was not read.
  • Swimming: the swim pose. The pose and the swim amount were only ticked for the local player.
  • Riptide spin: the spin and the spinning boxes. Living flag 4 was not read.
  • A loaded crossbow: held up. The "charged" state was only set for the local player. It now comes from the held stack's charged_projectiles (the guest's own stack on the host, SetEquipment on a client).

Other players also draw the elytra and the Riptide effect now, using what they wear. The glide count, wing angles and swim amount tick each tick for other players.

Vanilla reference

  • AvatarRenderer.setupRotations, getArmPose (crossbow hold), extractFlightData
  • LivingEntity.updateSwimAmount, isVisuallySwimming, isAutoSpinAttack, fallFlyTicks
  • WingsLayer, SpinAttackEffectLayer

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/2656 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/other-player-poses` --- ### 📝 Commits (3) - [`1821753`](https://github.com/horizon-rust/horizon/commit/18217532af91668d2be99db0fecac32a0d9bddd5) Show other players gliding, swimming, spinning and holding a loaded crossbow - [`19de683`](https://github.com/horizon-rust/horizon/commit/19de683b6616a27bae73323b129d139d9d1097b0) Merge remote-tracking branch 'origin/main' into HEAD - [`d980703`](https://github.com/horizon-rust/horizon/commit/d9807037862cd4def8f41ce624cf72ba91466228) Merge main into fix/other-player-poses ### 📊 Changes **7 files changed** (+122 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+12 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+30 -0) 📝 `crates/horizon-client/src/game/perspective.rs` (+22 -7) 📝 `crates/horizon-client/src/game/remote.rs` (+18 -0) 📝 `crates/horizon-client/src/game/remote_mob_data.rs` (+18 -0) 📝 `crates/horizon-client/src/lan/hub.rs` (+1 -1) 📝 `crates/horizon-client/src/mobs.rs` (+21 -0) </details> ### 📄 Description ## What and why Other players never showed these poses, in a LAN host's window drawing its guests or in a window drawing players on a server (the send side already existed): - Gliding: the elytra wings and the glide tilt. The glide flag (shared flag 0x80) was not read. - Swimming: the swim pose. The pose and the swim amount were only ticked for the local player. - Riptide spin: the spin and the spinning boxes. Living flag 4 was not read. - A loaded crossbow: held up. The "charged" state was only set for the local player. It now comes from the held stack's `charged_projectiles` (the guest's own stack on the host, SetEquipment on a client). Other players also draw the elytra and the Riptide effect now, using what they wear. The glide count, wing angles and swim amount tick each tick for other players. ## Vanilla reference - `AvatarRenderer.setupRotations`, `getArmPose` (crossbow hold), `extractFlightData` - `LivingEntity.updateSwimAmount`, `isVisuallySwimming`, `isAutoSpinAttack`, `fallFlyTicks` - `WingsLayer`, `SpinAttackEffectLayer` ## 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:17:42 +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#4512
No description provided.