Mojira Archive
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.

Fixed

John Locke

2012-11-14, 11:14 AM

2017-05-08, 09:34 PM

2014-07-21, 08:55 AM

4

3

Unconfirmed

AI, ghast, targeting, witch

Minecraft 1.4.2

Minecraft 14w29b