MineToolsminetools.cn · Minecraft Java Tools

tellraw Command Generator

Generate Minecraft /tellraw commands with multiple sections of colored text, click events to run commands or open URLs, and hover text. Preview the Chat message in real time and automatically output JSON or SNBT for your version.

Loading game data…

tellraw sends colored chat messages. In 1.21.5 and later, use /tellraw @a {text:"你好",color:"gold"}, while 1.21.4 and earlier use JSON /tellraw @a {"text":"你好","color":"gold"}. You can also add click events to run commands or open URLs, and hover text.

Frequently Asked Questions

What’s the difference between tellraw and say?

/say can only send plain text and includes the sender’s name; /tellraw lets you customize color, formatting, click and hover events, and doesn’t show the sender.

How do I make text run a command when clicked?

Starting in 1.21.5, use click_event:{action:"run_command",command:"/spawn"}, while earlier versions use "clickEvent":{"action":"run_command","value":"/spawn"}. The generator formats it for the selected version.

How do I display a player's name or score in a message?

Use selector text {selector:"@p"} to display the name, and use score text {score:{name:"@p",objective:"kills"}} to display the scoreboard score.