1.0.0
Compatibility
Required content
Changes
Nick - 昵称模组
此模组由AI生成(opencode内的DeepSeek V4)
一个 Fabric 服务端模组,允许玩家修改自己的显示名称(昵称),支持团队颜色、前缀/后缀,并可通过昵称查找玩家。
命令
设置昵称
| 命令 | 权限 | 说明 |
|---|---|---|
/nick set <昵称> |
所有人 | 设置自己的昵称 |
/nick set <目标> <昵称> |
OP | 设置他人的昵称 |
/nick reset |
所有人 | 重置自己的昵称 |
/nick reset <目标> |
OP | 重置他人的昵称 |
<目标> 支持玩家名、@p、@a、@r、@s 等选择器。
昵称查找
设置昵称后,所有命令皆可用昵称替代玩家名,例如:
/tp 小明/msg 小明/kick 小明
注意:若昵称与真实玩家名同时存在,玩家名优先匹配。
昵称格式
- 单个词直接写:
/nick set 小明 - 带空格的昵称用引号:
/nick set "小明 同学" - 会显示队伍的团队颜色、前缀和后缀
效果
- ✅ 聊天消息显示昵称
- ✅ Tab 列表显示昵称
- ✅ 头顶名签显示昵称(单人模式)/ 需客户端装模组(服务器模式)
- ✅ 支持客户端三种显示模式:仅昵称、昵称+原名、隐藏
- ✅ 团队颜色生效
- ✅ 昵称查找玩家
安装
服务端
- 将
nick-*.jar放入mods/目录 - 重启服务器
客户端(可选)
客户端安装后,头顶名签可在服务器模式下显示昵称,并可通过客户端配置调整显示方式。不装则仅聊天和 Tab 列表生效。
客户端配置
客户端安装后自动生成 config/nick-client.json,可调整昵称的头顶名签显示方式:
| 值 | 效果 | 示例 |
|---|---|---|
"nick_only" |
仅显示昵称(默认) | 小明 |
"nick_and_original" |
昵称+原名 | [小明]Player58 |
"hide" |
隐藏昵称,显示原名 | Player58 |
配置文件
config/nick.json,格式示例:
{
"Player58": {"nick": "小明"},
"Steve": {"nick": "小红"}
}
技术信息
- Minecraft 版本:26.1
- 框架:Fabric Loader 0.19.2 / Fabric API 0.149.0+26.1.2
- Maven 组:
com.dongchengqiao.nick - 主类:
com.dongchengqiao.nick.Nick
Optional dependencies
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:VtG7yP1S:aG9Dm3u9"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:VtG7yP1S:aG9Dm3u9"
}

