Mmoitems Count Fact
Count MMOItems in player's inventory or hand
Поля
| Поле | Тип | По умолчанию | Описание | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
group | Ref<GroupEntry> | — | — | ||||||||
items | List<MMOItemIdentifier> | empty | List of MMOItems to count
|
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
type | Var<MMOItemType> | — | MMOItems type (e.g., SWORD, ARMOR) |
itemMMOItemIdentifierMMOItemIdentifier (1)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
type | Var<MMOItemType> | — | MMOItems type (e.g., SWORD, ARMOR) |
checkInventoryVar<Boolean>truecheckHandVar<Boolean>falseОбщие поля TypeWriter (comment)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
comment | String | — | — |
How to use it
The fact returns the total number of matching items (the sum of stack sizes). Fill either items (several items) or item (one item). An empty type and id counts every MMOItems item.
checkInventory counts the inventory, armor, off hand and cursor. checkHand adds the main hand: because the main hand is also part of the inventory, enabling both counts the held stack twice. If both are off, the fact always returns 0.
The fact can also feed the Give and Remove actions, and the Item Count Objective.