mojira.dev
MCPE-23544

Endermen attack without being looked at

When I'm near a endermen it will attack me when I don't look at it or hit it. This was a annoying because when I'm about to die the endermen will come out of no where and kill me.

Linked issues

BDS-10735 enderman unprovoked attacks in the end Resolved BDS-13640 Angry endermen Resolved MCPE-25677 Endermen attacking Resolved MCPE-29321 endermen violence Resolved MCPE-36160 enderman attacking without looking at them Resolved

Attachments

Comments 39

Mcpe iPad - same issue. Endermen attack without even looking at them first.

[Mojang] Mega_Spud (Jay)

Cleaning up old tickets: This ticket has not been updated recently (1 year+) so is being closed as Cannot Reproduce. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Feedback – 📖 Game Wiki

Reopening based on recent duplicate reports. This issue has actually been reported many times over the years but has not had good follow-up.

@leo190: don’t see how Endermen attacking spontaneously is related to the player taking damage from the ender dragon and ender chests being deleted deep under the end fountain.

29 more comments

Affects 1.21.40.20 Preview and 1.21.23 Release.

I believe the cause of this bug is described by MCPE-188134: enderman get triggered the instant the player's crosshair points at their head. This means endermen can be angered by random sweeping movements of the player's crosshair. There is no time allowed to confirm that the player is actually looking at the enderman. This behavior is not in parity with Java Edition. In Java enderman need to be looked at continuously for 5 ticks to become angry. According to MC-258644 the 5 tick requirement is intended behavior.

I have attached test worlds for Java and Bedrock that can be used to reproduce the disparity/Bedrock bug:

[media][media]


In each world there is an enderman trapped in place by a repeating command block. The button on the command block next to the enderman can be used to kill it and summon a new one. Command blocks in the ground make the player look at the enderman's face and then quickly look away when the player steps on the pressure plate. The number of ticks that the player looks at the enderman's face is set in the Bedrock world by the delay setting of the chain command block, and in the Java world by a repeater.

Steps to reproduce

  1. Open in the test worlds.

  2. Set the desired duration for looking at the enderman in the chain command block (Bedrock) or on the repeater (Java)

  3. Step on the pressure plate.

  4. Repeat steps (2) - (3) with delays of 0 and 1 game tick (Bedrock) and 1, 2, and 3 redstone ticks (Java).

Expected results

Enderman have to be looked continuously for the same number of ticks in Bedrock as in Java.

Observed results

Enderman have to be looked at continuously for only 1 game tick in Bedrock, compared with 5 ticks ( >2 and <=3 redstone repeater ticks) in Java.

[media]

I took a look at my clip I attached to this report on April 4th, 2024, and was able to notice that at the start of the clip, my crosshair did indeed seem to briefly cross contact with the head of an enderman in the very far distance (at least 20 blocks away). This would make GoldenHelmet’s theory about enderman instantly becoming aggravated by a player’s crosshair briefly pointing at their head correct. The way to fix this would indeed be to increase the amount of ticks a player has to look at an enderman for in order for the endermen to become aggravated, as it seems like it can sometimes be instantaneous, and they can become aggravated almost instantly after the player’s crosshair comes in contact with their head. 

THANK YOU MOJANG!

This seems like a perfect opportunity to fix MCPE-43530 now that the aggro delay has been added.

mario

(Unassigned)

426470, 1331949

Confirmed

Multiple

Java-parity

1.17.10, 1.16.200.55 Beta, 1.16.100.58 Beta, 1.16.0.64 Beta, 1.1.4.51, ..., 1.20.51 Hotfix, 1.20.70.20 Preview, 1.20.73 Hotfix, 1.21.44 Hotfix, 1.21.51 Hotfix

1.21.60.25 Preview, 1.21.60

Retrieved