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

[Feature Req] /npc face [direction] #2263

Closed LogGits closed 4 years ago

LogGits commented 4 years ago

A command that allows us to essentially set the direction that the npc is facing.

/npc face [NORTH, SOUTH, EAST, WEST, UP, DOWN, ME] whereby if a face isn't specified it gets the npc to face the sender's eye height.

Side question with this, is it possible to make the npc's body face the same direction as the head with this?

EDIT could also include a ME argument whereby it makes the npc face the command senders eye height

fullwall commented 4 years ago

With your side question: there's an issue where Minecraft doesn't track body yaw exactly for players.

mcmonkey4eva commented 4 years ago

Body yaw issue is tracked @ https://github.com/CitizensDev/Citizens2/issues/1487

LogGits commented 4 years ago

Edited to include a ME argument

mcmonkey4eva commented 4 years ago

You can do: /npc moveto --yaw 0 (for south) /npc moveto --yaw 180 (for north) etc. /npc moveto --pitch 90 (for up, -90 for down).