mojira.dev
MC-182330

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

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.

Linked issues

Attachments

Comments

Chandler

Relates toΒ MC-177973

DrownedZombie

migrated

Community Consensus

Normal

Mob behaviour

20w18a, 20w19a, 20w20b, 20w21a, 20w22a, ..., 1.16.1, 20w27a, 20w28a, 20w29a, 20w30a

1.16.2 Pre-release 1

Retrieved