Remove Enchantment (Item Action Type)
Removes some or all of the item's enchantments.
Type ID: apoli:remove_enchantment
Fields
| Field | Type | Default | Description |
|---|---|---|---|
enchantment | Identifier | optional | An enchantment to remove from the item. |
enchantments | Array of Identifiers | optional | Several enchantments to remove from the item. |
levels | Integer | optional | Only removes enchantments at this level. |
reset_repair_cost | Boolean | false | Whether 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.