aboutsummaryrefslogtreecommitdiffstats
path: root/docs/task-types
diff options
context:
space:
mode:
Diffstat (limited to 'docs/task-types')
-rw-r--r--docs/task-types/dealdamage-(task-type).md18
1 files changed, 12 insertions, 6 deletions
diff --git a/docs/task-types/dealdamage-(task-type).md b/docs/task-types/dealdamage-(task-type).md
index 30d19b47..d485b4f1 100644
--- a/docs/task-types/dealdamage-(task-type).md
+++ b/docs/task-types/dealdamage-(task-type).md
@@ -13,12 +13,18 @@ Deal a certain amount of damage.
## 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. |
-| `allow-only-creatures` | Whether the entity must be a creature. | Boolean | No | True | \- |
-| `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. |
-| `worlds` | Worlds which should count towards the progress. | List of world names | No | \- | \- |
+| 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. |
+| `allow-only-creatures` | Whether the entity must be a creature. | Boolean | No | True | \- |
+| `mob` / `mobs` | The specific mob(s) to deal damage to. | 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. |
+| `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 | \- | \- |
+
+{: .caution }
+It's not possible to use item option for projectile weapons (like bow or other projectile shooters). Currently, the API is insufficient to implement such a feature without any unwanted side effects.
## Examples