Has Item
Description
Checks whether the target player's inventory contains at least a given amount of a matching item. The filter accepts vanilla materials and Mythic/Crucible item names, and can be resolved dynamically from placeholders. The condition counts the total stack sizes of all matching items.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| item | i | The item filter to match | the inline argument |
| amount | a | The minimum total count required across the inventory | 1 |
| strict | exact, e | Whether to match the item exactly | false |
| runtime | dynamic, rt | Re-resolve the filter on every check. Needed when the filter uses placeholders. Automatically enabled when the filter is not static | false |
Examples
Conditions:
- hasItem{item=GOLD_INGOT;amount=5} @self
Skills:
- consumeItem{item=MYTHIC_COIN;amount=10} @self ~onUse ?hasItem{i=MYTHIC_COIN;a=10}