# Nether Portal Coords 🧭

#### 🧠 How It Works

Whenever a player **uses a Nether portal** (in either direction), the datapack sends them a **private message in chat** showing the **corresponding coordinates** in the opposite dimension.

**For example:**

* If you enter a portal in the **Overworld**, you'll see a message like:

  ```
  [Nether Portal Coords] Suggested Nether coords: X: 120, Z: -35
  ```
* If you enter a portal in the **Nether**, you'll see:

  ```
  [Nether Portal Coords] Suggested Overworld coords: X: 960, Z: -280
  ```

This is based on Minecraft's 1:8 coordinate ratio:

* **1 block in the Nether = 8 blocks in the Overworld** (X and Z only)

The datapack does this math automatically for you and **only shows the message to the player using the portal**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dirkocraft.gitbook.io/dirkocraft/data-packs-and-plugins/nether-portal-coords.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
