[GH-ISSUE #1532] [server-thread] Left-clicking an End crystal does not attack it #488

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

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

🤖 Filed by an AI assistant (Codex).

Tested 9dd9a836991e263b51d0cec0f690d40a0b09eecc, explicit --server-thread versus --no-server-thread, render distance 4, disposable survival worlds.

  1. Stand at .5 100 .5 on a solid y=99 floor; /setblock 2 99 0 obsidian and /give @s end_crystal 1.
  2. Right-click the obsidian to place the crystal.
  3. Aim at its body (around 2.5 101 .5) and left-click within normal melee reach. Wait 40 ticks.

Expected: The crystal detonates on the punch. At this close distance the unprotected player also dies; old singleplayer and native Minecraft Java 26.3 do this.

Actual: Threaded singleplayer leaves the crystal intact and the player at health 20. Two fresh matched pairs reproduce it. The placement succeeds and consumes the item in both modes. Switching to creative after placement also leaves the threaded crystal intact; old mode detonates it (both players remain at health 20).

Evidence: dragon-punch-a/crystal-punch-* and dragon-journey-d/crystal-punch-*: old crystal count 1→0/health 0, threaded 1→1/health 20. dragon-native-punch-a places via UseItemOn, sends the actual Attack packet, then logs the player explosion death and no remaining crystal. Creative repeat: dragon-journey-e/crystal-punch-creative-*. Files are under .local/singleplayer-audit/.

Hypothesis: remote_start_attack tests ordinary mobs, redirectable projectiles and remote_object_hit; that object's hit list omits End crystals, so no crystal attack reaches the server. An actual bow shot detonates the same fixture in both modes (dragon-arrow-a), isolating the melee path. Separate from #1531's command-selector omission.

Acceptance: A normal left-click on a nearby visible crystal detonates it in threaded survival and creative play; damage follows ordinary explosion rules.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1532 > 🤖 Filed by an AI assistant (Codex). Tested `9dd9a836991e263b51d0cec0f690d40a0b09eecc`, explicit `--server-thread` versus `--no-server-thread`, render distance 4, disposable survival worlds. 1. Stand at `.5 100 .5` on a solid y=99 floor; `/setblock 2 99 0 obsidian` and `/give @s end_crystal 1`. 2. Right-click the obsidian to place the crystal. 3. Aim at its body (around `2.5 101 .5`) and left-click within normal melee reach. Wait 40 ticks. **Expected:** The crystal detonates on the punch. At this close distance the unprotected player also dies; old singleplayer and native Minecraft Java 26.3 do this. **Actual:** Threaded singleplayer leaves the crystal intact and the player at health 20. Two fresh matched pairs reproduce it. The placement succeeds and consumes the item in both modes. Switching to creative after placement also leaves the threaded crystal intact; old mode detonates it (both players remain at health 20). **Evidence:** `dragon-punch-a/crystal-punch-*` and `dragon-journey-d/crystal-punch-*`: old crystal count 1→0/health 0, threaded 1→1/health 20. `dragon-native-punch-a` places via `UseItemOn`, sends the actual Attack packet, then logs the player explosion death and no remaining crystal. Creative repeat: `dragon-journey-e/crystal-punch-creative-*`. Files are under `.local/singleplayer-audit/`. **Hypothesis:** `remote_start_attack` tests ordinary mobs, redirectable projectiles and `remote_object_hit`; that object's hit list omits End crystals, so no crystal attack reaches the server. An actual bow shot detonates the same fixture in both modes (`dragon-arrow-a`), isolating the melee path. Separate from #1531's command-selector omission. **Acceptance:** A normal left-click on a nearby visible crystal detonates it in threaded survival and creative play; damage follows ordinary explosion rules.
Author
Owner

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

🤖 Agent: rdbt's OpenCode agent (GPT-6.1) is taking this task. I'll add End crystals to connected-client hit-testing, verify that attacks use the server's entity ID, and open a focused fix PR.

<!-- gh-comment-id:6391983956 --> @rdbtCVS commented on GitHub (Oct 25, 2026): 🤖 Agent: rdbt's OpenCode agent (GPT-6.1) is taking this task. I'll add End crystals to connected-client hit-testing, verify that attacks use the server's entity ID, and open a focused fix PR.
Author
Owner

@ludovic111 commented on GitHub (Oct 25, 2026):

Claimed by rdbt on Discord (GitHub: rdbtCVS), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #1532).

<!-- gh-comment-id:6393034509 --> @ludovic111 commented on GitHub (Oct 25, 2026): Claimed by `rdbt` on Discord (GitHub: `rdbtCVS`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #1532). <!-- kira:work -->
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#488
No description provided.