Quests
The quest file, what counts with target, reset types, premium only quests and ItemsAdder ids.
Quests are how players earn Battle Pass XP. Each season has its own quests.yml with as many quests as you like. A quest counts one thing (blocks broken, duels won, minutes played), and when the count reaches its amount the player gets its XP and rewards straight away.
A quest
season-version: 1
quests:
diamond_miner:
type: BREAK_BLOCK
target: [DIAMOND_ORE, DEEPSLATE_DIAMOND_ORE]
amount: 20
battlepass-xp: 750
reset: WEEKLY
display-name: "<#f2b544>Diamond Miner"
description:
- "<white>Break 20 Diamond Ore"
icon:
material: DIAMOND_ORE
itemsadder: ""
premium-only: false
rewards:
money: 2500
complete-sound: quest-completeThe key under quests: (diamond_miner) is the quest id, used in commands and placeholders.
| Key | What it does | Default |
|---|---|---|
type | What the quest counts. A built-in type from Quest types, or a namespaced one like towertrials:floor_complete from Arrow plugin hooks or another plugin | required |
target | What counts, see below. Leave it out to count anything. | anything |
amount | How many are needed. Decimals work, for money and damage. | 1 |
battlepass-xp | Battle Pass XP given on completion | 0 |
reset | When the quest starts over: DAILY, WEEKLY, MONTHLY, SEASONAL or NONE | DAILY |
display-name | Name in menus and messages | the id |
description | Lines under the name in the quests menu | none |
icon | Item shown in the quests menu. itemsadder replaces material when set. | PAPER |
premium-only | Only premium owners make progress. Others see the locked look in the menu. | false |
rewards | Extra rewards on completion, same format as level rewards | none |
complete-sound | Sound key from sounds.yml played on completion | quest-complete |
A quest with no type is skipped. A quest with an unknown reset uses DAILY, with a console warning.
Targets
target filters what counts. It takes one value, a list, or nothing:
target: DIAMOND_ORE # one value
target: [OAK_LOG, SPRUCE_LOG, BIRCH_LOG] # any of these
# left out: anything counts- Case does not matter, and a
minecraft:prefix is ignored, sodiamond_ore,DIAMOND_OREandminecraft:diamond_oreare the same. *also means "anything".- What a target means depends on the type: a block or item name, a mob type, a command, a tower id, a boss id. Each type's page row says which.
ItemsAdder ids
Custom blocks, crops, items and mobs from ItemsAdder are targeted as itemsadder:<namespace>:<id>:
target: [itemsadder:myores:ruby_ore, DIAMOND_ORE]Vanilla names and ItemsAdder ids can be mixed in one list. The types that take ItemsAdder ids are BREAK_BLOCK, PLACE_BLOCK, HARVEST, KILL_MOB, CRAFT, OBTAIN_ITEM and FISH. A custom block broken once counts once.
For an ItemsAdder crop, the target is the id of the crop's seed item (itemsadder:myfarm:tomato_seeds), because that is the id ItemsAdder gives the planted crop. A crop with no seed item falls back to the block id.
Reset types
reset | When it starts over | Set in config.yml |
|---|---|---|
DAILY | Every day at the daily time | resets.daily.time |
WEEKLY | On the weekly day at the weekly time | resets.weekly.day, resets.weekly.time |
MONTHLY | On the monthly day at the monthly time. Day 31 in a 30 day month uses the last day. | resets.monthly.day, resets.monthly.time |
SEASONAL | Lasts the whole season, starts over in the next one | |
NONE | Never. Progress carries across seasons. |
- Every time is in the
timezonefromconfig.yml. - A reset that happens while the server is off is applied as soon as the server is back. Offline players simply see the new period when they join.
- With
resets.announce: true, online players get thequests.reset-daily,reset-weeklyorreset-monthlymessage, but only if the running season has quests with that reset. - In the quests menu, the Seasonal filter shows
SEASONALandNONEquests together.
While a quest moves
- A completed quest stops counting until it resets.
- With
quests.progress-actionbar: truethe player sees an action bar with the quest name, a progress bar and the numbers, at most once everyquests.progress-actionbar-cooldownmilliseconds (1500 by default). - The
quest-progresssound plays on every bit of progress. It is turned off by default insounds.yml. - On completion: the Battle Pass XP, the quest's
rewards, itscomplete-sound, and thequests.completedmessage (chat and a subtitle by default).
Reach style objectives
A few hook objectives do not add up. towertrials:reach_floor keeps the highest value reached, and zrivals:reach_mmr follows the current value, so the quest goes back down when the player loses MMR. For both, amount is the value to reach, and once it is reached the quest stays completed:
tower_climber:
type: towertrials:reach_floor
amount: 25 # completes when the player reaches floor 25
battlepass-xp: 3000
reset: SEASONALAny quest can pick how its progress is kept with value-mode:
value-mode | Progress |
|---|---|
ADD | Every report adds to the total (most quest types) |
HIGHEST | Keeps the highest value ever reported |
CURRENT | Shows the latest value reported, so it can go down |
Leave it out to use the objective's own mode. For example value-mode: HIGHEST on an MMR quest keeps the best MMR the player reached instead of their current one.
Quest types nobody provides
A namespaced type that no installed plugin provides (for example myplugin:boss_kill while that plugin is not installed) still loads. The console says it only moves through /battlepass admin progress, which lets any plugin, script or console push progress into it:
/battlepass admin progress <player> <objective> <amount> [filter]The [filter] is matched against the quest's target. An unknown type without a namespace (a typo like BREAK_BLOK) gets a console warning.
The bundled Season 1 quests
The example season mixes daily, weekly, monthly and seasonal quests, uses every built-in type, and has at least one quest for each Arrow plugin that adds quest types. Quests for a plugin you do not have simply never move, so delete them or swap in your own.