Updated description for item field and examples authored by Phillip's avatar Phillip
**Description:** Tests if the target player, chest, or shulkerbox has exactly the given number of the given material.
**Description:** Tests if the target player or an item container has exactly the given number of the given material.
---
**Attributes:**
| Attribute | Alias | Description | Default |
| --------- | ------- | ----------- | ------- |
| item | i, material, m | A material to check for. Can also check for MMOItems using `mmoitems.TYPE.ID` | DIRT |
| amount | a | The number of items to check for | >0 |
| Attribute | Alias | Description | Default |
|-----------|----------------|----------------------------------------------------------------------------------------------|---------|
| item | i, material, m | A vanilla, or mythicitem, to check for. Can also check for MMOItems using `mmoitems.TYPE.ID` | DIRT |
| amount | a | The number of items to check for | \>0 |
---
......@@ -15,21 +15,17 @@
```yaml
Conditions:
- hasitem{i=STICK;amount=>1} true
- hasitem{i=stick;amount=>1} true
```
```yaml
Conditions:
- hasitem{i=STICK;amount=<10} true
- hasitem{i=my_custom_item;amount=<10} true
```
```yaml
Conditions:
- hasitem{i=STONE;amount=1to10} true
- hasitem{i=mmoitems.SWORD.CUTLASS;amount=1to10} true
```
---
**Extra Information:**
......
......