mojira.dev
MC-33558

Agro tags don't work with Neutral Mobs that have New AI

EDIT: It appears that the cause leads to the New AI. Wolves already had the New AI before Pigmen did and the bug was only for wolves when this was created, because the anger tag for Pigmen still worked. Since 14w06, the anger tag no longer works for Pigmen, which leads it to the New AI because Jeb made all mobs have the new AI now.

Steps to Reproduce:
1.8/1.7 - type

/summon Wolf ~ ~ ~ {Angry:1}
/summon PigZombie ~ ~ ~ {Anger:1}

@unknown added a comment - 30/Jul/14 2:08 PM

This has been fixed, but differently for wolves and zombies:

Wolves will only remain angry as long as they have something to attack. Summoning an angry wolf will immediately make it non-angry since it doesn't have a target.

Pig Zombies will actively try to find targets for as long as they're angry, even if they can't find / don't know the source of the anger.

Linked issues

Comments 59

Probably there is another internal variable which stores against whom the wolf is angry, but that isn't stored to NBT data.
If you hurt that wolf, it is attacking you until you relog. Then it is still in the "angry" state but doesn't attack you.

Well then. That would result into a partial copy of the Wolf AI code and pasting it into the NBT Data, making it persistent itself. Should Dinnerbone/Jeb be told about this issue?

You've already told Mojang about that issue by creating that ticket.

49 more comments

This is still broken for Endermen and Wolves for all these commands:

/summon Enderman ~ ~ ~ {Anger:32767}
/summon Enderman ~ ~ ~ {Angry:32767}
/summon Enderman ~ ~ ~ {Anger:32767b}
/summon Enderman ~ ~ ~ {Angry:32767b}
/summon Enderman ~ ~ ~ {Anger:1}
/summon Enderman ~ ~ ~ {Angry:1}
/summon Enderman ~ ~ ~ {Anger:1b}
/summon Enderman ~ ~ ~ {Angry:1b}

None of these tags summon an angry Enderman. The issue must be re-opened.

Xavier, skim through the comments to find Jeb's. This only works with Pigmen. You can't summon angry wolves or Endermen.

Mods, maybe you could post a message about Jeb's comment so people won't continue to try and reopen this report.

So how do I summon a Wolf/Iron Golem/Enderman which is angry at a player?

you can't, read the top comments

kazblox

Jens Bergensten

Confirmed

Minecraft 1.5.2, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w39a, Minecraft 13w39b, ..., Minecraft 14w28a, Minecraft 14w28b, Minecraft 14w29a, Minecraft 14w29b, Minecraft 14w30c

Minecraft 14w31a

Retrieved