
In Minecraft survival, players write in a book and quill and sign it to create a permanent written book that cannot be edited. Using the generator at text.9minecraft.net, you can bypass manual typing to create colorful, multi-page books and spawn them instantly with commands.
Before writing your content, it helps to know how Minecraft formats and restricts book data. In normal gameplay, signing a book and quill locks the text permanently. When generating books via commands, you must work within the game's display boundaries so your text does not get cut off.
The preview tool on text.9minecraft.net renders the real book GUI texture, complete with accurate word wrap and interactive page flipping. This allows you to check exactly where your lines break before copying the command into your game.
The generator simplifies creating complex books by handling the formatting syntax automatically. Follow these steps to build your book:
---. Anything below this line moves to the next page.&) codes to add color and formatting to your text.Here is an example of how to structure a three-page book in the editor using page separators and color codes:
&1&lServer Rules
&0Welcome to our Minecraft server! Please read the rules on the following pages.
---
&4Rule 1: &0No griefing.
&4Rule 2: &0Be respectful to all players in chat.
---
&2Enjoy your stay!
&0Ask a moderator if you need help starting out.In vanilla survival, typing colored text into a book is tricky, but the generator automatically converts & codes into valid Minecraft text colors and styles. Place the code directly in front of the text you want to change.
&0 - Black (default book text color)&1 - Dark Blue&2 - Dark Green&4 - Dark Red&5 - Dark Purple&6 - Gold&8 - Dark Gray&l - Bold&o - Italic&n - Underline&r - Reset formatting back to defaultWhen combining colors and styles, always place the color code before the formatting code (for example, &4&lWarning for bold dark red text). Be aware that bold text takes up slightly more pixel width per character, which reduces how many letters fit inside the 114-pixel line limit.
Minecraft Java Edition has changed how item data is stored across recent updates. You must use the command syntax that matches your exact game version, otherwise the command will fail with a syntax error.
Java 1.21.5+ (SNBT Text Component)
Starting in Java 1.21.5, the written_book_content component uses clean SNBT text formatting without needing escaped JSON strings:
/give @p written_book[written_book_content={title:"Server Guide",author:"Admin",pages:[{text:"Welcome to the server!",color:"dark_blue",bold:true},{text:"Rule 1: Be kind.",color:"black"}]}] 1Java 1.20.5 – 1.21.4 (JSON Strings in Component)
In versions 1.20.5 through 1.21.4, books use the written_book_content item component, but the pages inside must be formatted as escaped JSON strings:
/give @p written_book[written_book_content={title:"Server Guide",author:"Admin",pages:['{"text":"Welcome to the server!","color":"dark_blue","bold":true}','{"text":"Rule 1: Be kind.","color":"black"}']}] 1Java 1.20 – 1.20.4 (Legacy NBT Data)
For versions 1.20 to 1.20.4, item components do not exist. Instead, you use traditional NBT tags with title, author, and pages enclosed in curly braces right after the item ID:
/give @p written_book{title:"Server Guide",author:"Admin",pages:['{"text":"Welcome to the server!","color":"dark_blue","bold":true}','{"text":"Rule 1: Be kind.","color":"black"}']} 1Once you have copied the command for your version from text.9minecraft.net, you need to execute it in your world or server. Because custom books often contain multiple pages and colors, the command quickly becomes very long.
/give @p command_block. Place it down, right-click it to open the interface, paste your full command inside, and power the block with a button or redstone torch.Remember that commands require operator permissions on a multiplayer server or cheats enabled in a singleplayer world. If you want to edit a generated written book later, keep a copy of your raw text with the --- separators saved in a text file, since signed written books cannot be edited in-game.
No. Just like when a book and quill is signed in survival mode to become a written book, generated written books are permanently locked and cannot be edited in-game. To make changes, edit your text in the generator and run the new command.
Type a line consisting of three dashes (---) on its own line. The generator uses --- as a page separator and places all following text onto the next page, up to the maximum limit of 100 pages.
Minecraft book pages display up to 14 lines, and each line is limited by a width of 114 pixels rather than a fixed character count. Wide letters and bold text fill up the 114 pixels faster. Use the live book GUI preview on text.9minecraft.net to check the exact word wrap.
You are likely using a command made for a different version of Minecraft, or your command got cut off by the chat character limit. Make sure you select the right format (1.20-1.20.4 NBT, 1.20.5-1.21.4 JSON strings, or 1.21.5+ SNBT) and paste long commands into a command block.