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

  1. Open the /plugins/EcoBattlepass/quests/ folder and copy _example.yml to a new file, e.g. chickens.yml. The file name is the quest ID.

  2. Set the display item, display-name, and description, using the Item Lookup System for the icon.

  3. Set battlepass-points and battlepass-tier for the XP reward and track.

  4. Under tasks:, list the task IDs and the xp each needs, then set task-amount.

  5. 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

PartWhat it controls
DisplayThe icon, name, and description shown in the Quests GUI
RewardThe battlepass XP awarded and which track it counts for
TasksThe 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.