mojira.dev
MCPE-180859

Player reach is longer client-side

Previously, players could interact with blocks at up to 5 blocks from their position, and interact mobs up to 3 blocks away in survival or 5 blocks away in creative. In 1.20.80 these distances are about 5.3 and 3.3 blocks. It appears that the measurement is being taken from the edge of the player's collision box instead of the center. The extended reach occurs on the client thread but not the server thread, which causes glitchy behaviors like inventories closing as soon as the player opens them from the extended distance.

Steps to reproduce

  1. Make a row of 6 blocks at head height.

  2. Stand against the block at one end of your row and face into the row.

  3. Stand still and mine.

Expected result

You mine 5 blocks.

Observed result

You mine all 6 blocks.

Linked issues

Attachments

Comments 10

Can confirm in 1.21.0.22, the selection outline would not appear but you could still mine them.

If you interact with a block with GUI (such as containers, command blocks) at that distance the GUI will be closed instantly.

This change may be related to the recent change to mob melee attacks that replaced behavior.melee_attack with behavior.melee_box_attack throughout the vanilla behavior pack. The new melee_box_attack determines reach by adding a number to the mob bounding box. This actually decreased the attack range most mobs. For example,

Old zombie attack:

(A) reach_multiplier

2

(B) collision width

0.6

reach from center = A * B

1.2

reach from edge of bounding box = (A * B) - (B / 2)

0.9

New zombie attack:

(A) horizontal_reach

0.8

(B) collision width

0.6

reach from center = A + (B / 2)

1.1

reach from edge of bounding box = A

0.8

Can confirm on Windows & iOS 1.20.80 and 1.21.0.22 Preview. Here below a table of the changes and the devices. I also compared the reach in creative and survival, as that is different on touchscreen devices (iOS)

1.20.73:

Device

Reach Survival

Reach Creative

Windows

5 blocks

5 blocks

iOS

6 blocks

12 blocks

1.20.80+:

Device

Reach Survival

Reach Creative

Windows

6 blocks

6 blocks

iOS

7 blocks

12 blocks

The only thing that remained unchanged in 1.20.80+ is the reach in creative on touchscreen devices, which is per MCPE-10486 intended. The one in survival in survival for iOS/touchscreen devices is different between versions so that still needs to be fixed

A bug since 1.20.80.22. Relates to MCPE-181049 and MCPE-181051

This appears to be fixed in 1.21.10.20.

I performed some experiments using commands to precisely teleport myself and set my pitch to 0 and yaw to 180, looking straight at the negative z axis, and determined the change in reach down to the 4th decimal place. There was no increased reach when it came to interacting with entities (attacking, right clicking, both), and the increase in block reach was almost exactly half a block (0.501 blocks). (i used a villager in a minecart to determine the reach (in a minecart to lock the xyz coords)).

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response

Could you please provide a video of the issue?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Bug Tracker Guidelines – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues) – 📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response

Could you please provide a video of the issue?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Bug Tracker Guidelines – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues) – 📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

I've attached a video demonstrating the bug in 1.21.0.

GoldenHelmet

(Unassigned)

1252956

Confirmed

Multiple

1.21.0.22 Preview, 1.21.0.23 Preview, 1.20.80, 1.20.81 Hotfix, 1.21.1 Hotfix, 1.21.3 Hotfix (PS4), 1.21.2 Hotfix

1.21.10.20 Preview, 1.21.20

Retrieved