Trying to enchant an item with no enchantments component using /enchant succeeds but has no effect
Removing the enchantments component from an item also removes its ability to be enchanted by using the /enchant command. Trying to do so, however, results in the command succeeding despite the fact that no enchantment was added to the item.
How to reproduce:
- Execute the following command:
/give @s minecraft:diamond_sword[!minecraft:enchantments]
- While holding the sword you were given, execute the following command:
/enchant @s minecraft:sharpness
→
The command succeeds according to the message printed in the chat, but no enchantment was applied.
Expected result:
Either the command would fail, or the enchantments component would be added back onto the item and the specified enchantment applied.
Observed result:
The command succeeded but no enchantment was added.
2024-09-11, 04:39 PM
2024-12-03, 08:33 PM
3
3
-