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

Hoglins, Zoglins, melee Piglins, and Piglin Brutes do not properly attack invisible entities within normal range

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 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, 20w30a
    • Fix Version/s: 1.16.2 Pre-release 1
    • Confirmation Status:
      Confirmed
    • Category:
      Mob behaviour
    • Mojang Priority:
      Normal

      Description

      The bug

      When a Hoglin, Zoglin, or melee Piglin targets an invisible entity, the mob would not be able to attack it normally unless it is too close to its position. This is not the case for other melee mobs.

      The bug also affects Piglin Brutes as of 20w27a.

      How to reproduce

      1. Use a Potion of Invisibility or the following command to get an Invisibility effect:
        /effect give @s invisibility
      2. Find or spawn a Hoglin, Zoglin, melee Piglin, or Piglin Brute in Survival mode, and then attack it.
      3. Have the mob attack the player normally.
        The mob is not able to hurt the player even if it is close enough to them.
      4. Have the mob get too close to the player.
        The mob is now able to hurt them.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hkniberg [Mojang] Henrik Kniberg
              Reporter:
              BoyrexMacaraya Alireza Macaraya
              Votes:
              5 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: