Remove Enchantment (Item Action Type)

Removes certain enchantments from the item.

Removes certain enchantments from the item.

Type ID: apoli:remove_enchantment

Fields

FieldTypeDefaultDescription
enchantmentIdentifieroptionalIf specified, this enchantment will be removed from the item.
enchantmentsArray of IdentifiersoptionalIf specified, these enchantments will be removed from the item.
levelsIntegeroptionalIf specified, only the enchantments that has the specified level will be removed from the item.
reset_repair_costBooleanfalseDetermines whether the ‘repair cost’ of the item should be reset.

Examples

"item_action": {
    "type": "apoli:remove_enchantment",
    "enchantment": "minecraft:mending",
    "reset_repair_cost": true
}

This example will remove the Mending enchantment from the item whilst resetting its ‘repair cost’.