In survival mode, using a water/lava bucket has a slightly longer reach distance than block placement. You can reproduce this by digging a 3 block deep hole and then trying to place a block/bucket inside (pointing at the bottom block, no sneaking). This works despite the bottom block not showing a black outline.
The attached screenshot shows this situation: right-clicking will place water despite the lack of a black outline, and despite the player not being able to place a block.
The same problem also occurs with a lava bucket.
Linked issues
duplicates 1
Attachments
Comments 3
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.
Relates to MC-92484