Not possible to use /enchant command on books
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
2016-04-14, 03:20 PM
2025-01-29, 05:26 PM
11
6
Minecraft 16w15b - 25w05a
Minecraft 16w15b, 1.14.4, 1.15 Pre-Release 2, 1.15.2, 1.16 Pre-release 1, 1.16.1, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 21w05b, 21w06a, 21w07a, 21w08b, 21w10a, 21w11a, 21w13a, 21w14a, 1.17, 1.17.1 Pre-release 1, 1.17.1, 21w39a, 1.18.1, 22w06a, 1.18.2, 22w11a, 22w14a, 1.19, 1.19.2, 1.19.4, 1.20 Release Candidate 1, 1.20, 1.20.1, 1.20.4, 23w51b, 1.21.3, 24w46a, 25w05a
-