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

Piglin does not have anger data when attacking wither or wither skeletons

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.1
    • Confirmed
    • Mob behaviour
    • Low
    • Gameplay

      When piglins are attacking a wither skeleton or wither boss, it does not have any data in Brain.memories."minecraft:angry_at"

      Steps To Reproduce:

      1. Summon a Piglin covered with fences
      2. Summon a Wither Skeleton covered with fences
      3. Use this command to get data:
        /data get entity @e[type=minecraft:piglin,limit=1,sort=nearest] Brain
        

      Expected Output:

      Piglin has the following entity data:

      {memories: {"minecraft:angry_at": {value: [I; -2039825867, -1879097342, -1812001975, 1098820771], ttl: 541L}}}
      

      Actual Output:

      Piglin has the following entity data:

      {memories: {}}
      

      NOTE: It outputs properly if you summon hoglins instead of wither skeletons as shown in the attached video.
      NOTE 2: It also outputs properly if wither skeletons hit the piglin before running the data command. You may test this by summoning archer wither skeleton.

      Command blocks used in the attachment:

      1. Removes Piglin's hunted_recently data: /data remove entity @e[type=minecraft:piglin,limit=1,sort=nearest] Brain.memories."minecraft:hunted_recently"
      2. Summon Wither with NoAI:1b: /summon wither ~ ~1 ~ {NoAI:1b}

            Unassigned Unassigned
            SAMEER_99 Sameer
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: