Players can use water buckets and lava buckets on blocks that are out of reach
The Bug:
Players can use water buckets and lava buckets on blocks that are out of reach.
Steps to Reproduce:
- Dig a hole that's three blocks deep.
- Obtain any block and a water bucket and switch to survival mode.
- Attempt to place the block at the very bottom of the hole and notice how you're unable to.
- Attempt to place the water bucket at the very bottom of the hole and notice how you're able to.
- Take note as to whether or not players can use water buckets and lava buckets on blocks that are out of reach.
Observed Behavior:
The reach distance of water/lava buckets is larger than the entity reach distance.
Expected Behavior:
The reach distance between blocks and water/lava buckets would be the same.
Code Analysis:
Code analysis by haykam can be found below.
The BucketItem#use method (Yarn mappings) calls the Item.raycast method, which raycasts a distance of 5 blocks, rather than the correct entity reach distance.
Linked Issues
is duplicated by5
relates to5
Created Issue:
Ability to waterlog and dewaterlog leaves out of your reach
In this version, and potentially other versions, you are able to waterlog and dewaterlog leaves that are a block or so out of your reach. In the picture I attached down below, I am able to waterlog the leave block I am staring at. That's all there is to this bug.
Environment
Just vanilla 1.19
Just vanilla 1.19
Ability to waterlog and dewaterlogleaves out of your reachAbility to waterlog and dewaterlog blocks out of your reach
relates to
is duplicated by
is duplicated by
relates to
In this version, and potentially other versions, you are able to waterlog and dewaterlog leaves that are a block or so out of your reach. In the picture I attached down below, I am able to waterlog the leave block I am staring at. That's all there is to this bug.
The Bug:
Players can use water buckets and lava buckets on blocks that are out of reach.
Steps to Reproduce:
- Dig a hole that's three blocks deep.
- Obtain any block and a water bucket and switch to survival mode.
- Attempt to place the block at the very bottom of the hole and notice how you're unable to.
- Attempt to place the water bucket at the very bottom of the hole and notice how you're able to.
- Take note as to whether or not players can use water buckets and lava buckets on blocks that are out of reach.
Observed Behavior:
The reach distance of water/lava buckets is larger than the entity reach distance.
Expected Behavior:
The reach distance between blocks and water/lava buckets would be the same.
Code Analysis:
Code analysis by haykam can be found below.
The BucketItem#use method (Yarn mappings) calls the Item.raycast method, which raycasts a distance of 5 blocks, rather than the correct entity reach distance.
Player can waterlog and dewaterlog blocksout of reachPlayers can use water buckets and lava buckets on blocks that are out of reach
relates to
is duplicated by
This issue and MC-260889 are caused by the same code path. The BucketItem#use method (Yarn mappings) calls the Item.raycast method, which raycasts a distance of 5 blocks, rather than the correct entity reach distance.
Thank you for your report!
We're actually already tracking this issue in MC-260889, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as Fixed. The fix for this issue will be included in a future release of the game.
Please be sure to use the search feature before creating a ticket to see if the issue has already been reported.
Quick Links:
📗 Tracker Guidelines | 🛠 Community Support | 📧 Mojang Support | 🔑 Account Support | ✍️ Feedback Discord
Can confirm.
Edit: From my testing, it appears that this bug was introduced in 24w03a, presumably with the fix of MC-260889.
Affected heights include 126, 129, 132, 135, 138, 141, 144, 166, 169, 182, 185, 195, 205, 215, 225, 232, 239, 242, 249, 256, 263, 270, 277, 284.
The water bucket clutch part does depend on height; if you fall from 126 blocks or the other tested heights and use tick rate 1, you'll find that the block selection lines to place the water are not even shown before you die. It does not matter whether you are within 1 block of the ground or not; you cannot place a water bucket no matter what. I think the part where you die before you hit the ground happened even before 24w03a (although I'm not certain that this happens at any height), but that might have been blocked by MC-260889 because you could place the water slightly outside of your range, masking the real problem. In the current version you cannot place the water before you pass the 1 block mark (at the specific heights), making it impossible to save the fall.
And sneaking does affect the bug, I don't know why though.

This does not apply only to leaves, this affects stairs too. I'm assuming this applies to every waterloggable block.
I didn't test every block, I just stumbled across it while making cobble farm. I think you are right about it appling to all waterloggable blocks though.
I've updated this ticket to mention the core problem here.
Why would buckets use entity reach? You're placing the bucket on a block so why would it target entities/have 3 block reach?