[SPIGOT-3253] Entities ignoring yaw when teleported Created: 19/May/17  Updated: 20/May/17  Resolved: 20/May/17

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Ricky Fisher Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates SPIGOT-619 setYaw() yields no result Resolved

 Description   

This shulker will not have a yaw of 90 when teleported, it will always face south.

 

Shulker shulker = world.spawnEntity(location, EntityType.SHULKER);
location.setYaw(90);
shulker.teleport(location);


 Comments   
Comment by Ricky Fisher [ 19/May/17 ]

I had it working earlier today on 1.11.2, now I've updated to 1.12-pre2 and this bug has occurred.

I deleted that comment because it turns out NoAI has nothing to do with it, yaw doesn't get changed whether it's true or false

Comment by md_5 [ 19/May/17 ]

Don't know why your comment isn't showing, but it sounds like its not a new thing and it's because the entities are NoAI, and Mojang doesn't do yaw updates for such entities.

Comment by Ricky Fisher [ 19/May/17 ]

No, this is a new thing in 1.12 prereleases

Comment by md_5 [ 19/May/17 ]

Does this occur in 1.11.2?

Comment by Ricky Fisher [ 19/May/17 ]

Version: 1.12-pre2

This bug happens with shulkers and zombies, they're all I've tested.

Pitch works fine, it's the yaw which is always set to zero.

Generated at Sat Dec 13 11:51:24 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.