Choose the quest type
Use the files inside quests/:
| Type | File | Repeat interval |
|---|---|---|
| Daily | quests-daily.yml | 24 hours after completion. |
| Weekly | quest-weekly.yml | Seven days after completion. |
| Permanent | quest-permanent.yml | No time-based refresh. |
Activate the quest in the menu before working on its objectives. For a quest with multiple objectives, complete every target.
Example: catch five Pokémon
Add this quest to quests/quests-daily.yml:
primeiras_capturas:
display: '&aFirst catches'
scope: PERSONAL
xpGain: 100
points_gain: 20
description:
- '&7Catch 5 Pokémon.'
trigger_complete: []
objectives:
capturar:
id: catch_pokemon
description: '&7Catch Pokémon'
progress: '&7%progress%/%target%'
type: 'ALL'
target: 5
Set xpGain for XP, points_gain for points and target for the goal. Choose the activity in id and the filter in type. See the objectives guide for the options.
For an extra completion prize, add a command to trigger_complete, such as give {player} minecraft:diamond 1.
Number of quests
In config.yml, use quest-settings.active_max_quest to limit active quests. In quest-settings.roll, configure enabled and amount for each category to offer a selection of quests per player.
The number offered differs from the number that can be active. With three available and a limit of two active quests, choose which two to do first.
Keep quest and objective IDs when editing content already in use. Apply changes with /mbattlepass reload.
Quest fields
| Field | Setting |
|---|---|
| Entry ID | Unique, stable quest identifier |
| display / description | Menu name and description |
| scope | Use PERSONAL for regular quests; GLOBAL does not create a shared server-wide counter |
| xpGain / points_gain | XP and points awarded on completion |
| trigger_complete | Console commands on completion, without the cmd: prefix |
| objectives | Objectives that must be completed |
| Objective ID | Unique identifier within the quest |
| id / type / target | Activity, filter and positive target |
| progress | Text containing %progress% and %target% |
In completion commands, use {player} or %player%. Commands run in the console; do not expect @s to represent the player completing the quest.
Random selection by category
quest-settings:
active_max_quest: 2
roll:
daily:
enabled: true
amount: 3
weekly:
enabled: true
amount: 5
permanent:
enabled: false
amount: 0
Use enabled: false to offer every quest in a category; when random selection is enabled, use a positive amount. The active limit covers all categories together, and mbattlepass.questactive.N permissions can override the base limit.
Daily selection refreshes 24 hours after the last roll; weekly selection refreshes after seven days. Permanent selection does not refresh by time. Rerolling clears that category's state. Without random selection, the repeat interval starts at completion rather than at a fixed midnight reset.
Canceling a quest does not award its prize. Do not configure a custom duration or a monthly category: use a monthly season with the available categories. See 30 complete examples.