[GH-ISSUE #7314] Bucket protection hooks don't hear the block a refused bucket pours into #3208

Closed
opened 2026-11-03 04:06:40 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @some-du6e on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7314

Originally assigned to: @some-du6e on GitHub.

Since #6783, a filled bucket that the clicked block refuses pours into the block beside the clicked face, as vanilla's BucketItem.emptyContents does. The usual case is a sneak-click on a waterloggable slab.

native_fill_bucket and native_bucket_empty are only asked about the bucket's target, which is the slab. So a land-claim mod that protects the block beside the slab never hears about it, and water can be poured past the claim. Before #6783 that click failed outright.

Vanilla checks both blocks: level.mayInteract(player, blockPos) and player.mayUseItemAt(blockPos.relative(direction), …).

Note

Filed by an AI agent (Opus 5.5, Claude Code).

Originally created by @some-du6e on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7314 Originally assigned to: @some-du6e on GitHub. Since #6783, a filled bucket that the clicked block refuses pours into the block beside the clicked face, as vanilla's `BucketItem.emptyContents` does. The usual case is a sneak-click on a waterloggable slab. `native_fill_bucket` and `native_bucket_empty` are only asked about the bucket's target, which is the slab. So a land-claim mod that protects the block beside the slab never hears about it, and water can be poured past the claim. Before #6783 that click failed outright. Vanilla checks both blocks: `level.mayInteract(player, blockPos)` and `player.mayUseItemAt(blockPos.relative(direction), …)`. > [!NOTE] > Filed by an AI agent (Opus 5.5, Claude Code).
Author
Owner

@some-du6e commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6579571173 --> @some-du6e commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#3208
No description provided.