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

Hitting mobs in Creative then switching into Survival causes the mob to target you

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4, 20w45a, 20w48a, 21w03a, 21w08b, 21w11a, 21w15a, 1.17, 1.17.1, 21w37a, 21w39a, 21w40a, 21w42a, 21w43a, 21w44a, 1.18 Pre-release 8, 1.18, 1.18.1 Pre-release 1, 1.18.1, 22w03a, 22w05a, 22w06a, 1.18.2, 22w11a, 22w14a, 1.19 Pre-release 4, 1.19, 1.19.1 Pre-release 5, 1.19.1 Release Candidate 2, 1.19.1 Release Candidate 3, 1.19.1, 1.19.2, 23w06a, 1.19.4, 23w14a, 1.20 Pre-release 6, 1.20.1, 23w33a, 1.20.2 Pre-release 2, 1.20.2 Release Candidate 2, 1.20.2, 23w42a, 1.20.4, 1.20.5 Pre-Release 1, 1.21
    • None
    • Confirmed
    • Creative
    • Mob behaviour

      The bug

      Hitting a mob (which is by default passive; or which does not see you because you are invisible) in Creative mode and switching shortly afterwards into Survival mode makes the mob attack you.

      How to reproduce

      1. Spawn a mob (preferably passive, you also can use hostile mobs for this, but you must be invisible), e.g. an Enderman, Polar Bear or Zombified Piglin
      2. Hit the mob in creative mode
      3. Quickly switch to survival mode (must be 4 seconds or less)
        The mob begins to pursue the player

        1. MC-199589.mp4
          3.06 MB
        2. MC-199589.png
          MC-199589.png
          568 kB

            Unassigned Unassigned
            CallMeChris CallMeChris
            Votes:
            18 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: