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

Piglins prioritize pathfinding to and admiring gold items over avoiding zoglins and zombified piglins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.19.2, 22w44a, 1.19.3, 1.19.4, 1.20, 1.20.1
    • Confirmed
    • Mob behaviour

      The Bug:

      Piglins prioritize pathfinding to and admiring gold items over avoiding zoglins and zombified piglins.

      Piglins are designed to run away from nearby zoglins and zombified piglins, however, this concept is completely disregarded when piglins pathfind to or admire gold items. Piglins will only try to avoid zoglins and zombified piglins if they're not pathfinding to or admiring gold items, which seems quite strange.

      Steps to Reproduce:

      1. Summon a zombified piglin with its "NoAI" NBT tag set to "1b" by using the command provided below.
        /summon minecraft:zombified_piglin ~ ~ ~ {NoAI:1b}
      2. Throw some gold ingots on the ground next to the zombified piglin.
      3. Summon a piglin around eight blocks away from the gold ingot.
      4. Observe the piglin's behavior closely.
      5. Take note as to whether or not piglins prioritize pathfinding to and admiring gold items over avoiding zoglins and zombified piglins.

      Observed Behavior:

      Piglins prioritize pathfinding to and admiring gold items over avoiding zoglins and zombified piglins. Piglins will only attempt to avoid zoglins and zombified piglins if they're not pathfinding to or admiring gold items.

      Expected Behavior:

      Piglins would prioritize avoiding zoglins and zombified piglins over pathfinding to and admiring gold items.

            Unassigned Unassigned
            Avoma [Mod] Avoma
            Votes:
            6 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: