mojira.dev
MC-170933

Inconsistent reach distance (block vs. water bucket)

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

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.

Resolving this as a duplicate of MC-260889 since MC-260889 has an assigned Mojang Priority.

printfn

(Unassigned)

Confirmed

Player

1.15.2, 20w06a, 20w11a, 20w18a, 20w45a, 20w46a, 20w48a, 20w49a, 1.16.5, 1.20.1

Retrieved