mojira.dev
MCPE-47622

Mobs continue to target player after switching to peaceful

Certain mobs continue to attack the player in peaceful difficulty if they had targeted the player before switching to peaceful difficulty. As of beta 1.16.100.54 this applies to Iron Golems, Evokers, Shulkers and Zoglins.

Steps to reproduce

  1. Spawn or find one of the mobs listed above. For Iron Golems they must be village-generated or spawned with a command.

  2. In easy/normal/hard difficulty, get the mob to target you.

  3. Switch to peaceful.

Expected result

The mob does not attack.

Actual result

The mob attacks you repeatedly.


Original summary
Mobs not following difficulty level

when i'm on either easy normal or hard and get phantoms and fly away and set it to peaceful and come back phantoms still are flying around attacking me in peaceful when i come back and reload chunk, Also attacking villagers has iron golem attacking me when i leave and set it back to peaceful iron golem is still attacking me even when its still peaceful. Update I got a video showing me eating food on peaceful and entering area where Iron golems are attacking me even when Peaceful is on, File is too big so ill post youtube video link here: https://www.youtube.com/watch?v=VhY6PtKwpz4&feature=youtu.be

Linked issues

Comments 4

With bees, they stop being angry and attacking when you switch to peaceful, but if you had angered them before switching to peaceful and then switch back to easy/normal/hard, they will go back to being angry.

Confirmed with Zoglins as well; removed Phantoms and Ghasts as they now despawn in Peaceful when in proximity (and phantoms that did not despawn as described in MCPE-55270 do not attack the player when returning).

This works also with shulkers and Llamas (It is hard to repruduce it with Llamas)
I did also find a vindicator in peaceful.

Confirmed for shulkers. I was not able to reproduce with llamas. Llama spit that is flying through the air does not despawn in peaceful, but llamas themselves immediately cancel their attacks when you switch to peaceful.

Albert Arlt

(Unassigned)

561657

Confirmed

Multiple

Windows 10

difficulty-setting

1.16.100.54 Beta, 1.15.0.54 Beta, 1.13.3, 1.13.1, 1.14.1 Hotfix, ..., 1.16.1, 1.16.21, 1.16.50 Hotfix (iOS), 1.16.40 Hotfix, 1.16.201 Hotfix

1.19.10

Retrieved