Ancient Teleportation

The **Portal** is the structure the player must build in order to travel to different dimensions in Advent of Ascension. All dimensions are accessible via the teleporter, including the Nether.

## Creating the portal frame

To access the dimensions in the mod, the player has to create a portal (pictured right).

To make the portal, the player will first need to make the portal frame. The frame requires that the player collect the following materials:

* 13 Ancient Rock
* 1 Carved Rune of Power
* 1 Carved Rune of Direction
* 1 Carved Rune of Space
* 1 Carved Rune of Reality
* 1 Carved Rune of Travel

The ancient rock can be found in a ruined teleporter structure, while the carved runes (except carved rune of power) can be found inside vanilla chests in structures (Dungeons, Mineshafts, Desert Pyramids, etc), uncommonly as a part of the ruined teleporter, and be rarely dropped by non-vanilla Overworld mobs. The carved rune of power is an exception, it must be crafted or traded instead of found.

The player must build the frame to be 5 blocks long and 6 blocks tall, and all of the above listed materials must be present in the portal structure. The Carved Rune of Power has to go in the center spot on the bottom of the portal frame. The rest of the carved runes can go **anywhere**. The corners are not optional (see diagram below).

When the portal frame is built, there should be a 3 block long and 4 block tall empty space inside the frame for the portal to go in.

## Lighting the portal

Once the portal structure is created, the player can activate the portal using a Realmstone. To activate the portal, the player must use a realmstone on the **Carved Rune of Power**.

If the portal structure is built correctly, the portal will activate. The realmstone will not be consumed. If the portal is not built correctly, the message *Nothing happens. Maybe there is something missing?* will be displayed, and the portal will not activate.

## Portal Mechanics

When the player or entity touches a portal block from any side, it will transport the player (or most entities) to a different dimension instantly.

If the player is in any dimension other than the dimension a portal block corresponds to, the player will be transported to the dimension the portal corresponds to, and the portal's coordinates in the other dimension will be saved. If the player is in the dimension the portal corresponds to, and enters that dimension's portal, it will teleport the player to the coordinates of the other portal in the other dimension, even if the portal in the other dimension is destroyed.

For example, if the player is in the overworld, and enters a haven portal, the player will be transported to the haven. If the player is in the haven, and returns through the haven portal, the player will be transported to the overworld, to the coordinates where the haven portal in the overworld was when the player entered, regardless if the portal is there or not.

Entering a portal from the overworld should take the player to similar coordinates in the other dimension, the scale is 1 block:1 block, more or less. This is also true for the Nether portal that is obtained with the Nether Realmstone.