[GH-ISSUE #4557] Attribute Attack Speed doesn't change attack speed #1377

Closed
opened 2026-11-02 15:46:28 +07:00 by bsakaguchi · 11 comments
Owner

Originally created by @kira-horizon[bot] on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4557

Version: nightly-2026-10-30-ba6344a · OS: Windows 11 , i5-14400f , 5060 ti 8gb (copied from the report)

What I did:
did /attribute tawheedismycreed minecraft:attack_speed base set 99
then I swung my sword, played a bit around with my spear
What happened: Attack speed didn't change at all
What I expected: Instant attacks
Does it happen every time? Yes
Horizon version: nightly-2026-10-30-ba6344a
OS, CPU, GPU:
Windows 11 , i5-14400f , 5060 ti 8gb

Reported on Discord by faris in #horizon-bugs · Discord thread
Tags: gameplay

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @kira-horizon[bot] on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4557 **Version:** nightly-2026-10-30-ba6344a · **OS:** Windows 11 , i5-14400f , 5060 ti 8gb <sub>(copied from the report)</sub> > What I did: > did /attribute tawheedismycreed minecraft:attack_speed base set 99 > then I swung my sword, played a bit around with my spear > What happened: Attack speed didn't change at all > What I expected: Instant attacks > Does it happen every time? Yes > Horizon version: nightly-2026-10-30-ba6344a > OS, CPU, GPU: > Windows 11 , i5-14400f , 5060 ti 8gb Reported on Discord by **faris** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1565787867115159593) Tags: gameplay <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:46:28 +07:00
Author
Owner

@kira-horizon[bot] commented on GitHub (Oct 30, 2026):

faris added on Discord:

(no text)

<!-- gh-comment-id:6529943730 --> @kira-horizon[bot] commented on GitHub (Oct 30, 2026): **faris** added on Discord: > (no text) - [ddde2f7a-cd34-4e3d-9375-0a234bfafc04-render.mp4](https://cdn.discordapp.com/attachments/1565787867115159593/1565788119155089561/ddde2f7a-cd34-4e3d-9375-0a234bfafc04-render.mp4?ex=6ae62d52&is=6ae4dbd2&hm=a095956e178476de1d8f62f12f09bb67b0e1b506f0a326b9e7b2fe1b331701d4&) <!-- kira -->
Author
Owner

@DenisHumen commented on GitHub (Oct 30, 2026):

🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally.

/claim

<!-- gh-comment-id:6532242539 --> @DenisHumen commented on GitHub (Oct 30, 2026): 🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally. /claim
Author
Owner

@DenisHumen commented on GitHub (Oct 30, 2026):

🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally.

/unclaim

I couldn't confirm the cause without running the game, and I couldn't run it on this machine. What I checked:

  • main_hand_attack_speed (game/hand.rs) reads the base from the player's attribute map, so /attribute ... base set reaches both the server's attack strength and the client's indicator.
  • The client applies UpdateAttributes for its own player (remote.rs).

One difference from vanilla: main_hand_attack_speed adds only the held item's speed to the base. It ignores every other modifier on the instance (/attribute ... modifier add, equipment). Vanilla's getAttributeValue(ATTACK_SPEED) counts all of them. A repro in game should show which side doesn't change.

<!-- gh-comment-id:6532806996 --> @DenisHumen commented on GitHub (Oct 30, 2026): 🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally. /unclaim I couldn't confirm the cause without running the game, and I couldn't run it on this machine. What I checked: - `main_hand_attack_speed` (game/hand.rs) reads the base from the player's attribute map, so `/attribute ... base set` reaches both the server's attack strength and the client's indicator. - The client applies `UpdateAttributes` for its own player (remote.rs). One difference from vanilla: `main_hand_attack_speed` adds only the held item's speed to the base. It ignores every other modifier on the instance (`/attribute ... modifier add`, equipment). Vanilla's `getAttributeValue(ATTACK_SPEED)` counts all of them. A repro in game should show which side doesn't change.
Author
Owner

@WooCaash commented on GitHub (Oct 30, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6533832273 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: /claim
Author
Owner

@WooCaash commented on GitHub (Oct 30, 2026):

🤖 Agent: Likely a duplicate of #4091 — fixed in #4103 (ce91a02d, merged 2026-10-30). Reporter's nightly ba6344a does not contain that merge; current main does. Verifying whether the remaining server-thread path syncs /attribute … base set to the client HUD before closing.

<!-- gh-comment-id:6533925889 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: Likely a duplicate of #4091 — fixed in #4103 (`ce91a02d`, merged 2026-10-30). Reporter's nightly `ba6344a` does **not** contain that merge; current `main` does. Verifying whether the remaining server-thread path syncs `/attribute … base set` to the client HUD before closing.
Author
Owner

@WooCaash commented on GitHub (Oct 30, 2026):

🤖 Agent: Duplicate of #4091 — fixed by #4103 (Read the attack speed base from the player's attribute). Reporter's nightly ba6344a predates that merge; current main includes it. /unclaim

<!-- gh-comment-id:6533951811 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: Duplicate of #4091 — fixed by #4103 (`Read the attack speed base from the player's attribute`). Reporter's nightly `ba6344a` predates that merge; current `main` includes it. `/unclaim`
Author
Owner

@WooCaash commented on GitHub (Oct 30, 2026):

🤖 Agent: Duplicate of #4091 — already fixed by #4103 on main. Reporter's nightly ba6344a does not include that merge. Closing isn't available on this account; /unclaim so someone else can mark it duplicate if needed.

<!-- gh-comment-id:6533954787 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: Duplicate of #4091 — already fixed by #4103 on `main`. Reporter's nightly `ba6344a` does not include that merge. Closing isn't available on this account; `/unclaim` so someone else can mark it duplicate if needed.
Author
Owner

@WooCaash commented on GitHub (Oct 30, 2026):

/unclaim

<!-- gh-comment-id:6533955163 --> @WooCaash commented on GitHub (Oct 30, 2026): /unclaim
Author
Owner

@WooCaash commented on GitHub (Oct 30, 2026):

🤖 Agent: Duplicate of #4091 — already fixed in #4103 (main_hand_attack_speed uses the player's minecraft:attack_speed base). Reporter's nightly ba6344a predates that merge; next nightly after #4103 should match vanilla.

/unclaim

<!-- gh-comment-id:6534978290 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: Duplicate of #4091 — already fixed in #4103 (`main_hand_attack_speed` uses the player's `minecraft:attack_speed` base). Reporter's nightly `ba6344a` predates that merge; next nightly after #4103 should match vanilla. /unclaim
Author
Owner

@WooCaash commented on GitHub (Oct 30, 2026):

🤖 Agent: Closing as duplicate of #4091 (fixed by #4103).

<!-- gh-comment-id:6534978634 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: Closing as duplicate of #4091 (fixed by #4103).
Author
Owner

@kacpherek commented on GitHub (Oct 31, 2026):

Fixed by #4103 (same bug as #4091): the attack cooldown now uses the attack_speed attribute base. Please retry on the next nightly and reopen with the version and logs/latest.log if it still happens.

<!-- gh-comment-id:6541522766 --> @kacpherek commented on GitHub (Oct 31, 2026): Fixed by #4103 (same bug as #4091): the attack cooldown now uses the attack_speed attribute base. Please retry on the next nightly and reopen with the version and logs/latest.log if it still happens.
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#1377
No description provided.