blob: d25943080bb740b3bbbee55a6a457292da2d8722 (
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
|
---
title: mythicmobs_dealdamage
parent: External task types
grand_parent: Task types
---
# mythicmobs_dealdamage (task type)
Not released yet (dev builds)
{: .label .label-green }
Plugin 'MythicMobs' required
{: .label }
Deal a certain amount of damage to a MythicMobs mob.
## Options
| Key | Description | Type | Required | Default | Notes |
|-------------------|--------------------------------------------------------|---------------------|----------|---------|----------------------------------------------------------------------------------------------------------|
| `amount` | The amount of damage needed. | Integer | Yes | \- | Damage is measured in HP, 1 heart = 2 HP. A player has 20 HP by default, with no status effects applied. |
| `name` / `names` | The MythicMob ID. | String | Yes | \- | \- |
| `name-match-mode` | The match mode to be used to compare the strings | String | No | EQUALS | One of: `EQUALS`, `STARTS_WITH`, `ENDS_WITH`. |
| `level` | The level the mob must be at. | Integer | Yes | \- | \- |
| `min-level` | The minimum level the mob must be at. | Integer | Yes | \- | \- |
| `item` | Specific item which should be used to deal damage. | 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
Deal 200 damage to a mythic mob with the ID "SkeletalKnight" of at least level 3:
``` yaml
mythicmobs:
type: "mythicmobs_dealdamage"
amount: 200 # amount of damage to be dealt
name: "SkeletalKnight" # internal name of mob (name in config - NOT display name)
min-level: 3 # (OPTIONAL) the minimum level the mob must be for it to count
worlds: # (OPTIONAL) restrict to certain worlds
- "world"
```
|