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

Reopening world causes all zombie pigmen near angry zombie pigmen to become angry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 15w51b, Minecraft 16w38a, Minecraft 1.13.1, Minecraft 1.13.2-pre1, 1.15.1, 1.15.2 Pre-release 2
    • Confirmed
    • (Unassigned)

      The bug

      When you have for example one angry zombie pigmen and other ones that are not angry around you and reopen the world, all zombie pigmen around you are angry. This probably affects loading an unloaded chunk as well.

      The reason

      The reason for this is that once the NBT data of a zombie pigmen is loaded and the value of the HurtBy tag is not an empty String, it adds new AI tasks. However these AI tasks have no way to tell whether the pigman was just summoned or if it was loaded only so they will start and make nearby pigmen angry as well.

      How to reproduce

      1. Summon a pigman
      2. Switch to Survival mode
      3. Punch the pigman
      4. Summon more pigmen
        They should not be angry
      5. Reopen the world
        All the zombie pigmen around you are angry

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: