Skip to main content

How to make a Task

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 quests and placeholders. ID's must be lowercase letters, numbers, and underscores only.

Tasks are the goals that players must complete in order to complete quests.

Example Task Config

description: "&fBreak stone blocks (&a%xp%&8/&a%required-xp%&f)"

xp-gain-methods:
- trigger: mine_block
multiplier: 0.5
args:
chance: 50
filters:
blocks:
- netherrack

on-complete:
- id: send_message
args:
message: "Task Completed!"

Understanding all the sections

The Task Config Section

description: "&fBreak stone blocks (&a%xp%&8/&a%required-xp%&f)" # The description of the task.

The XP Gain Methods Section

# An XP gain method takes a trigger, a multiplier, conditions, 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: move
multiplier: 0.5
conditions:
- id: in_world
args:
world: world_nether

The On-Complete Effects Section

# An optional list of effects to run when a player completes the task
# Read here: https://plugins.auxilor.io/effects/configuring-an-effect
on-complete:
- id: send_message
args:
message: "Task Completed!"

The task rewards uses the effects system. You can configure effects, conditions, filters, and mutators in this section to run when the task is completed.

Check out Configuring an Effect to understand how to configure this section correctly.

For more advanced users or setups, you can configure chains in this section to string together different effects under one trigger. Check out Configuring an Effect Chain for more info.

Internal Placeholders

PlaceholderValue
%xp%The amount of XP the player has for the task
%required-xp%The amount of XP required to complete the task

Default configs

The default configs can be found here.
You can find additional user-created configs on lrcdb.