> For the complete documentation index, see [llms.txt](https://gyzer.gitbook.io/legendarydailyquests-english/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gyzer.gitbook.io/legendarydailyquests-english/quest-configuration/quest-template/create-a-new-quest.md).

# Create a new quest

create a new quest named `Swiming Man` ：

* The task goal is to swim **100m**
* &#x20;The world is limited to **'world'**
* add the quest to **DailyQuest**

## Start writing

### 1.write quest goal&#x20;

At this point, you will find that there seems to be no goal of swimming?

So we can implement it through **conditions**

```
goals:
  swim:
    type: MOVE
    value: '' #because the objective can have no value so this filled empty.
    amount: 100 #100m
    conditions:
    - "[world]world" #Check if the current world name is 'world'
    #If serber's version above 1.13
    - "[swim]" #Check if the player is swimming （1.13+）
    #If server's version below 1.13
    - "[stand]WATER" #Check if the player is in water (1.13 below)
```

So far, the task goal has been completed.

### 2.write quest basics

```
display: "&fSwiming Man"
material: IRON_BOOTS
amount: 1
model: 0
description:
  # because the goal we have set named "swim", so %progress_swim% is written here.
  - " &7&l· &#bcd2eeSwiming &f(&c%progress_swim%/100&f)"
reward_description:
  - " &7&l· &#9AFF9AMoney ×100"
goals:
  swim:
    type: MOVE
    value: '' #because the objective can have no value so this filled empty.
    amount: 100
    conditions:
    - "[world]world" #Check if the current world name is 'world'
    #If serber's version above 1.13
    - "[swim]" #Check if the player is swimming （1.13+）
reward:
  run:
    - 'console_command;eco give %player% 100'
```

### 3.save file

save the yml to `Quests` folder amd name it to `Swimming_Man.yml`&#x20;

### 4.add the quest to a categorie

open the `DailyQuests.yml` in `Categories` folder

add the **quest id** to `settings.quests`

```
settings:
  #display
  display: '&eDaily Quests'
  #refresh tasks cycle (by day)
  refresh: 1
  #refresh tasks amount
  amount: 5
  #refresh quests list (Randomly select tasks from below)
  quests:
    - Butcher
    - Golden_Miner
    - Material_Shortage_1
    - Material_Shortage_2
    - Stonemason
    - Happy_Trade
    - Hunger
    - Running_Man
    - Adventurer
    - Adventurer_2
    - Adventurer_3
    - Adventurer_4
    - Hungriness
    - Farmer
    - Farmer_2
    - Goodbye_World
    - FishMan
    - FishMan2
    - Breeder
    - Blacksmith
    - Clother
    - Warrior
    - Enchanter
    - Timer
    - Refiner
    - Swimming_Man #here
```

### 5.reload plugin

Afterwards, you can randomly access the task!

<figure><img src="/files/7SEG09ToWKouwiTZoC3w" alt=""><figcaption></figcaption></figure>
