Skip to main content

Amount (Item Condition Type)

Compares the number of items in the stack with a number.

Type ID: apoli:amount

Fields

FieldTypeDefaultDescription
comparisonComparisonrequiredHow the stack size is compared with compare_to.
compare_toIntegerrequiredThe number the stack size is compared with.

Examples

"item_condition": {
    "type": "apoli:amount",
    "comparison": ">=",
    "compare_to": 10
}

This checks whether the stack holds 10 or more items.