Mojira Archive
MC-88209

Endermen make stare sound even when provoked by attacking

The bug

Enderman will make the stare sound whenever they turn hostile, even if the player didn't stare at it. This includes when they get attacked by other mobs (such as Iron Golems), or turn hostile towards Endermites.

How to reproduce

  1. Find an enderman (or spawn one and wait at least 20 seconds; otherwise it won't make the sound due to MC-115567)
  2. Hit it while looking at its feet
    → It should make the stare sound while attacking

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The stare sound is used in general when the enderman starts screaming (method net.minecraft.entity.monster.EntityEnderman.playEndermanSound()), even if you did not stare at it.