Skip to main content

Remove Enchantment (Item Action Type)

Removes some or all of the item's enchantments.

Type ID: apoli:remove_enchantment

Fields

FieldTypeDefaultDescription
enchantmentIdentifieroptionalAn enchantment to remove from the item.
enchantmentsArray of IdentifiersoptionalSeveral enchantments to remove from the item.
levelsIntegeroptionalOnly removes enchantments at this level.
reset_repair_costBooleanfalseWhether the item's repair cost is reset.

Examples

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

This removes Mending from the item and resets its repair cost.