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

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: 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, 19w46b
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Mob behaviour

      Description

      Seemingly since around snapshot 15w36d and still in 15w39b.

      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
      • 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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kim@eckmann.priv.no Kim Eckmann
              • Votes:
                103 Vote for this issue
                Watchers:
                48 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: