mojira.dev
MC-68974

Mob rotation bugs out when they have "NoAI"

Steps to reproduce:

1. Create a new world.
2. Summon a mob, or use /entitydata on an existing one so "NoAI" NBT tag is set to 1.
3. Use /tp with relative coordinates to make it face a different direction than the default.
4. Leave the world and open it back
5. The mobs should be rotated to a set direction... It fixes to the previous position if you use "/tp @e[r=1] ~ ~ ~ ~ ~" on them (using the selectors you want of course)

PS: If you can't reproduce it first time, maybe you just left it on the same direction it gets rotated because of the bug.

Related issues

Comments

kumasasa

@unknown in MC-61587:

Mobs don't serialize their orientation

migrated

That's a solution. But it's not very handy if you have to do that command every time you get back on that world. And besides, it's just a bug, isn't it?

kumasasa

No, not a bug. Working by design.

migrated

And what's the point of that? That just makes me have to rerotate the mobs each time I enter the map. I made them stupid (and moveless with that) for a reason... I don't want them facing another direction as the one I set them...

kumasasa

Again:

Mobs don't serialize their orientation

Read: There is no function for the mobs to store and load their rotation. That's something which must be added to the game - which makes this and the duplicated MC-61587 a feature request --> Minecraft Suggestions on Reddit.

migrated

"There is no function for the mobs to store and load their rotation."
What kind of an idiotic comment is that? EVERY living (and some non-living) entity's NBT data contains a 'Rotation' tag/compound containing 2 values. This is saved to file and even used real-time while the world is loaded. You can do /entitydata @e {Rotation:[0.0f,0.0f]} to change the rotation value of every loaded entity in the world. Normal entities which use this tag also seem to load it instantly when loading a world, and be looking the right direction, but NoAI mobs don't.

migrated

Not fixed in 1.8, or the feature has not been implemented. Would be nice for 1.8.1! 😉

migrated

(Unassigned)

Unconfirmed

Minecraft 1.8-pre1

Retrieved