Mmoitem Variable
MMOItem Identifier
Fields
| Field | Type | Default | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
items | List<MMOItemIdentifier> | empty | List of MMOItems (type/id) that this variable can return.
|
| Field | Type | Default | Description |
|---|---|---|---|
type | Var<MMOItemType> | — | MMOItems type (e.g., SWORD, ARMOR) |
How to use it
Use this variable in any field that expects an item, an MMOItems identifier or a list of items. List the possible items in items. The variable builds the real MMOItems item from its type and id, and prefers an item the player holds in the main hand or off hand that matches. If a type or id is empty, or unknown to MMOItems, a warning is written to the console and an empty item is returned.