Book Converter

Heavily adapted from NebSpacefarer's Stendhal Book Converter.

This tool allows you to convert ebooks, articles, and more to Stendhal-compatible books in Minecraft.

Instructions

To get started, select any text that you wish to convert. This can include ebooks, articles, or any other type of written content, as long as it consists of text.
Next, fill in the designated fields with the title of the book and your in-game nickname in the author section.

Once you've done that, simply click on the "Convert" button. This action will process your text and automatically divide it into the necessary number of pages, adhering to Minecraft's book character limitations. (If your content exceeds 100 pages, additional books will be created as needed.)

Note: Line breaks are trimmed to avoid bugs. It is suggested to use bold for each chapter title in game, as this script allows for some extra characters per page to occasionally style the text for this purpose.


After the conversion is complete, a new button labeled "Save Stendhal Books" will appear. Clicking this will download all your converted books in a .Stendhal format. Just remember to save the files when prompted by the popups. Once you have downloaded the books, make sure to place them inside the .minecraft\config\stendhal\books directory if you have the Stendhal mod installed.

In-game, use a Book & Quill, and click on the "Import Book" button to find your new book(s) ready to import.
Settings

Your Text

Result