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

Certain mobs attack while the player is in creative or spectator mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 19w12b, Minecraft 1.14, Minecraft 1.14.2, Minecraft 1.14.3, 1.14.4, 19w40a, 19w41a, 19w42a, 19w45b, 1.15.1, 1.15.2, 20w06a, 20w09a, 20w14a, 20w16a, 20w18a, 20w19a, 20w20b, 20w21a, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 4, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 20w28a, 20w29a, 1.16.2 Pre-release 1, 1.16.2, 1.16.3, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w51a, 21w03a, 1.16.5 Release Candidate 1, 1.16.5, 21w08a, 21w11a, 21w15a, 21w18a, 21w19a, 21w20a, 1.17 Pre-release 1, 1.17 Release Candidate 1, 1.17, 1.17.1 Pre-release 1, 1.17.1, 21w38a, 1.18 Release Candidate 1, 1.18.1, 1.18.2, 22w17a, 22w19a, 1.19 Pre-release 2, 1.19, 1.19.1 Release Candidate 2, 1.19.2, 1.19.3, 23w07a, 1.19.4 Release Candidate 2, 1.19.4, 23w12a, 1.20 Release Candidate 1, 1.20, 1.20.1, 23w31a, 1.20.2 Release Candidate 1, 1.20.4, 23w51b, 24w11a, 24w13a, 1.20.5 Pre-Release 1
    • Confirmed
    • Mob behaviour
    • Low
    • Gameplay

      If you summon a group of some mobs and attack them under certain circumstances, they will continue to attack the player even when they change gamemodes which entities should not be hostile to.

      Steps to Reproduce:

      (Start test in creative mode)

      1. Apply invisibility effect:
        /effect give @p minecraft:invisibility infinite 255 true
        
      2. Summon 10 or more of the affected mobs (noted in 'notes' section)
      3. Attack one of the affected mobs (drowned must have tridents)
      4. Enter survival mode, and quickly move on to step 5 within a second
      5. Change gamemode to creative/spectator

      h.3 Observed Behavior:
      One or possibly more of the pillagers will continue to attack the player, even if you switch to spectator, and then creative again. It will stop attacking after you switch back to survival, and then creative again.

      Expected Behavior:

      The entities would not attack the player in creative or spectator at all, and would lose aggression as soon as the player enters those gamemodes.

      Videos & Screenshots

      2019-06-29 15-53-30.mp4 made by Johnibur

      Notes:

      The following mobs are known to be affected:

      • 'Illager' mobs (evokers, pillagers, vindicators, and illusioners)
      • Ravagers
      • Witches
      • Wolves
      • Bees when harvesting from their nest / hive
      • Zoglins
      • Zombie mobs (zombies, drowned, husks, zombie Villagers
      • Hoglins & Zoglins

        1. 2019-06-29 15-53-30.mp4
          7.90 MB
        2. Untitled.png
          Untitled.png
          2.73 MB
        3. 2019-08-02_14.46.50.png
          2019-08-02_14.46.50.png
          1.62 MB
        4. 2019-08-02_14.46.15.png
          2019-08-02_14.46.15.png
          1.82 MB
        5. 2019-08-02_14.46.21.png
          2019-08-02_14.46.21.png
          2.11 MB
        6. Gravando 2024-01-05 145802.mp4
          9.37 MB

            Unassigned Unassigned
            Jingy Jiingy
            Votes:
            72 Vote for this issue
            Watchers:
            28 Start watching this issue

              Created:
              Updated:
              CHK: