Quests are in plugins/OtPass/quests.yml. Run /pass admin reload after a change. The file has three pools: daily, weekly and season. The default file holds 16 daily quests, 11 weekly quests and 8 season quests.
A quest#
daily:
iron:
type: break
target: [IRON_ORE, DEEPSLATE_IRON_ORE]
amount: 16
xp: 200
name: 'Mine 16 iron ore'
icon: RAW_IRON
fisher:
type: fish
amount: 12
xp: 150
name: 'Catch 12 fish'
weekly:
netherite:
type: break
target: ANCIENT_DEBRIS
amount: 8
xp: 1000
name: 'Mine 8 ancient debris'
premium: true
season:
dragon:
type: kill
target: ENDER_DRAGON
amount: 1
xp: 3000
name: 'Defeat the Ender Dragon'
| Key | Default | What it does |
|---|---|---|
The name under the pool (iron) |
required | The quest id. Up to 40 letters, digits, - and _. Other ids are skipped and logged. |
type |
required | One of the types below. An unknown type is skipped and logged. |
target |
any | One name or a list of names. Leave it out, or use ANY or *, to count anything of that type. |
amount |
1 |
How many are needed. At least 1. |
xp |
100 |
XP for finishing the quest. At least 0. |
name |
the type and the amount | The quest name. Uses MiniMessage. |
icon |
depends on the type | The item shown in the menu. |
premium |
false |
Only counts for players with premium. |
Target names are not case sensitive and spaces count as underscores. A name that does not exist is logged as unknown target and left out. When no valid target is left the quest is skipped.
Quests are not repeatable inside their period. A daily quest that is done stays done until the next reset. The id of a quest is part of how the progress is saved, so do not rename an id while players are working on it.
Quest types#
| Type | Counts | Target |
|---|---|---|
break |
Blocks broken | Blocks |
place |
Blocks placed | Blocks |
harvest |
Fully grown crops broken | WHEAT, CARROTS, POTATOES, BEETROOTS, NETHER_WART, COCOA, TORCHFLOWER_CROP, PITCHER_CROP |
kill |
Mobs killed by a player. Players do not count. | Entity types, such as ZOMBIE |
kill_player |
Players killed | None |
fish |
Items caught while fishing, by the amount caught | Items, such as COD |
craft |
Items crafted, shift click included | The crafted item |
smelt |
Items taken from a furnace | The item taken |
eat |
Food eaten and potions drunk | The item |
breed |
Animals bred | Entity types |
tame |
Animals tamed | Entity types |
enchant |
Items enchanted at an enchanting table | The item |
trade |
Villager trades, one per trade | The item received |
walk |
Blocks walked on the ground | None |
playtime |
Minutes played while not AFK | None |
Setting a target on kill_player, walk or playtime makes the quest invalid.
Details:
- A fully grown crop counts for
harvestand also forbreak. walkcounts whole blocks while the player is on the ground. It does not count in a vehicle, while flying or gliding, or in water.playtimeadds one every minute for players who are not AFK and not in creative or spectator mode (seeanti-exploit).- With
anti-exploit.ignore-placed-blocks, a block placed by a player does not count forbreakwhen it is broken again. - With
anti-exploit.ignore-spawner-mobs, mobs from spawners and similar sources do not count forkill.
Without icon, an icon is chosen per type, for example IRON_PICKAXE for break and CLOCK for playtime. Any item name works as icon.
Pools and rotation#
The daily and weekly pools are shuffled with a fixed seed from the season number and the day or week. Every player and every server with the same files gets the same quests. The season pool is always fully active.
Quest progress of old days and weeks is removed from the database every hour, and when the quests change.
Progress for a daily or weekly quest is lost when the quest changes. Progress for season quests stays for the whole season.