Changes
Page history
MMO part removed, not on our end.
authored
May 27, 2026
by
mikekevie
Hide whitespace changes
Inline
Side-by-side
Skills/Conditions/holding.md
View page @
e853e727
## Description
## Description
Checks if the target is holding a given material.
Checks if the target is holding a given material.
Uses the
[
Item Matcher
](
/Items/Item-Matcher
)
Uses the
[
Item Matcher
](
/Items/Item-Matcher
)
## Attributes
## Attributes
| Attribute | Aliases | Description | Default |
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
|-----------|-----------|----------------------------------------------------------------------|---------|
| material | m, type, t, item, i, mat, types | A material, MythicItem or MMOItems internal id to check for |
<!--type:Item-->
|
| material | m, type, t, item, i, mat, types | A material or MythicItem to check for |
<!--type:Item-->
|
| strict | exact, e | Whether the matcher should more strictly match the target item | false |
| strict | exact, e | Whether the matcher should more strictly match the target item | false |
| vanillaonly | vanilla | Whether the matched item can only be a vanilla one | false |
| vanillaonly | vanilla | Whether the matched item can only be a vanilla one | false |
## Examples
## Examples
```
yaml
```
yaml
# Make sure you use all caps for materials, otherwise the console will say it is not a valid material!
# Make sure you use all caps for materials, otherwise the console will say it is not a valid material!
Conditions
:
Conditions
:
-
holding{m=DIAMOND_SWORD}
true
-
holding{m=DIAMOND_SWORD}
true
```
```
This is an example of using an item from MMOItems. mmoitems.category.item
```
yaml
Conditions
:
<!--TAGS-->
-
holding{m=mmoitems.TOOL.PICKAXE_5}
true
```
<!--TAGS-->
<!--tag:ItemMatcher-->
<!--tag:ItemMatcher-->
\ No newline at end of file