[PR #2907] [CLOSED] Fix spear left-click attack and animate spear use #4683

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2907
Author: @vextalor-dev
Created: 10/27/2026
Status: ❌ Closed

Base: main ← Head: agent/spear-fixes-test


📝 Commits (6)

  • f5cff6a Fix spears, bell reactions, allay flight and burning zombies
  • 616719f Fix spear jab/charge in remote play and bell reactions for villagers
  • dec44c0 Fix bell server-tick borrow conflict
  • 1331da8 Animate spear use in first and third person
  • 61b2f2f Collapse nested spear use condition
  • 3c33b5f Fix spear left-click stab rejected on client

📊 Changes

17 files changed (+1238 additions, -30 deletions)

View changed files

➕ .github/workflows/agent-build.yml (+30 -0)
📝 crates/horizon-client/src/first_person.rs (+249 -0)
📝 crates/horizon-client/src/game.rs (+34 -4)
📝 crates/horizon-client/src/game/block_entity_anims.rs (+91 -7)
📝 crates/horizon-client/src/game/creatures.rs (+12 -0)
📝 crates/horizon-client/src/game/hand.rs (+6 -4)
📝 crates/horizon-client/src/game/item_draw.rs (+4 -0)
📝 crates/horizon-client/src/game/lan_actions.rs (+21 -0)
📝 crates/horizon-client/src/game/mob_blocks.rs (+23 -1)
📝 crates/horizon-client/src/game/perspective.rs (+9 -0)
📝 crates/horizon-client/src/game/remote.rs (+21 -0)
➕ crates/horizon-client/src/game/spear.rs (+592 -0)
📝 crates/horizon-client/src/mobs.rs (+11 -0)
📝 crates/horizon-client/src/mobs/anim.rs (+100 -0)
📝 crates/horizon-client/src/mobs/control.rs (+1 -3)
📝 crates/horizon-client/src/mobs/goals.rs (+24 -1)
📝 crates/horizon-client/src/mobs/villager_brain.rs (+10 -10)

📄 Description

Restore spear left-click STAB attacks that were being rejected client-side.

  • remote_start_attack used tolerance 0 for piercing attacks, but the server uses tolerance 5; with minimum_attack_charge=1.0 every stab was rejected locally so PlayerAction 8 was never sent (no damage, no thrust). Now matches the server tolerance.
  • Includes spear first/third-person use animations (raise, sway, thrust, hit feedback) and third-person stab item transform.

Commits:

  • 3c33b5f Fix spear left-click stab rejected on client
  • 61b2f2f Collapse nested spear use condition
  • 1331da8 Animate spear use in first and third person

🔄 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/2907 **Author:** [@vextalor-dev](https://github.com/vextalor-dev) **Created:** 10/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `agent/spear-fixes-test` --- ### 📝 Commits (6) - [`f5cff6a`](https://github.com/horizon-rust/horizon/commit/f5cff6a544dfe5e6e9228a3921390a7659d1bbd8) Fix spears, bell reactions, allay flight and burning zombies - [`616719f`](https://github.com/horizon-rust/horizon/commit/616719f693761b9a1423d983c30de82761ddeea7) Fix spear jab/charge in remote play and bell reactions for villagers - [`dec44c0`](https://github.com/horizon-rust/horizon/commit/dec44c058dc3534c0617c2a0210de2b1836d7561) Fix bell server-tick borrow conflict - [`1331da8`](https://github.com/horizon-rust/horizon/commit/1331da8e2bf368eab846fcd701dc946a71bb63df) Animate spear use in first and third person - [`61b2f2f`](https://github.com/horizon-rust/horizon/commit/61b2f2fca6e44244bf9c4760c2c45eb1415b1179) Collapse nested spear use condition - [`3c33b5f`](https://github.com/horizon-rust/horizon/commit/3c33b5fbbf76538117c4f68ef8951fe61c08bbad) Fix spear left-click stab rejected on client ### 📊 Changes **17 files changed** (+1238 additions, -30 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/agent-build.yml` (+30 -0) 📝 `crates/horizon-client/src/first_person.rs` (+249 -0) 📝 `crates/horizon-client/src/game.rs` (+34 -4) 📝 `crates/horizon-client/src/game/block_entity_anims.rs` (+91 -7) 📝 `crates/horizon-client/src/game/creatures.rs` (+12 -0) 📝 `crates/horizon-client/src/game/hand.rs` (+6 -4) 📝 `crates/horizon-client/src/game/item_draw.rs` (+4 -0) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+21 -0) 📝 `crates/horizon-client/src/game/mob_blocks.rs` (+23 -1) 📝 `crates/horizon-client/src/game/perspective.rs` (+9 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+21 -0) ➕ `crates/horizon-client/src/game/spear.rs` (+592 -0) 📝 `crates/horizon-client/src/mobs.rs` (+11 -0) 📝 `crates/horizon-client/src/mobs/anim.rs` (+100 -0) 📝 `crates/horizon-client/src/mobs/control.rs` (+1 -3) 📝 `crates/horizon-client/src/mobs/goals.rs` (+24 -1) 📝 `crates/horizon-client/src/mobs/villager_brain.rs` (+10 -10) </details> ### 📄 Description Restore spear left-click STAB attacks that were being rejected client-side. - remote_start_attack used tolerance 0 for piercing attacks, but the server uses tolerance 5; with minimum_attack_charge=1.0 every stab was rejected locally so PlayerAction 8 was never sent (no damage, no thrust). Now matches the server tolerance. - Includes spear first/third-person use animations (raise, sway, thrust, hit feedback) and third-person stab item transform. Commits: - 3c33b5f Fix spear left-click stab rejected on client - 61b2f2f Collapse nested spear use condition - 1331da8 Animate spear use in first and third person --- <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: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#4683
No description provided.