Curse of Binding

Curse of Binding is an enchantment that prevents removal of the cursed item.

The cursed item cannot be removed from any armor slot unless the player is in Creative mode, the player dies or the item breaks.

Counts as a treasure enchantment — can only be obtained from chest loot, fishing, or trading for enchanted books.

Note: if the  gamerule is set to , the player will keep the cursed item even after death. Only the item breaking will remove it.