Mineuniverse
Mods
Client Commands

Client Commands

MOD
Client Commands is a tiny utility for other mods to add client side only commands with Auto Completion
by JTK222
Download Claim this project
7,802 downloads
0 likes
Updated Oct 14, 2026
0 hypes
API and Library
Advertisement Remove ads with Premium →

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

Client Commands - 1.18.1 - v1.3
MC 1.18.1, Forge, 1.18
Release 2022-02-26 Get
Client Commands - 1.16.5 - v1.2
MC 1.16.3, 1.16.1, 1.16.5, Forge, 1.16.4, 1.16.2
Release 2021-09-19 Get
Client Commands - 1.16.5 - v1.0
MC 1.16.5, Forge
Release 2021-03-04 Get
Client Commands - 1.16.5 - v1.1
MC 1.16.5, Forge
Release 2021-03-04 Get

More from JTK222

Advertisement Remove ads with Premium →

You Might Also Like