Shorthand 是一个完全客户端的模组,允许你创建文本别名(或称“缩写”),在发送之前自动替换聊天内容或命令中的词汇。
它适用于任何服务器,包括原版!
我在多人游戏中一直有个问题:总是输入朋友的实际名字而不是他们的 Minecraft 用户名。
现在不用了!这个模组允许你设置命令别名,也就是说你可以配置成使用你喜欢的任意名称!
这是我的使用场景。实际上,我相信富有创意的人能发现这个模组的各种用途,这也是我将其公开的原因。请注意,该模组仍在开发中并正在积极测试,因此可能会出现意想不到的副作用。
命令
主要命令是 /shorthand。
/shorthand add <alias> <replacement>
创建一个新的别名。
示例:/shorthand add friend1 MyFriendsUsername_123
/shorthand remove <alias>
删除一个别名。
示例:/shorthand remove friend1
/shorthand list
显示你创建的所有别名。
工作原理
一旦设置了别名,它就会在普通聊天和命令中自动生效。替换不区分大小写,并且仅匹配完整的单词。
聊天示例:
执行 /shorthand add friend1 MyFriendsUsername_123 后:
你输入:Hi Friend1, how are you?
你发送:Hi MyFriendsUsername_123, how are you?
命令示例:
你输入:/tp friend1
你发送(并执行):/tp MyFriendsUsername_123
所有的别名都保存在 Minecraft 文件夹中的 config/shorthand.json 里,因此每次游玩时都会保留。
Shorthand is a fully client-side mod that lets you create text aliases (or "shorthands") that automatically replace words in your chat or commands before you send them.
It should work on any server, including vanilla!
An issue I've always had when I'm playing multiplayer is typing in my friend's actual name instead of their Minecraft username.
Well, no longer! This mod allows you to set command aliases, meaning you can configure it to use whichever name you prefer!
That's my use case, anyways. In reality, I'm sure that creative people can find all sorts of uses for this mod, which is why I'm making it public. Note that this is still in development and actively being tested, so there might be unexpected side effects.
Commands
The main command is /shorthand.
/shorthand add <alias> <replacement>
Creates a new alias.
Example: /shorthand add friend1 MyFriendsUsername_123
/shorthand remove <alias>
Deletes an alias.
Example: /shorthand remove friend1
/shorthand list
Shows all the aliases you've created.
How It Works
Once you've set an alias, it works automatically in both regular chat and commands. The replacement is case-insensitive and only matches whole words.
Chat Example:
After running /shorthand add friend1 MyFriendsUsername_123:
You type: Hi Friend1, how are you?
You send: Hi MyFriendsUsername_123, how are you?
Command Example:
You type: /tp friend1
You send (and execute): /tp MyFriendsUsername_123
All your aliases are saved to config/shorthand.json in your Minecraft folder, so they persist every time you play.
评论 0
登录后参与评分
还没有评论,来抢沙发吧