Enchantment

Item Condition Type

Checks the level of a certain enchantment on the item.

Type ID: origins:enchantment

Fields

Field Type Default Description
enchantment Identifier 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.

Examples

"item_condition": {
    "type": "origins:enchantment",
    "enchantment": "minecraft:fortune",
    "comparison": "==",
    "compare_to": 3
}

This example will check if the item has the Fortune III enchantment.