EntityPlayer Pitch/Yaw/Rotation

Discussion in 'Spigot Plugin Development' started by VirtualPhilipp, Oct 4, 2017.

  1. im trying to make a EntityPlayer (NMS) look at a direction.

    Code (Text):
    EntityPlayer npc = new EntityPlayer(nmsServer, nmsWorld,
                            new GameProfile(kio.getKeeperSkin(all), kio.getKeeperName(all)),
                            new PlayerInteractManager(nmsWorld));
                    npc.setLocation(kio.getKeeperLocX(all), kio.getKeeperLocY(all), kio.getKeeperLocZ(all),
                            kio.getKeeperLocYaw(all), kio.getKeeperLocPitch(all));
    everything that says "kio.getKeeper" are values stored in a config.
    the problem is, only the body is getting rotated, and the head has the right height but not direction. what am i doing wrong?
    • Like Like x 1