blob: 5288ff5477f512597f4de4aeae8a5194fe218ebd (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
---
title: mobkilling
parent: Built-in task types
grand_parent: Task types
---
# mobkilling (task type)
Since v2.0
{: .label .label-green }
Kill a set amount of mobs.
This task type has specific logic implemented for compatibility with
[WildStacker](https://bg-software.com/wildstacker/).
{: .note }
Since Quests v3.13, `mobkillingcertain` and `mobkilling` have been
merged into one. Both names can be used to refer to this task.
## Options
| Key | Description | Type | Required | Default | Notes |
|----------------------------------|--------------------------------------------------------|----------------------------------------|----------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `amount` | The number of mobs to kill. | Integer | Yes | \- | \- |
| `mob` / `mobs` | The specific mob(s) to kill. | Entity type, or list of entity types | No | \- | Not specifying this field will allow all mob types to count towards the task. Please see [this list](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html) for entity types. |
| `name` / `names` | The specific name(s) of mobs to kill. | String, or list of strings | No | \- | Not specifying this field will allow mobs with any names to count towards the task. Ensure any colour codes in the name of the entity are specified, otherwise the match will not work. |
| `name-match-mode` | The match mode to be used to compare the strings | String | No | EQUALS | One of: `EQUALS`, `STARTS_WITH`, `ENDS_WITH`. |
| `spawn-reason` / `spawn-reasons` | The specific spawn reason(s) of mobs to kill. | Spawn reason, or list of spawn reasons | No | \- | Works only on Paper and its forks. Not specifying this field will allow mobs with any spawn reasons to count towards the task. Please see [this list](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html) for spawn reasons. |
| `hostile` | Whether the mob must be hostile. | Boolean | No | \- | If specified and set to false, only non-hostile mobs will count. |
| `item` | Specific item which should be used to kill mobs. | ItemStack | No | \- | Accepts standard [item definition](../configuration/defining-items). |
| `data` | The data code for the item. | Integer | No | 0 | This field is not used in Minecraft versions 1.13+, nor is it compatible with ItemStack definitions. |
| `exact-match` | Whether the item should exactly match what is defined. | Boolean | No | true | \- |
| `worlds` | Worlds which should count towards the progress. | List of world names | No | \- | \- |
## Examples
Kill 10 of any mob:
``` yaml
mobkilling:
type: "mobkilling"
amount: 10 # amount of mobs to be killed
hostile: true # (OPTIONAL) whether or not the mob is hostile - default: both
worlds: # (OPTIONAL) restrict to certain worlds
- "world"
```
Kill 10 of a blaze named (red) "Inferno":
``` yaml
mobkillingblaze:
type: "mobkilling"
amount: 10 # amount of mobs to be killed
mob: BLAZE # (OPTIONAL) type of mob
name: &cInferno # (OPTIONAL) this only allows blazes called "&cInferno" - default: any name
worlds: # (OPTIONAL) restrict to certain worlds
- "world"
```
Kill 10 of a blade named either (red) "Inferno" or (orange) "Furnace":
``` yaml
mobkillingblazemultiple:
type: "mobkilling"
amount: 10 # amount of mobs to be killed
mob: BLAZE # (OPTIONAL) type of mob
names: # (OPTIONAL) this only allows blazes called "&cInferno" OR "&6Furnace" - default: any name
- "&cInferno"
- "&6Furnace"
worlds: # (OPTIONAL) restrict to certain worlds
- "world"
```
Kill 10 of a blaze or creeper named either (red) "Inferno" or (orange)
"Furnace":
``` yaml
mobkillingblazemultiple:
type: "mobkilling"
amount: 10 # amount of mobs to be killed
mob: # (OPTIONAL) types of mobs
- BLAZE
- CREEPER
names: # (OPTIONAL) this only allows blazes called "&cInferno" OR "&6Furnace" - default: any name
- "&cInferno"
- "&6Furnace"
worlds: # (OPTIONAL) restrict to certain worlds
- "world"
```
Kill 10 of a blaze or creeper named either (red) "Inferno" or (orange)
"Furnace" with [quest item](../configuration/defining-items#quest-items)
"super_sword":
``` yaml
mobkillingblazecreepermultiple:
type: "mobkilling"
amount: 10 # amount of mobs to be killed
mob: # (OPTIONAL) types of mobs
- BLAZE
- CREEPER
names: # (OPTIONAL) this only allows blazes called "&cInferno" OR "&6Furnace" - default: any name
- "&cInferno"
- "&6Furnace"
item: # (OPTIONAL) specific item to kill with
quest-item: "super_sword"
worlds: # (OPTIONAL) restrict to certain worlds
- "world"
```
|