mojira.dev
MC-65668

Endermen with NoAI still teleport when hit

Endermen with the "NoAI" tag set to 1 will still teleport depending on the action taken against them.

They will not teleport under sunlight, as expected.

They will teleport away if struck by a direct physical attack, but will reappear where they were originally struck.

They will teleport away if a projectile is aimed for them, but will not reappear where they teleported away from.

/summon Enderman ~ ~ ~ {NoAI:1}

EDIT: They no longer appear to teleport from physical damage (please let me know if this isn't the case for 14w32d+), but still does so from projectiles.

Linked issues

Comments 19

The endermen teleporting upon melee attacks then coming right back is a bug with endermen right now, even with NoAI off. But the other thing, yes it is a bug.

also add if they are inside blocks (i want the enderman inside barrier blocks, and it makes him teleport away)

Still in 33c. Also, they seem to look around still if they have NoAI. It seems like the only thing it prevents them from doing is screaming when you look at it, and moving around.

It's been stated over and over again that all NoAI does is stop calls to the AI code. If any "AI" is baked into the mob itself, then NoAI is of no use.

I don't think NoAI was ever supposed to be a sophisticated fully-formed "feature" (as in something you'd advertise an update with), but rather just some extra thing you can mess around with to make the game fun.

See this quote from Searge that he made on a bunch of different tickets: "Any part of an entities behavior that is not implemented as part of the AI is not affected by the NoAI tag."
Also this tweet: https://twitter.com/SeargeDP/status/497061561547370497

I punched a NoAI Enderman in the face and he teleported away and back.

9 more comments

I don't agree that this is invalid. Searge just stated what he did, not what the intended purpose was. If the majority of players find this behavior inconsistent, it should still be classified as a bug.

I agree with KingSupernova - it should be still classified as a bug. not being resolved,
unless Mr. Stoyke or any other developer from Mojang expresses here
that they won't fix it or classify it as "not fixable", "won't fix", or
"we won't fix it, for whatever reason. although its behaviour is inconsistent".

As @unknown has stated on several issues,

Any part of an entities behavior that is not implemented as part of the AI is not affected by the NoAI tag.

I recall slimes with NoAI causing damage being fixed a few years ago - wouldn't it have been tied to something other than the AI as a result? If so, wouldn't that make this valid again?

Reiterating prior comment - that's MC-88099. I assume causing damage wasn't part of the AI before that was fixed, and was made part of it after the fix, so the same logic could apply here.

Skylinerw

(Unassigned)

Community Consensus

Gameplay

Low

Entities, Mob behaviour

Minecraft 14w32a, Minecraft 14w32b, Minecraft 14w32c, Minecraft 14w32d, Minecraft 1.8-pre1, Minecraft 1.8, Minecraft 1.8.1-pre5, Minecraft 1.8.1, Minecraft 1.8.2-pre4, Minecraft 1.8.2-pre6

Retrieved