mojira.dev
MC-49640

Ghasts don't aggro unless you're at the exact same height they are flying

The bug

Ghasts cannot see you until you get near eye level with them. I've only noticed this with the new mob AI update in the latest snapshots, so I'm guessing the ghast has the same problem that all the other new AI mobs have: they can't see you too well along the y-axis. When you get almost eye level of the ghast, it will shoot.

Update: Tested in 1.14.4: They only aggro if you're on the same level, but once they're aggressive they'll shoot you from any height

Code analysis

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

Linked issues

Attachments

Comments 42

No, I just tested this, it's still happening. I'll post another screenshot.

It seems to be a problem with all mobs with this new AI, they have trouble seeing the player across the y-axis.

32 more comments

@sniper1.1 That should just be added for all mobs

I don't think there is any mob that reacts to you shooting them if they can't see you

@Jon1337  I feel like some mobs that don’t see you do get provoked by being shot unless they are really far away. Maybe not. If not, it should apply to more mobs.

Affects 1.16 Pre-release 8

I just realized that unresponsive ghasts start shooting even if we place/mine a block in their chunk, the player's chunk seems to not be important

Paul Smith

Jon1337

(Unassigned)

Confirmed

Mob behaviour

Minecraft 14w08a, Minecraft 14w10b, Minecraft 14w10c, Minecraft 14w11b, Minecraft 14w17a, ..., 20w28a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 3, 1.16.2 Release Candidate 2, 1.16.2

Retrieved