MC ToolboxMC TOOLBOX

April 6, 2026

Minecraft JSON Text: Creating Interactive Chat Experiences

Learn how to use JSON text formatting to build clickable messages, hover tooltips, and styled chat for books, signs, and server broadcasts.

Raw text commands in Minecraft can do far more than display a message in chat. With JSON text formatting, you can create messages that players click to run commands, words that show detailed tooltips when hovered over, and color gradients that make announcements look intentionally designed rather than thrown together. Once you know how it works, plain chat messages start looking like wasted potential.

What JSON Text Actually Is

JSON text is a formatting system that Minecraft uses internally for all styled text, from book content and sign text to death messages and action bar displays. Instead of writing a plain string, you write a structured object that tells the game what color, style, and behavior each piece of text should have. The game then renders that definition wherever the text appears.

The most common command that uses JSON text is tellraw, which sends a formatted message to one or more players. The format command applies it to items in your hand. Books and signs also accept JSON text formatting through commands, which is how you pre-fill a book with styled content or create a sign that looks like a professional label rather than plain handwritten text. The JSON Text Lab at mctoolbox.net gives you a visual editor where you write the text and set the formatting without needing to construct the JSON structure manually.

The syntax itself is not difficult once you have seen it a few times, but writing it by hand for complex messages is tedious and error-prone. A missing bracket or misplaced comma breaks the entire command silently, which makes a tool that validates the output as you build it significantly more useful than trying to write it from scratch in a text editor.

Click Events and Hover Text

Click events are what make JSON text genuinely useful for server communication. You can set text so that clicking it runs a command on behalf of the player, which is how most server menus and quick-action systems work. A welcome message that includes a clickable link to accept the server rules, or a reward notification with a click-to-claim button, both use this mechanic. You can also set click events to suggest a command rather than run it, which fills the player's chat input with the command text so they can review and confirm it before sending.

Hover events add a secondary layer of information without cluttering the main message. When a player hovers over text with a hover event, a tooltip appears showing additional content. This is commonly used to show item details, explain what a command will do before they click, or display a player's statistics and rank when their name appears in chat. The tooltip can itself contain formatted text, though you cannot nest interactive events inside tooltips.

Combining click and hover events on the same piece of text is one of the most practical things you can do. A shop button that shows product details on hover and runs the purchase command on click creates a much cleaner interface than a long chat explanation followed by a command players have to memorize. The JSON Text Lab handles both event types in its visual editor and generates the complete command ready to paste into your setup.

Colors, Gradients, and Formatting

Modern Minecraft supports full hex color values for text, not just the sixteen named colors that the older formatting code system offered. This means you can match text colors exactly to your server's branding, create gradient effects across a title by giving each letter a slightly different hue, or use specific colors that complement your map's visual design rather than settling for whatever named color is closest.

Bold, italic, underline, and strikethrough all work within JSON text the same way colors do. You set them as boolean flags on any piece of text and they apply to that segment. You can mix formatting freely, so a single message can have a bold red warning followed by normal white explanation text followed by a clickable blue link. Each segment of the message can have completely independent formatting.

Server broadcasts benefit the most from this flexibility. A server-wide announcement for a new event feels different when it has a custom color, bold formatting on the key details, and a clickable link to the event location rather than being a wall of plain white text. Players actually read messages that look designed, and they tend to ignore ones that look like system output.

Signs, Books, and Titles

Signs accept JSON text through the data command, which lets you create professional-looking labels and directions in builds. A sign that uses a specific color palette and mixed formatting integrates better into a themed build than a plain sign with default text. Wayfinding signs in particular benefit from consistent styling, since players learn to recognize the format quickly and navigate more naturally.

Books can be pre-filled with complete formatted content through commands. This is how server guides, lore books, and in-game manuals are distributed on many servers. Each page is a separate JSON text element, and you can include colored text, formatted sections, and even click events that run commands when the player interacts with specific words. A lore book that highlights key item names in gold and lets players click to view more detail is a completely different experience from a plaintext manual.

Title and subtitle commands use the same JSON text format for the large on-screen announcements. Using custom colors and formatting for these makes level transitions, boss introductions, and achievement announcements feel intentional rather than like debug output. The action bar, which is the smaller text above the hotbar, also accepts JSON text and is useful for persistent status displays like remaining time in a game mode or current objective text.

Gio Nui

Gio Nui

I'm an independent developer and long-time Minecraft creator. Since 2011, I've been focused on building high-performance, browser-based tools for the community.

Ready to master Minecraft?

Free tools and technical guides for builders, command makers, and survivalists.

Open MC Toolbox →

More Guides