[Solved] Chunk help

Discussion in 'Spigot Plugin Development' started by Eliminator, Jun 26, 2015.

  1. How do I get these values from a Chunk object?

  2. Chunk.getX() and Chunk.getZ() will give you the coordinates of a chunk. You can use Player.getLocation().getChunk() to get the chunk that the player is in.
  3. But there are 3 values.
  4. Right..I'm not really sure what the third value means, but the wiki states that they are the location of the chunk, and the location of the player in the chunk.
  5. OK the third value is what the Y chink would be if there was one, is just every 16 blocks.