CurseForge · Minecraft mod
Longer Command Box
Removes the 256-character limit on the chat and command input box, raising it to 32,767 characters. Send long NBT commands (setblock, summon, give) without truncation — client-side only, no Fabric API required, for Minecraft 26.1+.
Quick answer
Which Longer Command Box release matches 26.1.2?
Longer Command Box longercommandbox-1.0.0-26.1.2.jar targets 26.1.2 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is Longer Command Box required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Longer Command Box longercommandbox-1.0.0-26.1.2.jar need?
longercommandbox-1.0.0-26.1.2.jar on 26.1.2. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Longer Command Box without breaking your instance.
Built for Longer Command Box longercommandbox-1.0.0-26.1.2.jar on 26.1.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use longercommandbox-1.0.0-26.1.2.jar. It targets 26.1.2 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside longercommandbox-1.0.0-26.1.2.jar. It opens that exact file at the source.
About this project
What does Longer Command Box add?
Longer Command Box
Type and send commands up to the server's real 32,500-character limit - no more 256-character wall.
What it does
Input limit raised from 256 to 32,767 characters: the chat and command input box (ChatScreen) accepts the full range.
Commands are no longer truncated before sending: Minecraft 26.2 silently cuts every command to 256 characters on its way out (normalizeChatMessage to trimChatMessage). This mod bypasses that truncation for slash commands, so long NBT commands are transmitted intact.
Only the chat and command box is affected: signs, books, server-address fields and other text widgets keep vanilla behaviour.
The result
Long commands now work, up to the limit the server accepts:
Commands (setblock, summon, give, data, ...): client limit 32,767 (this mod), server limit about 32,500.
Plain chat messages: client limit 32,767 (input only), server limit 256 (vanilla server).
A 449-character setblock command that places a zombie spawner with full iron armor, trims and effects - typed in one go, executed as-is.
Why Minecraft 26.1+ needs this
Minecraft 26.1+ refactored the UI and chat-send layers, which introduced two 256-character walls:
EditBox.setMaxLength(256): the input box refuses anything past 256 characters.
New in 26.1+: ChatScreen.normalizeChatMessage() applies StringUtil.trimChatMessage(), a hard substring(0, 256) truncation on every message, commands included, right before it is sent. Even with a raised input limit, commands were cut to 256 and the server failed with "Expected literal ','".
Longer Command Box fixes both: the box accepts more, and commands leave the client intact.
Requirements
Minecraft 26.1+
Fabric Loader 0.19.3 or newer
Java 25 or newer
No Fabric API required: the mod uses only Mixin and the Fabric Loader.
Limitations
Client-side only (environment: client). Servers enforce their own rules:
Commands: about 32,500 characters on vanilla servers - plenty for long NBT.
Plain chat messages: still rejected at 256 characters by vanilla servers; sending longer chat requires server-side support.
Works in singleplayer and multiplayer. No server-side mod needed for long commands.
Technical details
Two targeted Mixins on ChatScreen:
init: re-applies setMaxLength(32767) after vanilla's 256.
normalizeChatMessage: skips the 256-character truncation for slash commands, keeping plain chat messages on vanilla behaviour.
Project description from CurseForge.
Pick your setup
Longer Command Box by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.1.2
1 loader build26.1.1
1 loader build26.1
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Longer Command Box versions and loaders
longercommandbox-1.0.0-26.1.2.jar
8 Aug 2026
Looking for an older file? The official CurseForge project page is in Resources.