Tellraw Generator
Build /tellraw, /title and action bar JSON text components with colours, click and hover events, and a live chat preview.
Parts
Part 2
Runs as the player who clicks, with their permissions.
Shown as a tooltip when the player points at this part.
Output
Preview
Hover a part to see its tooltip
/tellraw @a {text:"",extra:[{text:"Please read the ",color:"gray"},{text:"[Rules]",color:"gold",bold:true,click_event:{action:"run_command",command:"/rules"},hover_event:{action:"show_text",value:"Click to read the rules"}}]}Paste into chat or a command block. Command blocks don't need the leading slash.
Tellraw and title text
/tellraw sends a text component to chat. /title shows one as a title, subtitle or action bar. A component is a list of parts. Each part has its own colour, formatting and optional click and hover events. Colours can be one of the 16 named colours or a hex value (1.16 and newer).
1.21.5 changed the syntax, and 26.x uses the same format. Commands now read text components as SNBT instead of JSON. The event keys were renamed: clickEvent became click_event and hoverEvent became hover_event. The click value moved into a field named for the action: command for run and suggest, url for links and value for copy. Hover text moved from contents to value. Pick your server version above and the output follows.
Click and hover events only work in chat. Titles and the action bar show the text and styling but ignore the events. Run commands execute as the player who clicks, so they can only run what that player has permission for.
ZCraft Studios
Want your menus and messages done already?
Our plugin configs come with chat, menus and scoreboards already styled, so you don't have to do every line yourself.