I've been trying to /enchant a book, but it's not working. Is there any way to do this in v1.14 +?
My command is
/enchant @p mending
and it is hooked up to a comparator to tell me when it works.
Whenever I run the command, it says "book can not support this enchantment".
I've searched the internet for similar results but cannot find anything related.
1 Answer
/enchant does not work on the stored enchantments of books. You can only use an enchanting table or anvil or set it directly in NBT like this:
/give @s enchanted_book{StoredEnchantments:[{id:"mending",lvl:1}]} 3