Skip to content

Instantly share code, notes, and snippets.

@jonnyli1125
Created January 27, 2013 19:26
Show Gist options
  • Save jonnyli1125/4649921 to your computer and use it in GitHub Desktop.
Save jonnyli1125/4649921 to your computer and use it in GitHub Desktop.
How to convert Minecraft player position and look packets to more readable values.
x = (player.x / 32)
y = (player.y / 32)
z = (player.z / 32)
pitch = round((double)(player.pitch * (360 / 256)))
yaw = round((double)((-(sbyte)(player.yaw)) * (360 / 256)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment