ConditionEntity

holding

Checks if the target is holding a given material

Configuration Fields (1)

NameTypeDefaultDescription
types
types, type, t, material, mat, m, item, i
AbstractItemMatcherA list of materials to check

Examples & Notes

Examples

# Make sure you use all caps for materials, otherwise the console will say it is not a valid material!
Conditions:
- holding{m=DIAMOND_SWORD} true

This is an example of using an item from MMOItems. mmoitems.category.item

Conditions:
- holding{m=mmoitems.TOOL.PICKAXE_5} true

Universal Condition Options

Author:
Ashijin
Community-maintained documentation for the Mythic plugin ecosystem.