Mineuniverse
Log in Register
Mods

Client Commands

Client Commands is a tiny utility for other mods to add client side only commands with Auto Completion
by JTK222
Claim this project
7,234 downloads
0 likes
Updated Jun 30, 2026
0 hypes

Client Commands is a utility/library mod for other mods to use.
It reintroduces client side only commands to Minecraft (Forge).
This mod doesn't add anything on its own.

The prefix for client side commands is !

 

How to for Modders:
Commands can be registered 2 way, either by sending your commands over with the IMC system,
or by requesting to get the CommandDispatcher over IMC.
The latter is easier to use if you've got multiple commands.

You can just create your commands the same way as you would for normal Commands.
However, both the world and server of the CommandSource will be null!
Here's an example of the IMC system, the event is registered on the Mod Bus:

private static void enqueueIMC(InterModEnqueueEvent event){
    //Registering single commands expects a 'LiteralArgumentBuilder<?>'
    InterModComms.sendTo("clientcommands", "register_command", () -> /* command instance */);


    //Registering commands using a callback expects a 'Consumer<CommandDispatcher<CommandSource>>'
    InterModComms.sendTo("clientcommands", "register_commands", () -> this::registerCommands);

}

 

private static void registerCommands(CommandDispatcher<CommandSource> commandDispatcher){
    //register your commands to the dispatcher
}

 

Feedback as well as Questions can be posted in our Discord

The Discord Logo with a Join Us banner right next to it

No files available for download.

More from JTK222

Critter Barriers
5,323
Dark Roleplay Core Modules - Dates
5,286
Dark Roleplay Core Modules - Blueprints
5,251
Global Packs
38,370,507
Graveyard Galore
35,197
EzZoom
3,249,462

You Might Also Like

Vivecraft
A Minecraft VR mod on a loader of your choice!
9,988,339
Athena
A crossplatform (Forge/Fabric) solution to connected block textures for 1.19.4+
99,799,527
Lodestone
A collection of code used throughout projects under the Lodestar team.
9,914,417
TheDragonLib
A library for most of sokratis12GR's Mods
9,910,232
Multi Mob Library
A library mod containing essential files for Daveyx0's mob mods
9,892,767
FTB Library (Forge) (Legacy)
FTB Library is a library mod that is used for some of our mods.
98,265,314