Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

Game Map Chunk and Local Coordinate

Convert positive or negative block positions into chunk and local coordinates.

Gaming workspace● Runs in your browser
01 Your input
02 Your result
View or copy raw result data
FormulaChunk x = Math.floor(x/size); Chunk z = Math.floor(z/size); Local x = x-Math.floor(x/size)*size; Local z = z-Math.floor(z/size)*size

Made for real tasks

  • Convert positive or negative block positions into chunk and local coordinates.
  • Compare two scenarios by changing the inputs and rerunning the tool.
Explore step-by-step workflows →

Worked example

Inputs

X
-17 blocks
Z
35 blocks
Size
16 blocks

Expected results

Chunk x
-2 chunks
Chunk z
2 chunks
Local x
15 blocks
Local z
3 blocks

Load the example in the workspace to reproduce these results. Display rounding does not change the underlying calculation.

How to use this tool

  1. Enter x, z, size.
  2. Use consistent units shown beside each input. Run the calculation and review the assumptions below.

Try this example

{
  "x": -17,
  "z": 35,
  "size": 16
}

Accuracy and scope

Uses floor division with half-open chunk boundaries, including negative coordinates. Enter integer block positions and integer chunk size; no dimension-specific game rules or world limits.

Is my data uploaded?

This tool runs locally in your browser. Input and output are not sent to a processing server. Copy or download your result before leaving the page.