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