A Fabric client mod for Minecraft 26.2 that makes server chat look like vanilla again.
Servers decorate player chat with ranks, clan tags, badges, gradients and custom separators:
[KAGE][GOLD] tnn » hello
[Fox] [˖。ᯓ⭑˚⊹Galaxy] Cami: gg xD
[Parrot] [Legion] Yolo: elytras or not?
Clean Chat turns those back into the vanilla form, using the sender's real account name:
<tnn> hello
<camicupcake> gg xD
<YoloYoloPow> elytras or not?
Client side only. It changes nothing you send, and nothing the server receives.
- Rewrites decorated player chat to
<Username> message, dropping ranks, clan tags, badges, team colours, gradients and custom separators. - Uses the real account name. Servers that nickname players show
Yolowhile the account isYoloYoloPow; the mod reads the account from the server's own click-to-whisper link. - Strips resource pack icons out of message bodies, turning emotes into their name
(
:blush:) and removing rank glyphs. - Tones down server messages instead of hiding them: colours snap to the vanilla palette, gradients collapse, decorative bold and italics go. Only blank spacers and ASCII rules that contain no words at all are dropped.
- Leaves everything else alone. Advancements, death messages, joins and leaves, command feedback, whispers and action bar text are untouched.
The mod never rewrites a line it cannot place. Signed player chat packets carry the sender profile and the signed text, so nothing is parsed at all. Plugin chat arrives as a system message with no sender attached, and only qualifies when all of these hold:
- nothing in the component was generated by the game — a
death.,multiplayer.player.,commands.orchat.type.advancement.key means it is vanilla's, not the server's; - a name-shaped token sits outside every tag group;
- everything before that token is decoration — brackets, symbols, spacing;
- a separator glyph and a non-empty body follow.
Anything that fails is left exactly as the server sent it.
Open the settings through Mod Menu. Both options are off.
| Option | What it does |
|---|---|
| Debug logging | Logs every handled message with its raw component JSON, for diagnosing a miss. Also available as -Dcleanchat.debug=true. |
| Collect unrecognised shapes | Writes the structure of lines the mod could not classify to config/clean-chat/shapes.txt. |
The shapes file exists so detection can be improved on servers I have never seen. Names, ranks and
message text are removed before anything is written, so a line becomes
[<word>] [<word>] <word>: <body>. Nothing is ever uploaded — if you want to help, attach the file
to an issue yourself, and if you don't, delete it.
Open an issue. The most useful report is a chat line that was handled
wrongly, together with the server it came from. Turning on debug logging and pasting the matching
json= line from logs/latest.log tells me exactly what the server sent, which usually turns a
guess into a fix.
./gradlew build
The jar lands in build/libs/. Requires JDK 25.
CC BY-NC-SA 4.0. You may share and adapt it for non-commercial purposes, with credit, and derivatives must carry the same licence.