-
Bug
-
Resolution: Fixed
-
1.15.2, 20w06a, 20w11a, 20w18a, 20w45a, 20w46a, 20w48a, 20w49a, 1.16.5, 1.19.3, 1.19.4 Release Candidate 2, 1.19.4, 1.20.1, 1.20.2
-
Confirmed
-
Items, Player
-
Normal
-
Platform
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.
- is duplicated by
-
MC-170933 Inconsistent reach distance (block vs. water bucket)
- Resolved
-
MC-204011 Buckets placing
- Resolved
-
MC-217876 fluids can be placed at blocks that are just to far away to target
- Resolved
-
MC-264283 Water/Lava placable outside of reach distance
- Resolved
-
MC-268770 Water and Lava Can Be Placed Farther Than You Can Reach.
- Resolved
- relates to
-
MC-108769 Spectator mode uses survival block and entity reach distance instead of creative
- Open
-
MC-92484 Placeable non-mob entity reach is shorter than block reach
- Reopened
-
MC-172289 Entity reach is shorter than block reach
- Reopened
-
MC-261682 Brushing can continue when block goes out of range
- Resolved
-
MC-267383 Can't place water and lava with extended attribute "block_interaction_range"
- Resolved