aboutsummaryrefslogtreecommitdiffstats
path: root/docs/task-types/brewing-(task-type).md
blob: 6bf722ee1ad1b977e3fed8a78bc032958754322a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
title: brewing
parent: Built-in task types
grand_parent: Task types
---

# brewing (task type)

Since v2.0.13
{: .label .label-green }

Minecraft 1.17+ required
{: .label .label-purple }

Brew a set amount of potions, optionally of a specific ingredient.

## Options

| Key           | Description                                                  | Type                   | Required | Default | Notes                                                                                                                                                                                                                                                                        |
|---------------|--------------------------------------------------------------|------------------------|----------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `amount`      | The number of potions to brew.                               | Integer                | Yes      | \-      | \-                                                                                                                                                                                                                                                                           |
| `ingredient`  | The specific ingredient to brew.                             | Material, or ItemStack | No       | Any     | Accepts standard [item definition](../configuration/defining-items). Please see [this list](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html) (1.13+) or [this list](https://helpch.at/docs/1.12.2/org/bukkit/Material.html) (1.8-1.12) for material names. |
| `exact-match` | Whether the ingredient should exactly match what is defined. | Boolean                | No       | true    | \-                                                                                                                                                                                                                                                                           |
| `worlds`      | Worlds which should count towards the progress.              | List of world names    | No       | \-      | \-                                                                                                                                                                                                                                                                           |

## Examples

Brew 8 potions:

``` yaml
brewing:
  type: "brewing"
  amount: 10                            # amount of potions brewed
  worlds:                               # (OPTIONAL) restrict to certain worlds
   - "world"
```

Brew 8 potions using sugar:

``` yaml
brewing:
  type: "brewing"
  ingredient: "sugar"
  amount: 10                            # amount of potions brewed
  worlds:                               # (OPTIONAL) restrict to certain worlds
   - "world"
```