Update hasItem authored by Lxlp's avatar Lxlp
**Description:** Tests if the target player, chest, or shulkerbox has the given number of given material **Description:** Tests if the target player, chest, or shulkerbox has exactly the given number of the given material.
--- ---
...@@ -7,17 +7,29 @@ ...@@ -7,17 +7,29 @@
| Attribute | Alias | Description | Default | | Attribute | Alias | Description | Default |
| --------- | ------- | ----------- | ------- | | --------- | ------- | ----------- | ------- |
| item | i, material, m | A material to check for. Can also check for MMOItems using `mmoitems.TYPE.ID` | DIRT | | item | i, material, m | A material to check for. Can also check for MMOItems using `mmoitems.TYPE.ID` | DIRT |
| amount | a | A Number to check for | >0 | | amount | a | The number of items to check for | >0 |
--- ---
**Examples:** **Examples:**
```yaml
Conditions:
- hasitem{i=STICK;amount=>1} true
``` ```
```yaml
Conditions: Conditions:
- hasitem{i=STICK;amount=2} true - hasitem{i=STICK;amount=<10} true
``` ```
```yaml
Conditions:
- hasitem{i=STONE;amount=1to10} true
```
--- ---
**Extra Information:** **Extra Information:**
... ...
......