HomeJavaModsSpaced Chat
ModsJava

Spaced Chat

by Mabeeck · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 26.1–26.2⬇ Download for 1.19–1.21.11
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Spaced Chat — screenshot 1Spaced Chat — screenshot 2

What does it do?
This mod allows you to write messages starting or ending with spaces and containing consecutive spaces, this includes messages written with /msg.
This is not possible in Vanilla, because the client trimms consecutive spaces and removes spaces at the beginning and end of the message, before sending the message to the server.
Removing this functionality however also means that consecutive spaces in a command may cause it to fail. Lucally you can just not use consecutive spaces in for example an execute command and you'll be fine.
Again, a message written with /msg will still work like expected with consecutive spaces.

How does the mod prevent trimming?
The mod does this by using a mixin to force the public String normalize(String chatText); method in net.minecraft.client.gui.screen.ChatScreen to allways return what was passed to it as chatText.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more