mojira.dev
MC-102237

ry and rym are always -90 with mobs!

Whenever I use ry and rym on zombies, it acts like the zombie is pointing at -90 all the time, even if I can clearly see it facing other directions. I haven't tested with other mobs, but I am pretty sure it doesn't work with them as well. I really hope this glitch gets fixed soon, because I need to know a zombie's rotation to make the redstoning for my stealth-themed adventure map.

Comments 5

Please provide the exact commands used.

I have 16 of these for various degrees,
/execute @a ~0 ~0 ~0 execute @e[type=Zombie,r=15,ry=-90,rym=90] ~0 ~0 ~0 summon ArmorStand ~0 ~1 ~0 {Small:1b,Invulnerable:1b,Invisible:1b,Rotation:[0:-180.0f,1:0.0f],CustomName:Sight}

and 16 of these for moving the armorstands.
/entitydata @e[type=ArmorStand,name=Sight,ry=-179,rym=-181] {Motion:[0.0,0.0,-1.0]}

However, upon further inspection of my commands and how they worked, I am starting to think it actually might be with the armorstand rotation.

Update: It is definitely with the zombie and not the armorstands. However, I noticed that when I teleported the zombie to face a certain direction, THEN the direction updated. However, when the zombie began to look around, the direction stayed the same again.

Ok, I found that if I constantly teleport the zombie to itself then I can get my map to work. Still, I am pretty sure I shouldn't have to do that.

@e[type=Zombie,r=15,ry=-90,rym=90]

This looks for zombies that are looking to

-90 -> -180 + 90 -> 180

, make sure this is what you want, if it's not, switch rym and ry arround.

Skelepound

(Unassigned)

Unconfirmed

Minecraft 1.9.4

Retrieved