CitizensDev / Citizens2

Citizens - the premier plugin and API for creating server-side NPCs in Minecraft.
https://citizensnpcs.co
Open Software License 3.0
589 stars 313 forks source link

NPC Body Rotation Cannot Be Controlled #1487

Closed kellarius closed 3 years ago

kellarius commented 6 years ago

The npcs heads are easily posable with the /npc pose command (even if just horizontally, not sure if its a bug), and you can make his body face the direction you want with it:

2018-04-17_18 30 09

However, when you go far away and come back, the NPC's body is reset to the original position, making it impossible to make a straigth-facing npc:

2018-04-17_18 30 53

mcmonkey4eva commented 6 years ago

Yes, the body yaw is separate from the head yaw and would need dedicated tracking. This might be possible to add, so I'll mark as a feature request.

fullwall commented 5 years ago

Looks like more of a bug since /npc pose should set body and head yaw to be the same. Is this still an issue?

mcmonkey4eva commented 5 years ago

In current version (git-Spigot-766dab2-b9a2a74 (MC: 1.14) and Citizens version 2.0.25-SNAPSHOT (build 1654)), head yaw is hopelessly broken. Have opened as new issue #1753 Can recheck this after that's fixed.

mcmonkey4eva commented 5 years ago

Head yaw and body yaw are indeed set to the same value, and NPCs do indeed remain facing the correct direction after leaving and coming back. However, body yaw would ideally not be the same head yaw, and instead be actually tracked on its own, as its underlying value is independent.

mcmonkey4eva commented 3 years ago

There's an experimental fix for this in current dev builds @ https://ci.citizensnpcs.co/job/Citizens2/