This issue started back in 1.19.41 and is still present in 1.20.1
Β
Zoglins can attack from many blocks away
Linked issues
relates to 1
Attachments
Comments 4
The vanilla behavior pack zoglin.json entity data contains the following commented line in behavior.mele_attack
"reach_multiplier": 2.15, // Matches Java reach which is 3.0 blocks (collision_box:width * reach_multiplier)
However, the comment is inaccurate. Adult zoglins in Bedrock Edition have a collision width of 1.4, so their attach reach is ( 1.4 x 2.15 ) = *3.01*
. Importantly, that makes their reach longer than the playerβs reach, which is 3.0. As a result players who are backing away from an approaching zoglin cannot hit the zoglin before the zoglin hits them, which is what the video attached by the reporter shows. This differs from Java Edition, where not only is the zoglin reach apparently only 3.0, but players can also use weapons that extend their attach reach farther than 3.0.
I believe the root cause of the disparity here is that Java gives zoglins a collision width of 1.3965 (according to the wiki), while Bedrock uses 1.4. Although, I will add that if the result is not rounded then you actually need to use a collision width of 1.395 to get a final attach reach <= 3.0.
In
[media]the zoglin is being tp'd to 5.0 -60 5.0 on every tick. It is able to hit the player just before the player center reaches exactly 3 blocks away.
[media]
In Java it seems the player center has to get < 3 blocks away.
This could be tested more exactly by teleporting the player.
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
If I use an Always Active Repeating Command Block with the following command to keep a Zoglin in place, I can observe that in both Bedrock Edition and Java Edition, Zoglin attacks the player from the distance of 2 and a half blocks. Is this the case for you as well?
I found out, however, that in Bedrock Edition, Zoglin moves faster than the player, which is not the case in Java Edition. This might be contributing to the impression that Zoglin can attack from an overly large distance, and would be worth reporting as a separate issue.
This ticket will automatically reopen when you reply.
Quick Links:
π Issue Guidelines β π¬ Mojang Support β π Project Summary β π§ Suggestions β π Minecraft Wiki