The bug
Using /enchant on an unenchanted book results in the message "The selected enchantment can't be added to the target item". It may be expected that using this command on an unenchanted book converts the book into an enchanted book with the enchantment specified when using the command applied.
How to reproduce
Obtain a book
While holding the book, run the command
/enchant @s minecraft:sharpness 3
❌ The sharpness enchantment is not applied to the book
Linked issues
is duplicated by 2
Attachments
Comments 17
There is diffence between a stored enchantment and an enchantment, enchanted books only have stored enchantments, not enchantments themselves, they can't get flame and when hitting make the enemy burn. /enchant adds enchantments, not stored enchantments.
Considering the restrictions the /enchant command imposes already, it would be intuitive that it works as expected on books.
That'd be a feature/change suggestion, which belong here.
This duplicates MC-261942
There is diffence between a stored enchantment and an enchantment, enchanted books only have stored enchantments, not enchantments themselves, they can't get flame and when hitting make the enemy burn. /enchant adds enchantments, not stored enchantments.
If you want enchanted books with stored enchantments, use the creative inventory (search tab contains all levels).