... | @@ -6,12 +6,17 @@ Checks if the target is holding a given material |
... | @@ -6,12 +6,17 @@ Checks if the target is holding a given material |
|
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
| Attribute | Aliases | Description | Default |
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| material | m, type, t| A material or MythicItem internal id to check for | |
|
|
| material | m, type, t| A material, MythicItem or MMOItems internal id to check for | |
|
|
|
|
|
|
|
|
|
|
## 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:
|
|
|
|
- holding{m=mmoitems.TOOL.PICKAXE_5} true
|
|
``` |
|
``` |
|
|
|
\ No newline at end of file |