mojira.dev
MC-311841

Witches continu chasing the player after switching to Creative or Spectator mode

When a Witch is chasing a player in Survival mode and the player switches to Creative or Spectator mode, if the Witch is far enough away from the player, it will continue chasing the player and throwing potions at them. It only loses the target once it gets close to the player.

Possibly relates to MC-217439.

Steps to Reproduce:

  1. Launch game and enter a world.

  2. Build a bridge at least 48 blocks long.

  3. Give yourself Speed (I used Speed II) to avoid being caught by the Witch later.

  4. Place the Witch at one end of the bridge. Stand on the bridge within 16 blocks of the Witch, preferably not too close, then switch to Survival mode.

  5. After the Witch notices the player, it will drink a potion first. As soon as you see the Witch drink the potion, run away at least 32 blocks, then turn around. If the Witch is still chasing you, switch to Creative or Spectator mode.

  6. Observe the Witch's behavior.

Actual Result:
After switching game mode, the Witch keeps walking along the bridge and throwing potions until it gets close to the player.

Expected Result:
After switching game mode, the Witch should immediately stop chasing the player, like other mobs.

Linked issues

Attachments

Comments 1

AblazeVase69188

(Unassigned)

Confirmed

Gameplay

Low

Mob behaviour

26.2, 26.3 Release Candidate 2, 26.4 Snapshot 1

Retrieved