[GH-ISSUE #1282] [server-thread] A charged crossbow does not fire on the next use #323

Closed
opened 2026-11-02 15:38:12 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @rdbtCVS on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1282

Tested commit: 83fa14e51b89eab728b8e233e9e5d95296bef93d (Linux/Vulkan, survival). Affects --server-thread singleplayer.

Reproduce

  1. Start with one ordinary crossbow and 16 arrows, facing a wall about 8 blocks away.
  2. Hold use for 2.2 seconds, release, then wait 10 ticks.
  3. Click use to fire and wait another 10 ticks. A second click also fails.
  4. Repeat from the same save with explicit --no-server-thread.

Expected: the crossbow loads an arrow, then fires on the next use.
Actual: threaded mode loads on the server but does not fire; the client also lacks the loaded component.

Evidence: three fresh paired runs. The wall keeps arrows inside tracking range. In threaded mode, authoritative data get entity @s SelectedItem reports charged_projectiles both before and after the firing click; execute if entity @e[type=arrow] fails both times. Old mode changes to crossbow damage 1 and the entity query finds one arrow lodged in the wall. Both start with 16 arrows and use one to load. Regular bows fire in both modes.

Hypothesis: missing client use/release tracking for crossbows leaves the server in its item-use state. Loaded-component synchronization also needs checking.

Acceptance: charge/release/fire works in both modes, with one projectile, synchronized loaded state and correct ammunition/durability.

Searched crossbow issues; #276 concerns offhand fireworks, a different case.

Originally created by @rdbtCVS on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1282 Tested commit: `83fa14e51b89eab728b8e233e9e5d95296bef93d` (Linux/Vulkan, survival). Affects `--server-thread` singleplayer. **Reproduce** 1. Start with one ordinary crossbow and 16 arrows, facing a wall about 8 blocks away. 2. Hold use for 2.2 seconds, release, then wait 10 ticks. 3. Click use to fire and wait another 10 ticks. A second click also fails. 4. Repeat from the same save with explicit `--no-server-thread`. **Expected:** the crossbow loads an arrow, then fires on the next use. **Actual:** threaded mode loads on the server but does not fire; the client also lacks the loaded component. **Evidence:** three fresh paired runs. The wall keeps arrows inside tracking range. In threaded mode, authoritative `data get entity @s SelectedItem` reports `charged_projectiles` both before and after the firing click; `execute if entity @e[type=arrow]` fails both times. Old mode changes to crossbow damage 1 and the entity query finds one arrow lodged in the wall. Both start with 16 arrows and use one to load. Regular bows fire in both modes. **Hypothesis:** missing client use/release tracking for crossbows leaves the server in its item-use state. Loaded-component synchronization also needs checking. **Acceptance:** charge/release/fire works in both modes, with one projectile, synchronized loaded state and correct ammunition/durability. Searched crossbow issues; #276 concerns offhand fireworks, a different case.
Author
Owner

@rdbtCVS commented on GitHub (Oct 26, 2026):

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. Merged PR #1476 restores charge/release/fire behavior and synchronizes charged_projectiles. Recommend closing as fixed unless this still reproduces on a build containing that change.

<!-- gh-comment-id:6418384508 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. Merged PR #1476 restores charge/release/fire behavior and synchronizes charged_projectiles. Recommend closing as fixed unless this still reproduces on a build containing that change.
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#323
No description provided.