[PR #2468] [MERGED] Swing the main arm of left-handed mobs #4344

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

📋 Pull Request Information

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

Base: main ← Head: fix/left-handed-swing


📝 Commits (1)

  • b92a53e Swing and pose the main arm of a left-handed mob

📊 Changes

4 files changed (+67 additions, -36 deletions)

View changed files

📝 crates/horizon-client/examples/probe/entity_anim_fixture.rs (+1 -0)
📝 crates/horizon-client/src/mobs/anim.rs (+27 -12)
📝 crates/horizon-client/src/mobs/illager.rs (+8 -3)
📝 crates/horizon-client/src/mobs/piglin.rs (+31 -21)

📄 Description

What and why

Left-handed mobs (5% of zombies, skeletons, piglins and so on, with the flag already synced) held their item in the left hand but swung the right arm. The swing, the hanging weapon pose and the piglin poses all assumed the right arm.

Now the main arm decides:

  • The generic swing mirrors the body turn and moves the left arm for a left-handed mob.
  • swingWeaponDown (piglins and illagers with a weapon) swings the main arm down and lets the other hang.
  • Piglins hold a weapon high, hold and charge a crossbow, and admire an item with the arms vanilla uses for their main arm.

An explicit swinging arm (other players on a server) still wins over the main arm.

Vanilla reference

  • HumanoidModel.setupAttackAnimation
  • AnimationUtils.swingWeaponDown
  • PiglinModel.setupAnim, holdWeaponHigh
  • IllagerModel.setupAnim

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/2468 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/left-handed-swing` --- ### 📝 Commits (1) - [`b92a53e`](https://github.com/horizon-rust/horizon/commit/b92a53e47cbed57d92d0c6a38f605dd8cec12ec9) Swing and pose the main arm of a left-handed mob ### 📊 Changes **4 files changed** (+67 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/entity_anim_fixture.rs` (+1 -0) 📝 `crates/horizon-client/src/mobs/anim.rs` (+27 -12) 📝 `crates/horizon-client/src/mobs/illager.rs` (+8 -3) 📝 `crates/horizon-client/src/mobs/piglin.rs` (+31 -21) </details> ### 📄 Description ## What and why Left-handed mobs (5% of zombies, skeletons, piglins and so on, with the flag already synced) held their item in the left hand but swung the right arm. The swing, the hanging weapon pose and the piglin poses all assumed the right arm. Now the main arm decides: - The generic swing mirrors the body turn and moves the left arm for a left-handed mob. - `swingWeaponDown` (piglins and illagers with a weapon) swings the main arm down and lets the other hang. - Piglins hold a weapon high, hold and charge a crossbow, and admire an item with the arms vanilla uses for their main arm. An explicit swinging arm (other players on a server) still wins over the main arm. ## Vanilla reference - `HumanoidModel.setupAttackAnimation` - `AnimationUtils.swingWeaponDown` - `PiglinModel.setupAnim`, `holdWeaponHigh` - `IllagerModel.setupAnim` ## 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:16:29 +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#4344
No description provided.