Client Commands
No reviews yet
Client Commands is a tiny utility for other mods to add client side only commands with Auto Completion
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
