Enchantment

Item Condition Type

Checks the level of a certain enchantment, or the amount of individual enchantments on the item.

Type ID: origins:enchantment

Fields

Field Type Default Description
enchantment Identifier optional ID of the enchantment of interest, e.g. minecraft:protection. If not set, amount of enchantments will be checked instead.
comparison Comparison How to compare the enchantment level, or the amount of enchantments, to the specified value.
compare_to Integer Which value to compare the enchantment level or amount 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.

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

This example will check if the item has 3 or more enchantments.