mojira.dev
MC-276601

Items with their enchantments component removed cannot be enchanted

Removing the enchantments component from an item also removes its ability to be enchanted by any means, including via enchanting table, anvil, /enchant and the enchant_randomly and enchant_with_levels item modifier functions.

When using /enchant or /item modify with one of the aforementioned functions, the command succeeds despite the fact that no enchantment was added to the item.

How to reproduce:

  1. Execute the following command:

    /give @s minecraft:diamond_sword[!minecraft:enchantments]
    /give @s minecraft:diamond_sword[!minecraft:enchantments]
  2. While holding the sword you were given, execute the following command:

    /enchant @s minecraft:sharpness
    /enchant @s minecraft:sharpness

    → ❌ The command succeeds according to the message printed in the chat, but no enchantment was applied.

Expected result:

The item would be enchanted (regaining the enchantments component).

Observed result:

The command succeeded but no enchantment was added.

Attachments

Comments 2

Can confirm in version 1.21.6

[Mod] ManosSef

(Unassigned)

Confirmed

Platform

Low

Enchantments

1.21.1, 24w37a, 24w39a, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.9, 25w44a, 1.21.11

Retrieved