juliarn / npc-lib

Asynchronous, high-performance Minecraft NPC library for 1.8-1.21 servers.
MIT License
296 stars 50 forks source link

Yaw and Pitch #76

Closed arthurr0 closed 2 years ago

arthurr0 commented 2 years ago

Despite setting the NPC location to Yaw and Pitch, the NPC looks at Yaw 0 and Pitch 0

vytskalt commented 2 years ago

probably related to #47

derklaro commented 2 years ago

I would suggest using a spawn modifier like

.spawnCustomizer((spawnedNpc, player) -> spawnedNpc.rotation().queueRotate(yaw, pitch).send(player);
arthurr0 commented 2 years ago

Thanks 😄