inInventory: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
; inInventory <[[References#Item_Names|item name]]> <[[range]]> | ; inInventory <[[References#Item_Names|item name]]> <[[References#Range_Operators|range]]> | ||
: If this option is set, the block will only be used if the amount of each of the specified list of items in inventory are within the corresponding specified ranges. The value could be a comma-separated list of (<item name> <range>) pairs: | : If this option is set, the block will only be used if the amount of each of the specified list of items in inventory are within the corresponding specified ranges. The value could be a comma-separated list of (<item name> <range>) pairs: | ||
Syntax: | Syntax: | ||
<item> <range>[, <item1> <range1>[, ...]] | <item> <[[References#Range_Operators|range]]>[, <item1> <[[References#Range_Operators|range1]]>[, ...]] | ||
== Examples == | == Examples == |
Revision as of 21:49, 23 January 2017
- inInventory <item name> <range>
- If this option is set, the block will only be used if the amount of each of the specified list of items in inventory are within the corresponding specified ranges. The value could be a comma-separated list of (<item name> <range>) pairs:
Syntax: <item> <range>[, <item1> <range1>[, ...]]
Examples
It will use Aqua Benedicta if there are any Empty Bottle in your inventory and you are not sitting:
useSelf_skill AL_HOLYWATER { notWhileSitting 1 inInventory Empty Bottle > 0 }
Notes
It will not recognize items that are equipped.