mojira.dev
MC-121706

Skeletons and illusioners aren't looking up / down at their target while strafing

The bug

When a skeleton targets someone from a height, they just keep looking forward instead of up at their target.

Example

[media]

The fix

Note: The following is based on a decompiled version of MC 1.15.2

The problem is located at net.minecraft.entity.ai.goal.RangedBowAttackGoal.java within the updateTask() function.

The problem can be fixed by doing what's in the fixed code image below, the highlighted text in the image reads: 

this.entity.getLookController().setLookPositionWithEntity(livingentity, 30.0F, 30.0F);
[media]

[media]

Linked issues

Attachments

Comments 13

Confirmed for 1.13.1.

Confirmed for 1.16.1.

Jumong D. Isla

They should fix the bow AI goal in general because there are a lot of bugs involving it.

One of the most notable ones are this and skeletons sliding on the floor after losing their target while strafing

Can confirm in 20w48a.

Can confirm in 21w03a.

3 more comments

Can confirm in 1.18.2.

Can confirm in 1.19.2.

Still an issue in Minecraft 1.20 Pre2

Confirmed for 1.20.1, it;s so old I almost thought my memory played tricks on me..

I like to request ownership since activity seems to be low.

Greg Milson

Mr_Quasi

(Unassigned)

Confirmed

Gameplay

Normal

Mob behaviour

illusion_illager, skeleton, strafing

Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, ..., 1.21.4, 1.21.5 Release Candidate 1, 1.21.5, 1.21.6, 1.21.7

Retrieved