Converting Minecraft Coordinates in JavaScript: Overworld, Nether and Chunks
Minecraft coordinates look simple, but a few details trip people up: floor division with negative numbers, the 8:1 Nether ratio, and chunk/region math. Here is a small, tested set of JavaScript helper