Relative Durability

Item Condition Type

Checks the current and the percentage durability value of the item.

Type ID: origins:relative_durability

Note

The percentage of the durability value can be calculated with the currentDurability / maxDurability formula.

Fields

Field Type Default Description
comparison Comparison Determines how the relative durability value of the item should be compared to the specified value.
compare_to Float The value which the durability value of the item should be compared to.

Examples

"item_condition": {
    "type": "origins:relative_durability",
    "comparison": ">=",
    "compare_to": 0.9
}

This example will check if the item has a 90% durability or greater.