|
**Description:** Tests if the target player or an item container 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:**
|
|
## Attributes
|
|
|
|
|
|
| Attribute | Alias | Description | Default |
|
|
| Attribute | Aliases | Description | Default |
|
|
|-----------|----------------|----------------------------------------------------------------------------------------------|---------|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| item | i, material, m | A vanilla, or mythicitem, to check for. Can also check for MMOItems using `mmoitems.TYPE.ID` | DIRT |
|
|
| item | i, material, m | The item to check for | DIRT |
|
|
| amount | a | The number of items to check for | \>0 |
|
|
| amount | a | The amount to check for | >0 |
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
**Examples:**
|
|
## Examples
|
|
|
|
|
|
```yaml
|
|
```yaml
|
|
Conditions:
|
|
Conditions:
|
|
- hasitem{i=stick;amount=>1} true
|
|
- hasitem{i=stick;amount=>1} true
|
|
```
|
|
```
|
|
```yaml
|
|
```yaml
|
|
Conditions:
|
|
Conditions:
|
|
- hasitem{i=my_custom_item;amount=<10} true
|
|
- hasitem{i=my_custom_item;amount=<10} true
|
|
```
|
|
```
|
|
```yaml
|
|
```yaml
|
|
Conditions:
|
|
Conditions:
|
|
- hasitem{i=mmoitems.SWORD.CUTLASS;amount=1to10} true
|
|
- hasitem{i=mmoitems.SWORD.CUTLASS;amount=1to10} true
|
|
```
|
|
``` |
|
|
|
\ No newline at end of file |
|
---
|
|
|
|
|
|
|
|
**Extra Information:**
|
|
|
|
|
|
|
|
- [x] Type: Entity, Location |
|
|
|
\ No newline at end of file |
|
|