Endermen become passive when teleporting randomly during day while being aggressive
The bug
When an enderman is aggressive and starts teleporting randomly at day it becomes passive and still teleports randomly during night.
How to reproduce
- Set the time to night
- Build a two block high tower and stand on it
- Spawn an enderman next to you
- Switch to survival mode and look at the enderman
- Set the time to day
- Wait until the enderman stops being aggressive
→
When you look at the enderman it will not become aggressive anymore
Code analysis
Based on 1.12 decompiled using MCP 9.40 PRE 1
It looks like the problem is that the field net.minecraft.entity.ai.EntityAINearestAttackableTarget.targetEntity is not reset when net.minecraft.entity.EntityLiving.attackTarget is null. This is the case if it is day and an enderman tried to attack a player for 30 seconds. However, changing this might have unexpected side effects.
Linked Issues
is duplicated by4
relates to5
Created Issue:
Enderman become passive when teleporting randomly during day while being aggressive
The bug
When an Enderman is aggressive and starts teleporting randomly at day he becomes passive and still teleports randomly during night.
How to reproduce
- Set the time to night
- Build a two block high tower and stand on it
- Spawn an Enderman next to you
- Switch to Survival mode and look at the Enderman
- Set the time to day
- Wait until the Enderman stops being aggressive
When you look at the Enderman he will not become aggressive anymore
relates to
The bug
When an Enderman is aggressive and starts teleporting randomly at day he becomes passive and still teleports randomly during night.
How to reproduce
- Set the time to night
- Build a two block high tower and stand on it
- Spawn an Enderman next to you
- Switch to Survival mode and look at the Enderman
- Set the time to day
- Wait until the Enderman stops being aggressive
→ When you look at the Enderman he will not become aggressive anymoreCode analysis
Based on 1.12 decompiled using MCP 9.40 PRE 1
It looks like the problem is that the field net.minecraft.entity.ai.EntityAINearestAttackableTarget.targetEntity is not reset when net.minecraft.entity.EntityLiving.attackTarget is null. This is the case if it is day and an enderman tried to attack a player for 30 seconds. However, changing this might have unexpected side effects.
is duplicated by
I noticed affected endermen continue to show no interest in the player even if the player damages them.
relates to
The bug
When an
Enderman is aggressive and starts teleporting randomly at dayhebecomes passive and still teleports randomly during night.How to reproduce
- Set the time to night
- Build a two block high tower and stand on it
- Spawn an
Enderman next to you- Switch to
Survival mode and look at theEnderman- Set the time to day
- Wait until the
Enderman stops being aggressive→When you look at theEndermanhewill not become aggressive anymoreCode analysis
Based on 1.12 decompiled using MCP 9.40 PRE 1
It looks like the problem is that the field net.minecraft.entity.ai.EntityAINearestAttackableTarget.targetEntity is not reset when net.minecraft.entity.EntityLiving.attackTarget is null. This is the case if it is day and an enderman tried to attack a player for 30 seconds. However, changing this might have unexpected side effects.
The bug
When an enderman is aggressive and starts teleporting randomly at day it becomes passive and still teleports randomly during night.
How to reproduce
- Set the time to night
- Build a two block high tower and stand on it
- Spawn an enderman next to you
- Switch to survival mode and look at the enderman
- Set the time to day
- Wait until the enderman stops being aggressive
→When you look at the enderman it will not become aggressive anymore
Code analysis
Based on 1.12 decompiled using MCP 9.40 PRE 1
It looks like the problem is that the field net.minecraft.entity.ai.EntityAINearestAttackableTarget.targetEntity is not reset when net.minecraft.entity.EntityLiving.attackTarget is null. This is the case if it is day and an enderman tried to attack a player for 30 seconds. However, changing this might have unexpected side effects.
is duplicated by
is duplicated by
relates to
Still in 1.14.4
relates to
is duplicated by
Enderman become passive when teleporting randomly during day while being aggressiveEndermen become passive when teleporting randomly during day while being aggressive
Probably a dupe of MC-94730
@Jason Unknown, does MC-94730 describe the bug you are experiencing?
@[Helper] gaspoweredpick, does MC-94730 describe the bug you are experiencing?
Does MC-94730 describe the bug you are experiencing?
Most likely the same issue as MC-94730; both seem to describe Endermen teleporting around randomly and no longer attacking the player when you anger it in Survival then pacify it (either by switching to Creative or by daylight).
This bug still happens in survival mode, if an aggressive Enderman turns passive. Should I make a new bug report about that? It's related to MC-94730
When an Enderman turns passive (which seems to be due to MC-94730) they keep following the player, like in the now-fixed bug MC-96946
How to reproduce:
- Follow the
MC-94730's instructions - Walk away from the Enderman
- → Notice the Enderman continues to follow the player by teleporting
Code analysis: (taken from MC-96946 and changed a bit, probably accurate here too)
> net.minecraft.entity.monster.EntityEnderman.AIFindPlayer is not reset when the Enderman stops being hostile
Thank you for your report!
We're actually already tracking this issue in MC-94730, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Dupe of either
MC-7980orMC-19138MC-19138is about visuals only,MC-7980is a collection of minor issues of which most have been fixed. We'll leave this one open.Confirmed for 1.9
Still in 1.9.1-pre1
Still in 16w15b
I think this is what i have been experiencing. 16w21b
Confirmed in 1.11.
Confirmed in 1.12.2. Another way to reproduce this is to anger some Endermen in Survival then switch to Creative. The Endermen will now teleport to follow you around, and don't become hostile if you switch to Survival and attack them again. Video demonstration
Confirm that there is a problem with 1.12.1
Enderman is no longer targeted at the player,There is also one reason
My world prohibits cheating,But this situation still exists
Survival mode,Attacked for some time,It will suddenly ignore me
According to observation, the time is not fixed
But my weapons with flame enchant
Enderman constantly instant transfer
So I could not observe the exact reason
But it is also speculated that this is caused by the flame attached
But when you quit and then rejoined,Will once again be allowed to be enraged
Confirmed in 18w30b
I wish they just rewrote the entire Enderman AI. It's so broken at this point.
Still in 1.13.1-pre1
Not resetting EntityAINearestAttackableTarget.targetEntity can also leak previously targeted entities in memory, don't know if that should be opened in a separate issue when it's essentialy the same bug, but it has some additional (and more severe) implications than just causing issues with Endermen.
@Daniel Chýlek, I don't think a separate report is necessary for this. However feel free to create a report once the bug described in this report was fixed, but the entity is still leaked.
Confirmed in 1.14.4
Confirmed in 19w34a
Also it seems like after becoming passive it has the same behavior as it had in
MC-96946, but in Survival modeConfirmed for 19w35a
Still in 19w39a
Still in 1.15.1
I would also add that they seem to be permanently passive towards the player, no matter how many times you hit them