Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-251047

Wardens prioritize player collisions over mob attacks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 22w17a
    • None
    • Unconfirmed
    • (Unassigned)

      Found while testing MC-251045.

      The bug

      If a mob attacks the warden, and then another mob touches the warden, the warden will continue to focus on the mob that attacked it. However, if a mob attacks the warden and then the player touches the warden, the warden will target the player instead, which is inconsistent.

      How to reproduce

      1. Create a setup that allows a pillager to shoot a warden
      2. Have the pillager shoot the warden
      3. Spawn a mob next to the warden, and have it collide with the warden three times to counteract the effects of MC-249961
      4. Now repeat this test, but instead of having a mob do the colliding with the shot warden, touch it yourself

      Expected results

      Since the warden didn't immediately target the mob that touched it, it wouldn't target players touching it either under these same circumstances

      Actual results

      It does.

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: