promotional bannermobile promotional banner

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.2.
Gemini_Generated_Image_6ishwf6ishwf6ish.png

Gemini_Generated_Image_6ishwf6ishwf6ish.png

Description

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.2 needs this

Minecraft 26.2 refactored the UI and chat-send layers, which introduced two 256-character walls:

1. EditBox.setMaxLength(256): the input box refuses anything past 256 characters.
2. New in 26.2: 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.2
- 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.

The Longer Command Box Team

profile avatar
Owner
  • 5
    Projects
  • 876
    Downloads

I don't really have anything to say

More from MingXtiView all

  • Ancient Ruins: Forgotten Age project image

    Ancient Ruins: Forgotten Age

    Ancient Ruins — 12 handcrafted ruins across the Overworld, each with its own biome, loot and achievement. Data-driven, for Minecraft 26.2 (Fabric).

    • 27
    • August 5, 2026
  • Piglin Outposts project image

    Piglin Outposts

    A Fabric mod that adds three new piglin camps to the Nether.

    • 174
    • July 16, 2026
  • Wanderers Campsite project image

    Wanderers Campsite

    Adds a cozy, naturally generating Wanderer's Campsite structure to your world, featuring colorful wool tents, decorative details, and a custom loot chest to discover!

    • 151
    • July 11, 2026
  • Legacy Boat Ruins project image

    Legacy Boat Ruins

    Boat Ruins Mod — three shipwreck variants spawn in ocean biomes with five loot tables. Cartographers sell maps to the nearest ruin.

    • 517
    • June 30, 2026
  • Ancient Ruins: Forgotten Age project image

    Ancient Ruins: Forgotten Age

    Ancient Ruins — 12 handcrafted ruins across the Overworld, each with its own biome, loot and achievement. Data-driven, for Minecraft 26.2 (Fabric).

    • 27
    • August 5, 2026
  • Piglin Outposts project image

    Piglin Outposts

    A Fabric mod that adds three new piglin camps to the Nether.

    • 174
    • July 16, 2026
  • Wanderers Campsite project image

    Wanderers Campsite

    Adds a cozy, naturally generating Wanderer's Campsite structure to your world, featuring colorful wool tents, decorative details, and a custom loot chest to discover!

    • 151
    • July 11, 2026
  • Legacy Boat Ruins project image

    Legacy Boat Ruins

    Boat Ruins Mod — three shipwreck variants spawn in ocean biomes with five loot tables. Cartographers sell maps to the nearest ruin.

    • 517
    • June 30, 2026