mojira.dev
MC-2947

Ghasts and Witches Do Not Aim Properly

I looked in the source code for witches as I was making a mod and discovered that the witches used the motionX/motionZ of the entity they are attacking to throw potions where the entity will be, and not where it is.

However, upon testing their aim in-game while moving sideways, I found their potions would never hit me. Upon further testing (printing the motionX/motionZ out when throwing a potion), I found that when the witch checks for motionX/motionZ, it is 0 most of the time, even when the target (the player in this case) is moving sideways.

In other words, witches ain't throwin' nothing.

Linked issues

Comments 9

Included skeletons.

As of 13w03a skeletons aim was majorly improved.

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

what about the wither boss?

worse than that, even when you don't move, Ghast miss you all the time. They aim above your head ! While I'm writing this, minecraft is running with a Ghast shooting at me in the overworld ... I don't ear any hurting sound.
5 minutes later : I'm surronded by fire with full health ...
(I'm playing 13w16a but it's there for ages.)

Is this still a concern in the current Minecraft version 1.6.4 / Launcher version 1.2.5 ? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

No response in 2 months, closing issue.

I just tested this, and it has been fixed. When I was standing in front of a witch in 1.7.10 (almost touching it), the witch threw potions over my head about 50% of the time. When I did the same in 14w29b, it hit me 100% of the time. With ghasts, they are also 100% accurate, aiming for the head. The ghasts now cannot the see the player unless it's at eye level, which is a bug, but unrelated to this.

You can tell it was fixed also because comparing to 1.7.10, if you stood right in front of any mob (passive or hostile) that is two blocks tall, they wouldn't look at your eye level, but slightly above it. In the 1.8 snapshots, they look directly at you. I can successfully say that this has been fixed.

John Locke

(Unassigned)

Unconfirmed

AI, ghast, targeting, witch

Minecraft 1.4.2

Minecraft 14w29b

Retrieved