CommandKit is a client-only Fabric library mod for Minecraft 26.2. It provides a reusable CommandKit API for other client mods.
- Command nodes with aliases and nested subcommands.
- Player, literal, player-or-literal, repeatable, and rest-of-message arguments.
- Dynamic player suggestions from the current client connection.
- Server/context predicates for enabling definitions only where appropriate.
- Locally declared aliases are added to the client command dispatcher when their canonical server command is present.
- Vanilla and server suggestions remain available when no local definition matches.
Maven coordinates:
com.mythup:commandkit:1.1.0+26.2
repositories {
maven {
url = uri("https://maven.pkg.github.com/MythUp/CommandKit")
}
}
dependencies {
implementation "com.mythup:commandkit:1.1.0+26.2"
}Register definitions from the consumer mod:
CommandNode language = new CommandNode("lang", "language")
.then(new CommandNode("english", "french", "german"));
language.when(context ->
context.serverAddress() != null
&& context.serverAddress().endsWith("example.net"));
CommandCompletion.register(language);Install the published commandkit jar as a separate Fabric mod.
Consumer mods must not add another CommandSuggestions mixin.
When a command has aliases, CommandKit registers those aliases in the client Brigadier dispatcher after the server command tree is received. An alias redirects to the canonical server node, so it receives the same server completion behavior without changing command execution or server permissions.
gradlew build
gradlew publishMavenJavaPublicationToMavenLocal
For GitHub Actions, the repository must provide GITHUB_ACTOR and
GITHUB_TOKEN, with packages: write for publishing and packages: read for
consumers. The package must be granted access to the MythUp/HypixelCommands
repository in GitHub package settings.
The project requires Java 25, Fabric Loader 0.19.3, and Minecraft 26.2.
See LICENSE.