# Location quest

For this type of quest, you must specify a world and X, Y and Z coordinates.\
\
For example, if I want the player to go in this location, which is in the world `Spawn` :\
![](https://2885048811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpDPOmqvkV7mM9iTqLNUb%2Fuploads%2Fkuxvqfqc1Y48HFxcDIQn%2Fimage.png?alt=media\&token=a7f75e9b-c206-457d-a3f6-df232c6af265)\
\
The coordinates will be like that :\
**location:**\
&#x20;  **world:** Spawn\
&#x20;  **x:** -3\
&#x20;  **y:** 110 \
&#x20;  **z:** 26

You can also specify a radius, to create a detection zone.\
**location:**\
&#x20;  **world:** Spawn\
&#x20;  **x:** -3\
&#x20;  **y:** 110 \
&#x20;  **z:** 26\
&#x20;  **radius:** 5\
\
Here, the quest will be validated if the player is within 5 blocks of each side of the destination coordinate.

#### Examples

{% code title="Location quest :" %}
```
1:
    name: "&aExplorer"
    menu_item: SKELETON_SKULL
    description:
        - "&cGo to the following coordinates:"
        - "&cWorld: &bSpawn"
        - "&cX: &b-4"
        - "&cY: &b103"
        - "&cZ: &b45"
        - ""
        - "&6Reward:"
        - "&7A \"hello\" message from the server :)"
      quest_type: LOCATION
      location:
        world: world
        x: -4
        y: 103
        z: 7
        radius: 3
      reward:
        reward_type: COMMAND
        commands:
          - "say Hello"
```
{% endcode %}
