
计算器
/tellraw 生成器
编写带颜色、样式、点击和悬停动作的聊天消息,得到 /tellraw 命令,并预览聊天栏效果。
- Type the message
- Pick colours, styles and click or hover actions
- Copy the command
消息
标签,用逗号分隔;前面加 ! 表示没有该标签。
更多选项
游戏中的样子
你好,Steve
聊天栏中:名称和分数会显示命令执行时游戏找到的内容。
命令
/tellraw @a ["",{text:"你好,",color:"gold"},{selector:"@p",bold:true}]68 个字符
适用于 Java版 26.3。此工具写出的每种形式都经过了游戏自身的命令解析器检查。
| black | #000000 |
| dark_blue | #0000AA |
| dark_green | #00AA00 |
| dark_aqua | #00AAAA |
| dark_red | #AA0000 |
| dark_purple | #AA00AA |
| gold | #FFAA00 |
| gray | #AAAAAA |
| dark_gray | #555555 |
| blue | #5555FF |
| green | #55FF55 |
| aqua | #55FFFF |
| red | #FF5555 |
| light_purple | #FF55FF |
| yellow | #FFFF55 |
| white | #FFFFFF |
| run_command | command | 以点击的玩家身份运行命令 |
| suggest_command | command | 把命令填入玩家的聊天栏 |
| open_url | url | 玩家同意后打开网页(http 或 https) |
| copy_to_clipboard | value | 复制文本 |
| change_page | page | 在书中翻到那一页 |
| 文本格式 | 自 1.21.5 起,文本的写法与物品组件相同:{text:"Hi",color:"gold"},并使用 click_event 和 hover_event |
| 多个部分 | 列表的第一部分会把样式传给后面的部分,所以生成器用一个空部分开头 |
| 接收者 | 只限玩家:@e 和 @n 需要 type=player、游戏模式或等级 |
| 颜色 | 16 个名称之一,或任意 #rrggbb |
| 名称和分数 | "selector" 和 "score" 部分会在命令执行时由游戏填入 |





