Enchantability#
Since v1.0.0
Checks an item's enchantability. Vanilla enchantability values can be found here.
Items without an enchantability value are considered to have 0 enchantability.
Type ID: voile:enchantability
Fields#
Field | Type | Default | Description |
---|---|---|---|
comparison |
Comparison | ">=" |
How the item's enchantability should be compared to the specified value. |
compare_to |
Integer | The value to compare the item's enchantability against. |
Examples#
"item_condition": {
"type": "voile:enchantability",
"comparison": ">=",
"compare_to": 15
}
This example checks if the item has an enchantability of 15 or higher, which, in the context of tools, would allow wood, Netherite, and gold to return true.