mojira.dev
MC-110158

NoAI tag causes mobs with default handheld items to lose them

Using the "NoAI:1" when summoning mobs causes them to lose what they normally hold. For example, vindicators, skeletons, and zombie pigmen will no longer hold axes, bows, and swords respectively.

What I expected to happen was...:
NoAI:1 would simply cause the entity to not move

What actually happened was...:
Some held item data was nullified

Steps to Reproduce:
1. Summon a vindicator with the name "Johnny" and the tag NoAI:1
2. Do entitydata on it and set NoAI:0
3. It will attack everything it sees with its arm out without its normal axe

I'm sure NoAI is used for displaying mobs, and currently as a boolean it will be difficult to change functionality later, but a "fix" for the two kinds of people (one wants NoAI to be used as display, the other as functionality) would be to introduce NoAI:2 and have that keep the usual mob items (basically an enum instead of a boolean)

Linked issues

Comments 2

Summoning with tags will set the rest to their default values, HandItems is empty by default, and as such the vindicator has no axe.

Thank you for your report!
We're tracking this issue in MC-86172, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Jordan Gonzalez

(Unassigned)

Unconfirmed

Minecraft 1.11

Retrieved