跳到正文

Client Command Aliases

作者:Caltinor

use custom command aliases wherever you go

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

This mod allows you to define your own custom aliases for any command, modded or vanilla.  This allows you to type your own version of a command instead of the default one provided by the game/mod.   

For example, you could replace `/setworldspawn` with `/sws` or “/gamemode” with “/gm” such that you could type “/gm 0” to set your gamemode to survival without typing the entire word “gamemode”

 

This change is only present on the client as a QOL feature and has no impact on the server.  This mod replaces your alias with the actual command when it is ultimately sent to the server, so this is not needed serverside to work.

 

to add command aliases, add them to the config file with the following format: “myalias:actualcommand”

*(if no config exists, run the client once and it should appear after you get to the main menu)*

 

you can have multiple aliases for the same command, but not the same alias for multiple commands:  eg a command like “/updatemoddata” can have aliases listed “umd:updatemoddata” and “updata:updatemoddata”.  both aliases will call the same command.  

 

the config file should look similar to this when complete.  *(JSON Array format if you want to get technical)*

[“alias1:command1”, “alias2:command2”, “alias3:command2]

 

 

常见问题

Client Command Aliases 支持哪些 Minecraft 版本?

Client Command Aliases 支持 Minecraft Java 版 1.12–1.12.2,共 3 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Client Command Aliases 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Caltinor 的其他作品

查看全部 →