![]() |
VOOZH | about |
Chat types are JSON files located in data packs that allow limited control of chat message styling.
Chat types are stored as JSON files at the path data/<namespace>/chat_type/<name>.json.
%s insertions.sender, target, and content.| Chat type | Source | Default chat format | Default narration |
|---|---|---|---|
chat
|
A message sent by a player | <%sender> %content | %sender says %content |
emote_command
|
A message sent using the /me command
|
* %sender %content | |
msg_command_incoming
|
A received private message from a player | %sender whispers to you: %content | %sender says %content |
msg_command_outgoing
|
The private message sent to another player | You whisper to %target: %content | |
say_command
|
The message from a /say command
|
[%sender] %content | |
team_msg_command_incoming
|
A received team message from a player | %target <%sender> %content | |
team_msg_command_outgoing
|
The team message sent to another player | -> %target <%sender> %content | |
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.19 | 22w18a | Added chat types to data packs. | |||||
| 1.19.1 | 22w24a | The [NBT Compound / JSON Object] style field is now optional. | |||||
| Pre-release 2 | Flattened the decoration field, fields are placed directly into [NBT Compound / JSON Object] chat and [NBT Compound / JSON Object] narration.
| ||||||
Removed the priority field in [NBT Compound / JSON Object] narration.
| |||||||
Removed the overlay field. Chat types can no longer be used to show text on the action bar.
| |||||||
Removed the system, game_info, and tellraw_command builtin chat types. | |||||||
| Pre-release 3 | msg_command has been split into msg_command_outgoing and msg_command_incoming.
| ||||||
Renamed the team_name parameter to target. This is now also used in msg_command_outgoing. | |||||||
| Pre-release 5 | team_msg_command has been split into team_msg_command_incoming and team_msg_command_outgoing. | ||||||