# Teleport System

## Teleport on Enter feature

This feature open the teleport menu upon entering the Shrine.

{% hint style="info" %}
You can edit this value on the file: config.yml&#x20;

Plugins folder -> Shrines -> config.yml
{% endhint %}

If it is set to true, the teleport GUI will open when the player enters a shrine. Leave it false if you don't want this feature enabled.

{% code title="config.yml" %}

```yaml
open-teleport-on-enter: false # open the teleport gui when you enter in a shrine
```

{% endcode %}

## Types of teleportation system

There are two different types of teleportation systems that you can configure in the config.yml.

### **Connected:**&#x20;

The shrines are interconnected, allowing you to use them as travel points within the world. Therefore, the teleportation menu I use can automatically open when entering the shrines, instead of requiring a command. Additionally, the command "/shrines teleport" can only be accessed when you are within the Shrines region.

### **Default:**&#x20;

The default system only requires the "shrines.teleport" permission to execute the "/shrines teleport" command and can be executed anywhere you want.

{% code title="config.yml" %}

```yaml
teleport-type: "connected"
```

{% endcode %}

## Teleport GUI settings

### Edit the size of Telport GUI

{% hint style="info" %}
You can edit the size of teleport gui size in **config.yml**
{% endhint %}

You can set only the values **9,18,27,36,45,54**

{% code title="config.yml" %}

```yaml
# teleport gui options
teleport-gui-size: 54 # <- here you can change the size of telport GUI
```

{% endcode %}

### Edit the icons of Telport GUI

All items can be modified using the shrine editor system, which allows for changing the display icon in the GUI through its configuration.

{% hint style="info" %}
You can edit this parameters on shrines.yml OR EditorGUI
{% endhint %}

{% code title="shrines.yml" %}

```yaml
    item:
      completed:
        icon: STONE_BRICKS #Icon of the shrine teleport GUI
        displayname: '<yellow>Shrine 1 item' #Display name of the shrine
        lore:
          - '<rainbow>This is a custom lore!' #Lore of the shrine teleport GUI
        custom-model-data: 1000 #Custom model data of the shrine teleport GUI
        slots: # you can set the item for one or more slots
          - 0
          - 1
          - 2
          - 3
      incomplete:
        icon: STONE_BRICKS #Icon of the shrine teleport GUI
        displayname: '<yellow>Shrine 1 item' #Display name of the shrine
        lore:
          - '<rainbow>This is a custom lore!' #Lore of the shrine teleport GUI
        custom-model-data: 1000 #Custom model data of the shrine teleport GUI
        slots: # you can set the item for one or more slots
          - 0
          - 1
          - 2
          - 3
```

{% endcode %}

### Edit the title of teleport GUI

{% hint style="info" %}
You can edit the title of teleport GUI on the messages.yml file.
{% endhint %}

{% code title="messages.yml" %}

```yaml
gui-teleport-title: '<black>Shrines Teleport'
```

{% endcode %}


---

# 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://docs.anotherlevel.it/documentation/shrine/teleport-system.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.
