Skip to main content

Armor Value (Item Condition Type)

Compares the item's armor value with a number. Items that aren't armor have an armor value of 0.

Type ID: apoli:armor_value

tip

The Minecraft Wiki lists the armor value of each piece: Helmet, Chestplate, Leggings and Boots.

Fields

FieldTypeDefaultDescription
comparisonComparisonrequiredHow the armor value is compared with compare_to.
compare_toIntegerrequiredThe number the armor value is compared with.

Examples

"item_condition": {
    "type": "apoli:armor_value",
    "comparison": ">",
    "compare_to": 3
}

This checks whether the item, here a chestplate, has an armor value above 3, which is the value of a leather chestplate.