Modify Enchantment Level (Power Type)

Applies/modifies the level of the specified enchantment to/from the entity.

Applies/modifies the level of the specified enchantment to/from the entity.

Type ID: apoli:modify_enchantment_level

Fields

FieldTypeDefaultDescription
enchantmentIdentifierID of the enchantment to apply/modify the level of to the entity., e.g. minecraft:protection.
item_conditionItem Condition TypeoptionalIf specified, only applies/modifies the level of the specified enchantment to/from the entity if the item condition is fulfilled by the item.
modifierAttribute ModifieroptionalIf specified, this modifier will be applied to the current level of the specified enchantment from the entity.
modifiersArray of Attribute ModifiersoptionalIf specified, these modifiers will be applied to the current level of the specified enchantment from the entity.

Examples

{
    "type": "apoli:modify_enchantment_level",
    "enchantment": "minecraft:silk_touch",
    "modifier": {
        "operation": "set_total",
        "value": 1
    }
}

This example will grant the player the ability to use Silk Touch, regardless of whether the player is holding any item or no item at all.