Configuring a Quest
A quest is a goal a player works toward inside a category. Each quest is one config file with a display, its reward (battlepass XP and which track it counts for), and the tasks that track progress. This page builds one from scratch.
Quick start
Open the
/plugins/EcoBattlepass/quests/folder and copy_example.ymlto a new file, e.g.chickens.yml. The file name is the quest ID.Set the
displayitem,display-name, anddescription, using the Item Lookup System for the icon.Set
battlepass-pointsandbattlepass-tierfor the XP reward and track.Under
tasks:, list the task IDs and thexpeach needs, then settask-amount.Add the quest ID to a category, run
/ecobattlepass reload, open the Quests GUI, and confirm it appears.
Naming and IDs
The file name without .yml is the quest ID. You use this ID in your categories.
The structure of a quest
| Part | What it controls |
|---|---|
| Display | The icon, name, and description shown in the Quests GUI |
| Reward | The battlepass XP awarded and which track it counts for |
| Tasks | The tasks that track progress, and how many are required |
# === Display: what shows in the Quests GUI ===
display:
item: player_head texture:"..." # Icon; Item Lookup System syntax
display-name: Chickens # Quest name
description:
- "Kill animals to earn points"
# === Reward: battlepass XP and track ===
battlepass-points: 100 # Battlepass XP awarded on completion
battlepass-tier: premium # "premium" or "free"; free quests progress for everyone
# === Tasks: what tracks progress ===
tasks:
- id: chickens # Task ID, from /tasks/
xp: 100 # Task XP required
task-amount: 1 # How many tasks from the list must be completed
Display
The display block is the quest's icon, name, and description.
display:
item: player_head texture:"..." # Icon; see the Item Lookup System
display-name: Chickens # Quest name
description:
- "Kill animals to earn points"
Reward
These fields set the battlepass XP and which track the quest counts toward.
battlepass-points: 100 # Battlepass XP awarded on completion
battlepass-tier: premium # "premium" or "free"; with "free", premium users still progress
Tasks
The tasks: list is the task IDs the quest tracks. task-amount lets you require only some of them.
tasks:
- id: chickens # Task ID, from /tasks/
xp: 100 # Task XP required to finish this task
task-amount: 1 # Tasks required from the list, e.g. 2 of 3 options
Where to go next
Add tasks: Configuring a task defines what each task tracks.
Group quests: Configuring a category is where you list this quest.
Item syntax: the Item Lookup System covers the display icon.
Defaults: the shipped quests live here.