Posts: 13
Threads: 4
Joined: Aug 2017
Thanks: 0
Given 1 thank(s) in 1 post(s)
If I have ChunkX and ChunkZ, how do I get their world coords?
Can I multiply them by 16 to get the start of the chunk? And add 16 to get the end of the chunk?
Posts: 4,629
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 post(s)
Multiplying by 16 should work just fine.
Posts: 108
Threads: 1
Joined: Aug 2016
Thanks: 22
Given 15 thank(s) in 11 post(s)
Assuming chunk 0,0 is from 0,0 to 15,15
Then chunk 1,0 would be from 16,0 to 31,15
And chunk n,m would be at n*16,m*16 to n*16+15,m*16+15
So actually you multiply by 16 to get the begin and add 15 to the begin to get the last one.