> For the complete documentation index, see [llms.txt](https://wiki.flrp.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.flrp.dev/premium/trackerplus/tutorials/creating-a-reward.md).

# Creating a Reward

## Understanding the Format

This is a general explanation of what each section means and does.

```yaml
# MATERIAL - You know, something like DIAMOND_SWORD.
# MILESTONE_TYPE - This can either be once or interval. 
#     Once are ONE TIME rewards, interval happens every x blocks.
# AMOUNT - the amount of blocks or kills needed for this reward.
# REWARD_TYPE - This can either be commands: or enchants:
#
# for example:
# enchants:
#    - sharpness:1

milestones:
    <MATERIAL>:
        <MILESTONE_TYPE>:
            <AMOUNT>:
                <REWARD_TYPE>:
                    - "context"
```

{% hint style="info" %}
These values are for 1.13+. Please use the correct values for anything below that version.
{% endhint %}

## Diamond Pickaxe Example Reward

Lets make a reward for a diamond pickaxe, that gives a player 100 bucks and efficiency on their pickaxe when they reach 100 blocks.

```yaml
milestones:
    DIAMOND_PICKAXE: # <- Material
        once: # <- Since we want to give the player rewards when they hti 100 blocks,
              # we will use once since it's a one time thing.
            100: # <- the 100 blocks we want the player to reach.
                commands: # <- The commands that will run
                    - "eco give %player% 100" # <- give the player 100 bucks.
                enchants: # <- the enchantments that will apply to the item
                    - effeciency:1 # <- give the tool efficiency.
```

## Reward That Applies to Every Sword

This time, lets make a reward that applies to every sword available. The reward will give the player $100 for every 50 mobs they kill.

```yaml
milestones:
    EVERY_SWORD: # <- EVERY_ keyword.
        interval: # <- Since we want to give the player rewards each time they kill 
              # 50 mobs, we will use interval since it's repeating.
            50: # <- the 50 kills we want the player to reach.
                commands: # <- The commands that will run
                    - "eco give %player% 100" # <- give the player 100 bucks.
```

{% hint style="info" %}
The EVERY\_ keyword will work with most tool types.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.flrp.dev/premium/trackerplus/tutorials/creating-a-reward.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
