Endermen don't aggravate immediately after being stared at
The bug
Endermen do not aggravate immediately after being stared at; instead they have to be stared at for 5 game ticks.
How to reproduce
- Summon an enderman riding a minecart:
summon minecart ~ ~ ~ {Passengers: [{id: "minecraft:enderman"}]} - stand a few blocks away from the enderman, and move the cursor quickly from left to right, passing through the enderman's eyes.
- If the enderman doesn't aggravate, pass through its eyes again, and move a bit slower than the previous time each time.
- Notice that when then cursur moves quickly, the enderman doesn't aggravate; but when it passes slow enough, the enderman aggravates.
Created Issue:
Endermen don't aggrevate immediately after being stared at
The bug
Endermen do not aggrevate immediately after being stared at; instead they have to be stared at for 5 game ticks.
How to reproduce
- Summon an enderman riding a minecart:
summon minecart ~ ~ ~ {Passengers: [{id: "minecraft:enderman"}]}- stand a few blocks away from the enderman, and move the cursor quickly from left to right, passing through the enderman's eyes.
- If the enderman doesn't aggrevate, pass through its eyes again, and move a bit slower than the previous time each time.
- Notice that when then cursur moves quickly, the enderman doesn't aggrevate; but when it passes slow enough, the enderman aggrevates.
Endermen don't aggrevate immediately after being stared atEndermen don't aggravate immediately after being stared at
The bug
Endermen do not aggr
evate immediately after being stared at; instead they have to be stared at for 5 game ticks.How to reproduce
- Summon an enderman riding a minecart:
summon minecart ~ ~ ~ {Passengers: [{id: "minecraft:enderman"}]}- stand a few blocks away from the enderman, and move the cursor quickly from left to right, passing through the enderman's eyes.
- If the enderman doesn't aggr
evate, pass through its eyes again, and move a bit slower than the previous time each time.- Notice that when then cursur moves quickly, the enderman doesn't aggr
evate; but when it passes slow enough, the enderman aggrevates.The bug
Endermen do not aggravate immediately after being stared at; instead they have to be stared at for 5 game ticks.
How to reproduce
- Summon an enderman riding a minecart:
summon minecart ~ ~ ~ {Passengers: [{id: "minecraft:enderman"}]}- stand a few blocks away from the enderman, and move the cursor quickly from left to right, passing through the enderman's eyes.
- If the enderman doesn't aggravate, pass through its eyes again, and move a bit slower than the previous time each time.
- Notice that when then cursur moves quickly, the enderman doesn't aggravate; but when it passes slow enough, the enderman aggravates.
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:
Enderman looked at delay Java test world.zip
Enderman looked at test Bedroc.mcworld
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
- Open in the test worlds.
- Set the desired duration for looking at the enderman in the chain command block (Bedrock) or on the repeater (Java)
- Step on the pressure plate.
- 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. 1-tick aggro in Bedrock.mp4
I can confirm this issue.