[GH-ISSUE #1350] [server-thread] Aiming at a cow breaks bow release and food cancellation #378

Closed
opened 2026-11-02 15:38:37 +07:00 by bsakaguchi · 0 comments
Owner

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

Tested 83fa14e51b89eab728b8e233e9e5d95296bef93d, fresh equivalent worlds with explicit mode flags.

Reproduce

  1. In survival, summon a cow three blocks ahead: /summon cow ~ ~ ~3 {NoAI:1b}.
  2. Hold a golden apple in the main hand, aim at the cow, press use for five ticks, then release. Wait two seconds.
  3. Alternatively, hold a bow with arrows, aim at the cow, draw for 25 ticks and release.
  4. Repeat while aiming at the sky, and with --no-server-thread.

Expected: The short apple press cancels; releasing the drawn bow shoots.

Actual in --server-thread: The apple is consumed after release and grants effects. The bow never draws locally or fires; all six arrows remain. Both actions work correctly when aiming at the sky. Old mode cancels the short apple press and shoots the bow while aiming at the cow. Holding the apple for the full duration succeeds in both modes.

Evidence: .local/singleplayer-audit/items-d/{item-at-mob-short,bow-at-mob}-{old,threaded}/result.json. Crosshair queries confirm the cow is targeted; authoritative item counts confirm consumption/no shot. Driver: tools/singleplayer_items_audit.py, matching case names.

Hypothesis: remote_use_entity treats any non-player mob interaction as consuming the click, bypassing local item-use state and its release packet.

Related: #1293 concerns offhand food; this occurs with main-hand items only when targeting a mob. Closed #696/#848 are broader LAN reports.

Acceptance: Main-hand item use and release work while aiming at a non-interacting cow, including food cancellation and bow shooting.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1350 Tested `83fa14e51b89eab728b8e233e9e5d95296bef93d`, fresh equivalent worlds with explicit mode flags. **Reproduce** 1. In survival, summon a cow three blocks ahead: `/summon cow ~ ~ ~3 {NoAI:1b}`. 2. Hold a golden apple in the main hand, aim at the cow, press use for five ticks, then release. Wait two seconds. 3. Alternatively, hold a bow with arrows, aim at the cow, draw for 25 ticks and release. 4. Repeat while aiming at the sky, and with `--no-server-thread`. **Expected:** The short apple press cancels; releasing the drawn bow shoots. **Actual in --server-thread:** The apple is consumed after release and grants effects. The bow never draws locally or fires; all six arrows remain. Both actions work correctly when aiming at the sky. Old mode cancels the short apple press and shoots the bow while aiming at the cow. Holding the apple for the full duration succeeds in both modes. Evidence: `.local/singleplayer-audit/items-d/{item-at-mob-short,bow-at-mob}-{old,threaded}/result.json`. Crosshair queries confirm the cow is targeted; authoritative item counts confirm consumption/no shot. Driver: `tools/singleplayer_items_audit.py`, matching case names. **Hypothesis:** `remote_use_entity` treats any non-player mob interaction as consuming the click, bypassing local item-use state and its release packet. Related: #1293 concerns offhand food; this occurs with main-hand items only when targeting a mob. Closed #696/#848 are broader LAN reports. **Acceptance:** Main-hand item use and release work while aiming at a non-interacting cow, including food cancellation and bow shooting.
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#378
No description provided.