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

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.16.2 Pre-release 1
    • 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
    • None
    • Community Consensus
    • Mob behaviour
    • Normal

      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.

            hkniberg hkniberg
            drownedzombie01 DrownedZombie
            Votes:
            6 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: