mojira.dev
MC-276719

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

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}

Attachments

Comments 0

No comments.

Sameer

(Unassigned)

Confirmed

Gameplay

Low

Mob behaviour

data, entity-data

1.21.1

Retrieved