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
is duplicated by 5
relates to 4
Attachments
Comments 13
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
Confirmed for 1.13.1.