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
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ยท 	AFF9AMoney ร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
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!

Last updated