xBattlepass
  • xBattlepass
  • Configuration
    • How to make a BattlePass
    • How to make a Reward
    • How to make a BattleQuest
      • Configuring a Task
      • Configuring a Quest
      • Configuring a Category
  • Default Configs
    • config.yml
    • lang.yml
  • The Effects System
    • Conditions
      • has_premium_battlepass
      • has_battlepass_tier
    • Effects
      • battlepass_task_xp_multiplier
      • battlepass_xp_multiplier
      • give_battlepass_task_xp
      • give_battlepass_tier
      • give_battlepass_xp
      • set_battlepass_tier
    • Filters
      • battlepass_reward
      • battlepass_task
    • Triggers
  • Useful
    • 💼 Commands & Permissions
    • 🎯 Internal Placeholders
    • 🎯 PlaceholderAPI
    • 💻 API
  • Changelogs
    • 🐛 Versions
      • 📋 1.0.1
      • 📋 1.0.2
      • 📋 1.0.3
      • 📋 1.0.4
      • 📋 1.0.5
      • 📋 1.1.0
Powered by GitBook
On this page
  • Default configs
  • How to add tasks
  • Example Task Config
  • Understanding the Sections
Edit on GitHub
  1. Configuration
  2. How to make a BattleQuest

Configuring a Task

Default configs

The default configs can be found here.

How to add tasks

Each task is its own config file, placed in the /tasks/ folder, and you can add or remove them as you please. There's an example config called _example.yml to help you out!

The ID of the Task is the file name. This is what you use in your Quests. ID's must be lowercase letters, numbers, and underscores only.

Example Task Config

display:
  display-name: Chickens
  lore:
    - "&7Kill chickens"
    - "&7%current_task_xp%/%required_task_xp%"

xp-gain-methods:
  - trigger: kill
    value: 1
    filters:
      entities:
        - chicken

Understanding the Sections

The Display Section

display:
  # The display name and lore of the task, this shows in the Quest.
  display-name: Chickens
  lore:
    - "&7Kill chickens"
    - "&7%current_task_xp%/%required_task_xp%"

The XP Gain Methods

# An XP gain method takes a trigger, a multiplier, conditions, args and filters.
# The 'multiplier' takes the value produced by the trigger and multiplies it
# Alternatively, you can use 'value' to count a specific number and not a multiplier
xp-gain-methods:
  - trigger: kill
    value: 1 # You can also use "multiplier" here.
    filters: # Optional
      entities:
        - chicken

Internal Placeholders

Placeholder
Value
Options

%current_task_xp%

The current task xp.

add _formatted for commas

%required_task_xp%

The required task xp.

add _formatted for commas

PreviousHow to make a BattleQuestNextConfiguring a Quest

Last updated 1 day ago

Read for the triggers.

here