gamer Samy

Create a Minecraft Java Edition mod that allows players to write colored text in the Book and Quill interface.

Requirements:

Allow players to write text in any Minecraft color, including all standard color codes (black, dark blue, dark green, dark aqua, dark red, dark purple, gold, gray, dark gray, blue, green, aqua, red, light purple, yellow, and white).

Support Minecraft formatting codes such as bold, italic, underline, strikethrough, and obfuscated text.

Provide a simple and user-friendly color selection menu inside the Book and Quill GUI.

Allow players to select a color for individual words, sentences, or entire pages.

Show a live preview of the formatted text before the player signs the book.

Preserve all text colors and formatting when the book is signed, saved, reopened, or shared with other players.

Ensure the mod works in single-player and multiplayer whenever the server supports the required text formatting.

Do not modify unrelated Minecraft features or interfere with other mods.

Make the mod lightweight, stable, and compatible with the specified Minecraft version.

Do not require players to manually type formatting codes unless they choose to.

Include clear installation instructions and build a working .jar file.

Kodari AI
KodariOct 10 at 9:20 am 3
BookColorizer
BookColorizer is a Minecraft Fabric mod that enhances the Book and Quill interface with a user-friendly color and formatting menu. Players can select from all 16 standard Minecraft colors and apply bold, italic, underline, strikethrough, or obfuscated styles to individual words, sentences, or entire pages. A live preview shows formatted text before signing, and all styling persists after signing, saving, reopening, or sharing books. The mod works in single-player and multiplayer, requires no manual formatting codes, and remains lightweight and compatible with Minecraft 1.21.1 without interfering with other mods.
  1. Trace the 1.21.11 book editor, signing packet, and written-book storage.

  2. Add an in-editor formatting palette with live preview and page/selection formatting.

  3. Preserve rich text through signing and persistence, then add Fabric project metadata and install guidance.

Created Book Colors with an in-editor Format menu for all 16 Minecraft colors, bold, italic, underline, strikethrough, obfuscated text, and reset. Select text before choosing a format, use Ctrl+A to format a whole page, or choose a format with no selection to apply it at the cursor. The scrollable preview shows the full page with formatting applied.

Formatting is stored in the signed book as styled text, so it remains when books are saved, reopened, or shared. The editing field uses formatting markers inserted by the menu; you don’t need to type them yourself.

Multiplayer: Install the mod on both the client and server. A vanilla server won’t parse the formatting markers.

Build and install: On desktop, click Compile in the top bar; on phone, tap ⋮ → Compile Project. Click Compile, then Download when it succeeds. Install Fabric Loader and Fabric API for Minecraft 1.21.11, then place the downloaded mod and bundled library JARs in the instance’s mods folder. For multiplayer, install the same mod on the server.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
15 572
src/main/java/dev/kodari/bookcolors/BookColorsMod.java
package dev.kodari.bookcolors;

import net.fabricmc.api.ModInitializer;

public final class BookColorsMod implements ModInitializer {
    public static final String MOD_ID = "bookcolors";

    @Override
    public void onInitialize() {
    }
}