Client Commands
Client Commands is a tiny utility for other mods to add client side only commands with Auto Completion
介绍
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
常见问题
Client Commands 支持哪些 Minecraft 版本?
Client Commands 支持 Minecraft Java 版 1.16.1–1.18.1,共 7 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Client Commands 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
JTK222 的其他作品
查看全部 →Global Packs
为整合包附带默认数据包和资源包!
EzZoom
新增高度可自定义的缩放功能,可通过按键、鼠标滚轮等方式使用,更多操作方式还将陆续加入。
Project Brazier
一款中世纪主题的 RPG 模组(原名 Dark Roleplay Medieval)
Dark Roleplay Core
JTK 制作的所有黑暗角色扮演模组都需要的核心模组

评论
登录后评论和评分