The bug:
The spear’s hitbox inflation is noticeably smaller on Bedrock than on Java. On Bedrock, the spear can hit mobs about 0.125 blocks away from their original hitboxes, while on Java, the spear attacks mobs up to 0.25 blocks away from their original hitboxes.
To reproduce (on both editions):
Obtain a spear
Find a flat area and build a 1 by 2 confine to trap a mob, then spawn a vindicator inside it using a spawn egg
Go into survival
Use the following command to teleport almost facing the vindicator relative to it:
/execute at @n[type=minecraft:vindicator] run tp @p ~-3.5 ~ ~ -80 0Attack with the spear. Notice that the vindicator is affected by the attack on Java, but not on Bedrock, even though you’re attacking from the exact same position. (Note that you’re close enough on both editions to attack the vindicator’s hitbox directly by being 3.5 blocks away, so this isn’t an instance of MCPE-229475)
Linked issues
relates to 1
Attachments
Comments 2
This is a pre-existing parity difference. All player pointer interactions in Bedrock Edition have a 0.125 width: see MCPE-172630. If weapons have diverse hit widths in Java then this parity difference with the spear is just part of the larger combat systems disparity.
I can reproduce in Android