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

Crossbow-wielding piglins behave weirdly when they try to pursue invisible players

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 20w18a, 20w19a, 20w20b, 20w21a, 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 5, 1.16 Pre-release 6, 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
    • Labels:
      None
    • Confirmation Status:
      Community Consensus
    • Category:
      Mob behaviour
    • Mojang Priority:
      Normal

      Description

      The bug

      If an invisible player attack a piglin that has a crossbow, they will pathfind toward the invisible player. But the crossbow-wielding piglin would get stuck in a loop of charging their crossbows while backing off and going back towards the invisible player.

      To reproduce

      1. In the nether run:
         /summon piglin ~ ~ ~ {HandItems:[{id:crossbow,Count:1b}]} 
      2. Drink an invisibility potion
      3. Attack it once
        It runs towards you, backing off while loading its own crossbow, stops loading, and repeats this behavior.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hkniberg [Mojang] Henrik Kniberg
              Reporter:
              drownedzombie01 [Helper] DrownedZombie
              Votes:
              6 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: