Enchantment
Checks the level of a certain enchantment on the item.
Type ID: origins:enchantment
Fields:
Field | Type | Default | Description |
---|---|---|---|
enchantment |
String | ID of the enchantment of interest, e.g. minecraft:protection . |
|
comparison |
Comparison | How to compare the enchantment level the specified value. | |
compare_to |
Integer | Which value to compare the enchantment level against. |
Example
"item_condition": {
"type": "origins:enchantment",
"enchantment": "minecraft:fortune",
"comparison": "==",
"compare_to": 3
}
This example checks if the item has the Fortune III enchantment.