Changes
Page history
Update hasItem
authored
Jan 01, 2023
by
Lxlp
Show whitespace changes
Inline
Side-by-side
Skills/conditions/hasItem.md
View page @
0f843d2a
**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 @@
| 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 |
A Number
to check for | >0 |
| amount | a |
The number of items
to check for | >0 |
---
**Examples:**
```
yaml
Conditions
:
-
hasitem{i=STICK;amount=>1}
true
```
```
yaml
Conditions
:
- hasitem{i=STICK;amount=
2
} true
-
hasitem{i=STICK;amount=
<10
}
true
```
```
yaml
Conditions
:
-
hasitem{i=STONE;amount=1to10}
true
```
---
**Extra Information:**
...
...
...
...