Create a new quest

create a new quest named Swiming Man

  • The task goal is to swim 100m

  • The world is limited to 'world'

  • add the quest to DailyQuest

Start writing

1.write quest goal

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

3.save file

save the yml to Quests folder amd name it to Swimming_Man.yml

4.add the quest to a categorie

open the DailyQuests.yml in Categories folder

add the quest id to settings.quests

5.reload plugin

Afterwards, you can randomly access the task!

Last updated