Wiki ArticleVerifyJava Edition technicalDevelopment

Text component format

The text component format, historically also known as raw JSON text, is used by Minecraft to send and display rich-text to players. It can also be sent by players themselves using commands (such as /tellraw and /title) and data packs.

Text components are written in SNBT, for example {text: "Hello world"}. They are used for rich-text formatting in written books, signs, custom names and the /tellraw, /title, /bossbar, /scoreboard and /team commands.

The format is made up of text components. There is a single root component, which can have child components, which can have their own children and so on. Components can also have formatting and interactivity added to them, which is inherited by their children.

Complete article available

This cached Wiki page is unusually large, so it is loaded on demand to keep the initial page fast.