[GH-ISSUE #5772] Cannot attack mobs through slabs / trapdoors (breaks mob farms) #1810

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

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

Version: Nightly 2026-10-31 · aa27eca · OS: not given (copied from the report)

What I did:

  1. Stood in front of a mob farm where mobs are contained behind a bottom slab or trapdoor leaving a 0.5-block slit.
  2. Aimed crosshair directly at the mobs' hitboxes through the gap.
  3. Left-clicked with a sword to attack them.

What happened:
The sword swings, but mobs take zero damage, don't flash red, and no attack registers. In 'crates/horizon-client/src/game.rs', 'attack()' calls 'before_block(distance)' with 'pick_unfiltered()', which treats the slab/trapdoor as a solid wall blocking the attack because 'block_dist < mob_dist'.

What I expected:
Like vanilla Minecraft, mobs should take damage when struck through partial block gaps (slabs, trapdoors).

Does it happen every time?:
Yes.

Horizon version:
Nightly 2026-10-31 · aa27eca

OS, CPU, GPU:
OS: CachyOS Linux x86_64
CPU: 12th Gen Intel Core i5-1235U
GPU: Intel Iris Xe Graphics

Reported on Discord by Muad'Dib in #horizon-bugs · Discord thread
Tags: gameplay

Attachments (Discord links expire after a while; the thread keeps them)

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 (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5772 **Version:** Nightly 2026-10-31 · aa27eca · **OS:** not given <sub>(copied from the report)</sub> > What I did: > 1. Stood in front of a mob farm where mobs are contained behind a bottom slab or trapdoor leaving a 0.5-block slit. > 2. Aimed crosshair directly at the mobs' hitboxes through the gap. > 3. Left-clicked with a sword to attack them. > > What happened: > The sword swings, but mobs take zero damage, don't flash red, and no attack registers. In 'crates/horizon-client/src/game.rs', 'attack()' calls 'before_block(distance)' with 'pick_unfiltered()', which treats the slab/trapdoor as a solid wall blocking the attack because 'block_dist &lt; mob_dist'. > > What I expected: > Like vanilla Minecraft, mobs should take damage when struck through partial block gaps (slabs, trapdoors). > > Does it happen every time?: > Yes. > > Horizon version: > Nightly 2026-10-31 · aa27eca > > OS, CPU, GPU: > OS: CachyOS Linux x86_64 > CPU: 12th Gen Intel Core i5-1235U > GPU: Intel Iris Xe Graphics Reported on Discord by **Muad'Dib** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1566341020067565728) Tags: gameplay **Attachments** (Discord links expire after a while; the thread keeps them) - [bug_report_mob_farm.md](https://cdn.discordapp.com/attachments/1566341020067565728/1566341020247916635/bug_report_mob_farm.md?ex=6ae83040&is=6ae6dec0&hm=af498be4beefa0da9f248b6323f6b69c3cb0bbe00e483e6d890b502f49c7b276&) <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:49:50 +07:00
Author
Owner

@kira-horizon[bot] commented on GitHub (Nov 1, 2026):

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

<!-- gh-comment-id:6554672744 --> @kira-horizon[bot] commented on GitHub (Nov 1, 2026): Claimed by `Dementia` on Discord (GitHub: `repositorykreml1n`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #5772). <!-- 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#1810
No description provided.