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.
2023-03-10, 01:42 PM
2024-08-16, 06:28 PM
2024-01-03, 09:58 AM
7
4