{{For|the item produced after a Book and Quill is signed|Written Book}}
{{Item
| image = Book and Quill.png
| renewable = Yes 
| stackable = No
}}

A '''book and quill''' is an [[item]] used to write [[written book]]s.

== Obtaining ==

=== Crafting ===

{{Crafting
|Book
|Ink Sac
|Feather
|Output= Book and Quill
|type= Miscellaneous
}}

=== Natural generation ===

{{LootChestItem|book-and-quill}}

== Usage ==

=== Crafting ingredient ===

{{crafting usage}}

=== Writing ===

By pressing {{control|use item}} or long pressing screen anywhere{{only|bedrock}} while holding a book and quill in their hand, the [[player]] can open a text editor GUI.

Using this GUI, the player can write a single book up to 100{{only|java}} or 50{{only|bedrock}} pages long, with up to 798 characters per page. The player can write up to 79,800{{only|java}} or 12,800{{only|bedrock}} characters inside the entire book. No page may be longer than 14 lines and each line can have a width of 114 pixels (see pixel width of each character [[Language#Font|here]]). 

The player has the ability to copy and paste into books. However, the paste does not work if the text being pasted is longer than a single page. Most Unicode characters are available in books, and they may be pasted in without issue.

In singleplayer, the world pauses while a book is being edited.{{only|java}}

=== Lecterns ===

One can place a book and quill or a [[written book]] on an empty [[lectern]].

The lectern then emits a redstone signal depending on the displayed page in the book. On the last page, the lectern emits a signal strength of 15. This is why lecterns are listed in the "redstone" tab in the [[creative inventory]].

=== Formatting codes ===
{{main|Formatting codes}}
{{exclusive|bedrock|section=1}}

Text in a book can be styled using codes starting with the {{key|§}} character (section sign).
* {{key|§}} + {{key|k}} creates randomly changing characters.
* {{key|§}} + {{key|l}} creates bold text.
* {{key|§}} + {{key|m}} creates strikethrough text.
* {{key|§}} + {{key|n}} creates underlined text.
* {{key|§}} + {{key|o}} creates italic text.
* {{key|§}} + {{key|0}} – {{key|f}} (hexadecimal) creates colored text. 
* {{key|§}} + {{key|r}} resets any of the previous styles so text after it appears normally.

If the [[player]] uses multiple codes, and continue typing past the end of a line, the next line exhibits only the last formatting code used.

=== Signing ===

Books can be signed by pressing the "Sign" button while in the interface. {{IN|java}}, when signed, a book bears the name of the player who wrote it and a title chosen upon signing. {{IN|bedrock}}, the book doesn't display the name of the player as the author; instead, the author can be any text the player wants. After it has been signed, it cannot be edited again – it has turned into a [[written book]].

Special characters can be used in the title, if typed from a keyboard that supports them. Alt codes do not work, and the {{key|§}} character cannot be typed even using a keyboard that implements it, meaning titles cannot be colored or formatted in-game. However, on Linux using the compose key to produce special characters does work.

The title of the book can be up to 16 characters long, and the player cannot paste into a title. A "workaround" for the 16-character limitation is to manually rename the book at an [[Anvil#Renaming|anvil]], which always costs 1 [[Experience|experience level]]. This can be done with either a written book or a book and quill – both versions will always display the changed name. If a custom name is removed from a written book, it will revert back to the title it was given during the signing process.

=== Chiseled bookshelf ===
{{control|Use|text=Using}} the [[chiseled bookshelf]] while having a book and quill in the main hand will put the book inside the chiseled bookshelf.

=== Trading ===
{{IN|bedrock}}, expert-level librarian [[villager]]s buy 2 books and quills for one [[emerald]]. Book and quill is offered in two item slots due to being non-stackable.

{{IN|java}}, expert-level librarian villagers have a 50% chance to buy 2 books and quills for one emerald. The amount of books and quills needed is supposed to be 2, but due to the item being non-stackable, only one is needed for the trade.<ref>{{bug|MC-248042||Librarian's book and quill trade is always discounted to 1 since books are unstackable}}</ref>

== Sounds ==
{{edition|java}}:
{{Sound table
|rowspan=2
|sound=Page turn1.ogg
|sound2=Page turn2.ogg
|sound3=Page turn3.ogg
|subtitle=Page rustles
|source=master
|description=When the page of a book is turned
|id=item.book.page_turn
|translationkey=subtitles.item.book.page_turn
|volume=2.0
|pitch=1.0
|distance=16}}
{{Sound table
|subtitle=Page rustles
|source=block
|description=When the page of a book is turned on a lectern
|id=item.book.page_turn
|translationkey=subtitles.item.book.page_turn
|volume=2.0
|pitch=0.9-1.0
|distance=16}}
{{Sound table
|sound=Book thump1.ogg
|sound2=Book thump2.ogg
|subtitle=Book thumps
|source=block
|description=When a book is placed on a lectern
|id=item.book.put
|translationkey=subtitles.item.book.put
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Chiseled bookshelf insert1.ogg
|sound2=Chiseled bookshelf insert2.ogg
|sound3=Chiseled bookshelf insert3.ogg
|sound4=Chiseled bookshelf insert4.ogg
|subtitle=Book placed
|source=block
|description=When a book and quill is placed in a chiseled bookshelf
|id=block.chiseled_bookshelf.insert
|translationkey=subtitles.chiseled_bookshelf.insert
|volume=0.8
|pitch=''varies'' <ref group=sound>Can be 1.0, 0.85, or 1.1 for each sound</ref>
|distance=16}}
{{Sound table
|sound=Chiseled bookshelf pickup1.ogg
|sound2=Chiseled bookshelf pickup2.ogg
|sound3=Chiseled bookshelf pickup3.ogg
|subtitle=Book taken
|source=block
|description=When a book and quill is removed from a chiseled bookshelf
|id=block.chiseled_bookshelf.pickup
|translationkey=subtitles.chiseled_bookshelf.take
|volume=0.8
|pitch=''varies'' <ref group=sound>Can be 1.0, 0.8, or 1.1 for each sound</ref>
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Page turn1.ogg
|sound2=Page turn2.ogg
|sound3=Page turn3.ogg
|source=sound
|description=When the page of a book is turned
|id=item.book.page_turn
|volume=2.0
|pitch=1.0}}
{{Sound table
|sound=Book thump1.ogg
|sound2=Book thump2.ogg
|source=block
|description=When a book is placed on a lectern
|id=item.book.put
|volume=4.8
|pitch=1.0}}
{{Sound table
|type=bedrock
|sound=Chiseled bookshelf insert1.ogg
|sound2=Chiseled bookshelf insert2.ogg
|sound3=Chiseled bookshelf insert3.ogg
|sound4=Chiseled bookshelf insert4.ogg
|source=block
|description=When a book and quill is placed in a chiseled bookshelf
|id=insert.chiseled_bookshelf
|volume=0.8
|pitch=''varies'' <ref group=sound name=insertvaries>Can be 1.0, 0.85, or 1.1 for each sound</ref>}}
{{Sound table
|sound=Chiseled bookshelf pickup1.ogg
|sound2=Chiseled bookshelf pickup2.ogg
|sound3=Chiseled bookshelf pickup3.ogg
|source=block
|description=When a book and quill is removed from a chiseled bookshelf
|id=pickup.chiseled_bookshelf
|volume=0.8
|pitch=''varies'' <ref group=sound name=pickupvaries>Can be 1.0, 0.8, or 1.1 for each sound</ref>
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Book and Quill
|spritetype=item
|nameid=writable_book
|itemtags=bookshelf_books, lectern_books
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showitemtags=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Book and Quill
|spritetype=item
|nameid=writable_book
|id=510
|itemtags=minecraft:bookshelf_books, minecraft:lectern_books
|form=item
|foot=1}}

=== Item data ===

{{el|java}}:
{{main|Player.dat format}}
<div class="treeview" style="margin-top: 0;">
* {{nbt|compound|tag}}: The '''tag''' tag.
{{:Player.dat_format/Writable Books}}
</div>

{{el|bedrock}}:
: See [[Bedrock Edition level format/Item format]].

== Video ==

<div style="text-align:center">{{yt|DD_Z82wmGZA}}</div>

== History ==

{{History|java}}
{{History||1.3.1|snap=12w17a|[[File:Book and Quill JE1 BE1.png|32px]] Added books and quills.}}
{{History||1.7.2|snap=13w36a|Books and quills can now be crafted with a [[written book]] to clone the written book.}}
{{History||1.8|snap=14w05a|Copying written books now mark them as "Copy of Original" or "Copy of Copy".
|The copying status of a book is now denoted in a separate line in the tooltip, beneath the author's name.
|Copies of copies cannot be copied.}}
{{History|||snap=14w25a|Books and quills now use JSON text components instead of plain text with the new <code>pages</code> tag
|Book and quills are now capable of using the <code>clickEvent</code> and <code>hoverEvent</code> tags.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 386.}}
{{History||1.14|snap=18w43a|[[File:Book and Quill JE2 BE2.png|32px]] The texture of books and quills has now been changed.
|Added support for editing anywhere in the book and quill.<ref name="MC-1578">{{bug|MC-1578}}</ref>
|Books and quills now have copy/paste support.<ref name="MC-1578"></ref>
|The page limit of books and quills has now been increased from 50 to 100 pages.}}
{{History|||snap=19w11a|Librarian [[villager]]s now [[trading|buy]] books and quills instead of written books.}}
{{History||1.20<br>(Experimental)|link=1.19.3|snap=22w42a|Books and quills can now interact with [[chiseled bookshelves]].}}

{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|[[File:Book and Quill JE1 BE1.png|32px]] Added books and quills.}}
{{History||1.4.0|snap=beta 1.2.14.2|Books and quills can now be found inside [[buried treasure]] [[chest]]s.}}
{{History||1.6.0|snap=beta 1.6.0.1|Pages within books and quills can now be turned using the controller bumper buttons.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Book and Quill JE2 BE2.png|32px]] The texture of books and quills has now been changed.}}
{{History||1.11.0|snap=beta 1.11.0.4|Books and quills can now be [[trading|sold]] to librarian [[villager]]s.}}

{{History|console}}
{{History||xbox=TU25|xbone=CU14|ps=1.17|wiiu=Patch 1|switch=1.0.1|[[File:Book and Quill JE1 BE1.png|32px]] Added books and quills.}}
{{History|PS4}}
{{History||1.90|[[File:Book and Quill JE2 BE2.png|32px]] The texture of books and quills has now been changed.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Trivia ==
* The in-game restrictions on books are not hard limits. Third party editors or commands can make books have more than 100 pages{{only|java}} (2,147,483,639 pages), more than 256 characters per page (32,767 characters per page), can change author names, and can have colored titles, among other things. These books still function properly in vanilla ''Minecraft'', meaning the [[player]] may encounter such books on adventure maps or multiplayer servers.<ref>http://www.minecraftforum.net/topic/1189266-hacking-books</ref>
* If the player renames a book and quill in an anvil before signing it, it retains the name from the anvil instead of taking the name from signing.{{only|java}}

== Gallery ==
<gallery>
Jeb book.png|The first image of a book seen.<ref>https://web.archive.org/web/20120427014334/https://www.mojang.com/2012/04/minecraft-snapshot-12w17a/</ref>
Book and Quill Writing.png|The GUI of writing a book.
Book and Quill Signing.png|The GUI of signing a book.
Written Book tooltip.png|A signed book.
BookandQuillOperators12w17a.png|Display of styles used in a book. "e" and "f" are difficult to see.
Book and Quill in Pocket Edition.jpg|A book and quill {{in|be}}.
Java book and quill example with text.png|An example of text in a book and quill in [[Java Edition]].
Better Together Book.jpg|A book and quill in ''Bedrock Edition''.
</gallery>

== References ==
{{Reflist}}

== External links ==
* [http://www.minecraftforum.net/topic/1498339-132ssp-bookshop-your-books-anywhere/ Bookshop - Book Sharing And Editing Tool]
* [http://fsymbols.com/generators/wide/ Full-Width Text Generator]
* [http://fsymbols.com/generators/smallcaps/ Small Caps Text Generator]
* [http://www.minecraftforum.net/topic/1202590-revise-edit-signed-books-w-more-options-all-os-12w17a/ Revise - External Book Editor]

== See also ==
* [[Book]]
* [[Bookshelf]]
* [[Written Book]]

{{Items}}

[[Category:Renewable resources]]

[[cs:Rozepsaná kniha s brkem]]
[[de:Buch und Feder]]
[[el:Βιβλίο και Πένα]]
[[es:Libro y pluma]]
[[fr:Livre vierge]]
[[hu:Könyv és toll]]
[[it:Libro e penna]]
[[ja:本と羽根ペン]]
[[ko:책과 깃펜]]
[[nl:Boek en veer]]
[[pl:Książka z piórem]]
[[pt:Livro e pena]]
[[ru:Книга с пером]]
[[th:หนังสือกับปากกาขนนก]]
[[uk:Книга з пером]]
[[zh:书与笔]]
