mojira.dev
MC-100919

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

  1. Obtain a book

  2. While holding the book, run the command /enchant @s minecraft:sharpness 3
    ❌ The sharpness enchantment is not applied to the book

Linked issues

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.

enchantments tag: ench

stored enchantmens tag: StoredEnchantments

If you want enchanted books with stored enchantments, use the creative inventory (search tab contains all levels).

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.

Reopening because it is incosistent to how /enchant usually behaves.

7 more comments

Can confirm in 1.18.1.

Can confirm in 1.18.2 and 22w11a.

Can confirm in 1.19.

Can confirm in 1.19.2.

Kasper

[Mod] markderickson

(Unassigned)

Confirmed

Commands

Minecraft 16w15b, 1.14.4, 1.15 Pre-Release 2, 1.15.2, 1.16 Pre-release 1, ..., 1.20.4, 23w51b, 1.21.3, 24w46a, 25w05a

Retrieved