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

Potion of invisibility doesn't prevent mobs from attacking a player

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • None
    • Minecraft 15w39b, Minecraft 15w39c, Minecraft 15w42a, Minecraft 16w04a, Minecraft 1.9 Pre-Release 2, Minecraft 1.9, Minecraft 1.9.4, Minecraft 1.10 Pre-Release 1, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2, Minecraft 18w21b, Minecraft 1.13-pre2, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w07a, Minecraft 19w08b, Minecraft 19w09a, 1.14.4, 19w46b, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w13a, 20w13b, 20w15a, 20w17a, 20w18a, 20w19a, 20w20a, 20w20b, 20w21a
    • Confirmed
    • Mob behaviour
    • Normal

      The bug

      When a player, while wearing no armor, affected with the Invisibility effect, hostile mobs will still target and attack the player as normal.

      In /gamemode survival the following mobs will attack the player:

      • Unprovoked: Guardians, Elder Guardians, Blazes, Ghasts, Wither Bosses, Phantom, Shulkers
      • Provoked (hit): Creepers, Skeletons, Zombies, Spiders, Cave Spiders, Silverfish, Endermites, Endermen (not when looked at, but when hit), Zombie Pigmen, Wither Skeletons, Shulkers (stops attacking after a bit)
      • Ignore you even when provoked: Slimes and Magma Cubes

      Have even seen some mobs, under some circumstances trying to attack while in /gamemode creative or /gamemode spectator, while affected with the Invisibility effect. However not always.

      Code analysis

      Code analysis by gnembon can be found in this comment.

        1. 2015-09-22_22.57.12.png
          197 kB
          Kim Eckmann
        2. 2015-09-22_23.04.18.png
          157 kB
          Kim Eckmann

            Unassigned Unassigned
            kim@eckmann.priv.no Kim Eckmann
            Votes:
            118 Vote for this issue
            Watchers:
            44 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: