Armor Value
Checks whether the item has a certain armor value. Non-armor items are considered as having an armor value of 0.
You can visit these pages to get the armor values for each armor item piece:
Type ID: origins:armor_value
Fields:
Field | Type | Default | Description |
---|---|---|---|
comparison |
Comparison | How to compare the item's armor value to the specified value. | |
compare_to |
Integer | Which value to compare the item's armor value to. |
Example
"item_condition": {
"type": "origins:armor_value",
"comparison": ">",
"compare_to": 3
}
This example checks if the armor item (in this context, a chestplate) has a higher armor value than 3, which is the armor value for the leather chestplate armor item.