Posted March 31, 201510 yr What's the best way to teleport a player? I am currently using player.setPositionAndRotation(x, y, z, yaw, pitch); However this displays a warning in the console Player moved too quickly! Also it seems to be a little slow sometimes even if the chunk is already loaded. Is there a better way to do this?
March 31, 201510 yr When I use /tp command, "Player move too quickly" shows too. So actually it's not a bad way, I suppose. Author of Tao Land Mod. http://taoland.herbix.me/images/1/14/TaoLandLogo.png[/img] Also, author of RenderTo ---- I'm not an English native speaker. I just try my best.
March 31, 201510 yr Author I just tried player.setPositionAndUpdate(x, y ,z); And it doesn't throw that warning up in the console anymore. Also seems to load quicker. The head rotation and yaw doesn't set with it though, and player.setRotationYawHead(yaw); doesn't work. I guess I'll keep fiddling with it
March 31, 201510 yr I guess you could do setPositionAndUpdate first, and then directly after do setPositionAndRotation so it doesn't throw any moved to quickly warnings. If you're going to do this often maybe make your own method to do setPositionAndRotationAndUpdate(X, Y, Z, Pitch, Yaw)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.