mojira.dev
MC-88491

Projectiles hit the player, snowman and witch who threw them at certain angles or close to the entities

The bug

Projectiles hit the player, snowman and witch who threw them at certain angles or close to the entities.

The projectile would hit players, snowman and witch the head, causing unable to successfully emission.

β€’ Notes:

  • It can only be achieved in the face certain angle.

  • Approaching entities comparatively easy to reproduce.

  • This also happens in snowman.

  • Also affect the ride a entity.

β€’ Projectiles types:

  • Snowballs

  • Egg

  • Ender Pearl

  • Arrow (It will hurt the players themselves.)

  • Splash Potions

  • Lingering Potions

How to reproduce

This can be consistently reproduced by flying into the air in creative and then running these 2 commands (while not moving), and then shooting an egg:

/summon zombie ~ ~ ~-1 {NoAI:1b}
/tp @p ~ ~ ~ 102.0 68.5

The exact range of movement varies, but this is one consistent angle.

Examples

Here are a few examples in videos:

Code analysis

Code analysis by @unknown can be found in this comment.

Note: @unknown pointed out that the thrower field has to be synchronized for the client to make sure the projectile behaves correctly client-side as well.

Linked issues

MC-84846 Thrown chicken egg spawns chick above player's head Resolved MC-86600 throwing eggs with sumthing in other hand like seeds Resolved MC-89041 SnowMan Shoots Itself Resolved MC-89332 Snowballs sometimes hit the player that threw them Resolved MC-93785 snowman hitting itself with snowballs Resolved

Attachments

Comments 73

Tan Chin Cheern

Snowballs, Eggs and Ender Pearls cannot hurt mobs. They can only push them back.

Survival mode also has this issue.
Moreover, throwing out items will not recycle.

Version 1.8.8 does not have this issue.

[Mod] redstonehelper

Reopened.

Thank you

63 more comments

The two provided commands did not cause the bug to occur in 1.16 Pre-release 1

I seem to be difficult to reproduce the issue.
So the reporter’s position is given to @unknown.

Indeed, after many many tests, it seems that the bug is fixed since 1.16 Pre-Release 3.
It's very difficult to reproduce the bug...

Ender pearl thrown straight down while falling does not teleport you to the ground. Tried to reproduce and it seemed to not land in me either, it just disappeared not even resetting fall damage from that height. 1.16.2 bedrock playing on

Xbox one

This is not a MCBE bug report, this is the MCJava project. Ender pearls thrown downwards while falling work as expected in MCJava.

[Mod] Les3awe

ZeNico13

(Unassigned)

Confirmed

Low

Collision, Entities, Hitboxes, Projectiles

entity, hit, player, snow_golem, throwing

Minecraft 15w36d, Minecraft 15w37a, Minecraft 15w38a, Minecraft 15w38b, Minecraft 15w39a, ..., 20w18a, 20w19a, 20w20a, 20w20b, 20w21a

1.16 Pre-release 4

Retrieved