Skip to content

Translation notice

This page was translated with machine translation and may contain inaccuracies. If you can help improve it, please open an issue or submit a pull request.

Text data output: text component ​

Original JSON text

version annotation: The content of this section is theoretically1.14~1.21.4All are available, no additional markings are required;

Text component format ​

plain text "text" with translated text "translate" ​

Text component style "bold" | "italic" | "underlined" | "strikethrough" | "obfuscated" | "color" ​

Font color "color" (see above) / formatting code ​

  • [[1.14-1.16.1] Name the item with colored words](/resources/【1.14-1.16.1】用彩色字给物品命名%20_%20获取玩家头颅%20-%20Minecraft(我的世界)Chinese forum%20-%20Powered%20by%20Discuz!.html)
  • Formatting Code - Minecraft Wiki

Key information"keybind" ​

Data reference "nbt"-"block"/"entity"/"storage" ​

score reference "score" ​

entity name (selector) "selector" ​

font "font" ​

Parse "interpret" ​

Separator "separator" ​

Sprite Object "Object" ​

event ​

Insert chat box event "insertion" ​

click event "clickEvent" ​

actiondescriptionvalueavailability
"open_url"Open web pageurl, such ashttp://example.comChatting, writing books
"run_command"Send commandString, a command, including/Chat, book, notice board
"change_page"Switch page numberIntCompleted book
"suggest_command"Enter commandString, a command, including/Chat
"copy_to_clipboard"Copy to clipboardStringChat, book

HoverEvent "hoverEvent" ​

actiondescriptionvaluecontent
"show_text"Display textJSON textJSON text
"show_item"show item'{id:"",Count:,tag:{}}'{"id":"","count":"","tag":""}
"show_entity"show entity'{type:"",id:"",name:"",tag:{}}'{"name":JSON文本,"type":"","id":""}

chat bar ​

Private message /tell /msg /w ​

  • tell <*玩家\|目标选择器*> <*信息…*>

Team information /teammsg /tm ​

  • teammsg <*信息*>

All player information /say ​

  • say <*信息*>

JSON text information /tellraw ​

Show your own information /me ​

  • me <*动作…*>

title /title ​

Boss bar /bossbar ​

Score board /scoreboard ​

/scoreboard objectives setdisplay <*槽位*> [*记分板ID*]

Written (value will be parsed) ​

Book and pen (the value will not be parsed and is a String) ​

Notice board (value will be parsed) ​

entity name CustomName ​

item naming/annotation Name/Lore ​


Powered by VitePress and GitHub Pages