Changes
Page history
Updated description for item field and examples
authored
Mar 28, 2023
by
Phillip
Hide whitespace changes
Inline
Side-by-side
Skills/conditions/hasItem.md
View page @
ce9a5be1
**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:**
**Attributes:**
| 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
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 |
| amount | a
| The number of items to check for
|
\
>
0
|
---
---
...
@@ -15,21 +15,17 @@
...
@@ -15,21 +15,17 @@
```
yaml
```
yaml
Conditions
:
Conditions
:
-
hasitem{i=
STICK
;amount=>1}
true
-
hasitem{i=
stick
;amount=>1}
true
```
```
```
yaml
```
yaml
Conditions
:
Conditions
:
-
hasitem{i=
STICK
;amount=<10}
true
-
hasitem{i=
my_custom_item
;amount=<10}
true
```
```
```
yaml
```
yaml
Conditions
:
Conditions
:
-
hasitem{i=
STONE
;amount=1to10}
true
-
hasitem{i=
mmoitems.SWORD.CUTLASS
;amount=1to10}
true
```
```
---
---
**Extra Information:**
**Extra Information:**
...
...
...
...