Enchanted Book

An enchanted book is an item that lets players add enchantments to certain items using an anvil.
== Obtaining ==
=== Chest loot ===
==== Level-30 books ====
==== Random enchantment books ====
==== Soul Speed books ====
==== Swift Sneak books ====
===Fishing===
Enchanted books can be obtained as a "treasure" item from fishing with a fishing rod as part of the "treasure" category. The book has the equivalent of a level 30 enchantment from an enchantment table, but treasure enchantments are available and the chance of multiple enchantments is not reduced.
=== Trading ===
, librarian villagers have a 50% chance to sell enchanted books as part of their trades at novice, apprentice, and journeyman-level, and have chance to sell enchanted books at expert-level as part of their trades, meaning each librarian villager can sell up to four books. The price ranges between 5-64 emeralds per book. Based on the level of the enchantment and whether it is classified as a "treasure enchantment" (meaning they are not obtainable by enchanting, e.g. Mending), which doubles the cost, or not a price is determined.
, librarian villagers have a chance to sell an enchanted book as part of their trades at the novice, apprentice, and journeyman level, and have a 50% chance to sell an enchanted book at the expert level, meaning each librarian can sell up to four books. The price ranges from 5-64 emeralds per book, depending on the enchantment's level as well as whether or not it is a treasure enchantment.
Cost of Enchanted Books based on their level
Level 	Lowest Price	Highest Price
I (1) 	5 	19
II (2) 	8 	32
III (3)	11 	45
IV (4) 	14 	58
V (5) 	17 	71 (capped at 64)
They may contain any available enchantment (except Soul Speed, Swift Sneak, and Wind Burst) at any available level. See trading notes for more information on enchantments and prices.
===Drops ===
Vindicators and pillagers that spawn from raids have a small chance to drop an enchanted book with a level 30 enchantment, which may be a treasure enchantment.
===Enchanting===
Players can create an enchanted book by enchanting a book on an enchantment table. Books have a decreased chance of getting multiple enchantments (specifically, if multiple enchantments would be added, then one is removed at random), and have a lower "enchantability level" than most other items. Treasure enchantments such as Mending cannot be obtained from an enchantment table.
=== Bartering ===
Players can barter with piglins by using or throwing gold ingots, and doing so has a chance for piglins to give the player an enchanted book with any level of Soul Speed. Soul Speed enchanted books are only obtainable through bartering, chest loot inside a bastion remnant, and fishing. They cannot be obtained through enchanting or trading.
== Usage ==
In Survival, enchanted books are the only method to obtain certain enchantments on certain tools, such as Unbreaking on shields. Enchanted books have a shine effect on their sprite.
To use an enchanted book, the player must place an item in the first slot in an anvil, and a book in the next. In order to complete the enchantment, the player must have the required amount of experience. Note that using an enchanted book gets significant discounts at the anvil. Enchanted books themselves can be combined to create a single book with increased or multiple enchantments, similar to combining tools or weapons. 
When combining items, the compatible enchantments from the book in the second slot are transferred to the item from the first slot, keeping the highest level of any type. If two enchantments have the same level and a higher level is available, they combine into the next level. If a book is applied to an item that can't take all of its spells, the appropriate spells are transferred, while the unusable ones are lost. Enchanted books are single-use. 
Enchanted books do not exhibit their enchantment. For example, a book with Sharpness IV as an enchantment does no more damage than an un-enchanted book, or any non-weapon item, would when used as a weapon. An exception is the Fire Aspect book which can ignite TNT and light campfires and the Mending book if the block mined can be broken by fist.
=== Available items ===
Enchanted books can enchant the usual items that can be enchanted at an enchanting table, but unlike an enchanting table, they are able to boost enchantments such as Sharpness or Thorns to their maximum power, and may apply the following enchantments to items (the table displays only netherite tools and armor, but any type can be enchanted):
Enchantment 	Items enchantableat an enchanting table	Note
Efficiency 	 	Increases mining speed
Thorns 	 	Inflicts damage on attacker
Unbreaking 	 	Increasing durability on enchanted tools/armors
Frost Walker 	 	Creates walkable ice layer over water
Mending 	 	Uses XP Orbs to repair damaged tools/weapons/armors
Curse of Binding 	 	Prevents removal of cursed item
Curse of Vanishing	 	Cursed item is destroyed upon death
Soul Speed 	 	The wearer's speed is increased when walking on soul sand or soul soil.
Swift Sneak 	 	The wearer's sneaking speed is increased.
=== Creative mode ===
The player can enchant any item with any enchantment in Creative mode, allowing any applied effects to exhibit themselves. For example, a stick can be enchanted with Silk Touch to allow the player to successfully dig grass blocks. The enchanted item can still be used in Survival mode without any loss of enchantments.
Enchantments that are normally incompatible are still incompatible; for example, Piercing and Multishot cannot be both applied to the same item, even in Creative mode.
If a block is enchanted, it loses the enchantment upon being placed in the world.
=== Disenchanting ===
Disenchanting an enchanted book at a grindstone yields a normal book and some experience depending on the quality of the book.
=== Chiseled bookshelf ===
 the chiseled bookshelf while having an enchanted book in the main hand will put the book inside the chiseled bookshelf.
== Sounds ==
:
:
== Data values ==
=== ID ===
:
:
=== Item data ===
:
Enchanted books use an NBT tag StoredEnchantments to indicate the enchantment. 
The allowed sub-tags are id and lvl, equivalent to the format of the Enchantments tag that is used for enchantments applied to items.
The following NBT structure is provided to show how the StoredEnchantments tag is organized, and is not comprehensive above the tag tag. The full NBT for an item can be found here.
*: The tag tag.
**: The list of enchantments on this book.
*** An enchantment
****: The enchantment name ID
****: The enchantment level
:
:See Bedrock Edition level format/Item format.
==Advancements==
==History==
 
== Issues ==
==Trivia==
*When obtained through the command with no stored enchantments, the enchanted book has no attached enchantments, but still shines as if it is enchanted.
*A book enchanted with Unbreaking III appears in both the tools tab and combat tab of the Creative inventory.
==Gallery==
File:Dinnerbones_enchanted_Books.png|First image of an enchanted book, released by Dinnerbone.
File:DungeonBook.png|An enchanted book found in a dungeon chest.
File:Enchanted_Book.gif|An animation of an enchanted book.
==References ==
Category:Renewable resources
de:Verzaubertes Buch
es:Libro encantado
fr:Livre enchanté
hu:Varázskönyv
ja:エンチャントの本
ko:마법이 부여된 책
nl:Betoverd boek
pl:Zaklęta książka
pt:Livro encantado
ru:Зачарованная книга
th:หนังสือร่ายมนตร์
uk:Зачарована книга
zh:附魔书