一个用于更改玩家名称的模组。旨在在游戏中一致地替换玩家的显示名称。
适用于角色扮演服务器、内容创作、截图,或仅在不更改账户用户名的情况下使用不同的显示名称。
需同时在客户端和服务端安装方可完整生效。
功能
名称更改
该模组的核心功能显然是更改玩家名称。以下是受影响的所有位置:
界面与显示
- 聊天中的名称标签
- 玩家头顶的名称板
- 玩家列表(按
Tab 键打开)
- 社交互动界面
- 计分板侧边栏显示
- 局域网世界的 MOTD(服务器消息)
命令与系统集成
- 命令中的实体选择
- 各类系统消息
- 死亡提示
- 进度(Advancements)
- 加入/离开通知
名称命令
/name 命令用于设置、重置或查看玩家名称。需要操作员权限,并包含两个子命令:
/name set <目标> <名称> 设置目标玩家的名称
/name reset [<目标>] 将目标玩家(如果省略目标则为自身)的名称重置为其原始名称
/name inspect [<目标>] 显示有关玩家名称的信息,如其原始名称和自定义名称
自定义名称按世界存储,并在重载之间保持不变。
配置文件
该模组目前有两个配置选项:
- Name Conflict Warning(名称冲突警告):在设置名称时,如果该名称与其他玩家的原生或自定义名称发生冲突,则显示警告。
- Forbid Name Conflicts(禁止名称冲突):如果设置名称会导致与其他玩家的原生或自定义名称发生冲突,则禁止设置该名称。
配置文件位于常规的 ./minecraft/config 目录下的 namechanger-common.toml 文件中,也可通过 Fabric 上的配置模组 Cloth Config 以及 NeoForge 原生支持进行编辑。
名称
在 /name set 命令中输入的自定义名称是一个文本组件。你可以在 Minecraft Wiki 的 文本组件 页面上了解更多相关内容。
以下是使用 /name set 命令的示例:
纯文本:
/name set @s mineTomek
纯文本包含空格或其他特殊字符:
/name set @s "mineTomek :3"
格式化文本:
/name set @s {text: "mineTomek", color: "#6dc53b", bold: true}
格式化仅影响聊天消息和玩家列表。
在大多数其他场景中,Minecraft 会移除格式并显示为纯文本。
A mod for changing a player’s name. Designed to replace the player’s name consistently across the game.
Useful for roleplay servers, content creation, screenshots, or simply using a different display name without changing your account username.
Needs to be installed on both the client and the server for full functionality.
Features
Name Changing
The primary feature of this mod is obviously changing the player's name. Here’s every place this affects:
UI & Display
- Chat name labels
- Nameplates above players
- Player list (under
Tab)
- Social interactions screen
- Scoreboard sidebar display
- MOTD for LAN worlds
Commands & System Integration
- Entity selection in commands
- Works with both suggestions and execution
- Original names still work
- Various system messages
- Death
- Advancements
- Join/Leave
Name Command
The /name command is used to set, reset, or inspect player names. It requires operator permissions and has two subcommands:
/name set <target> <name> sets the name of the target player
/name reset [<target>] resets the name of the target player (or self if target is omitted) to what it was originally
/name inspect [<target>] shows information about the player's name like their original and custom name
Custom names are stored per-world and persist between reloads.
Config
The mod currently has two config options:
- Name Conflict Warning adds a warning when setting a name if it conflicts with other players' original or custom names
- Forbid Name Conflicts prevents setting a name if it would cause conflicts with other players' original or custom names
The config is available in the namechanger-common.toml file in the regular ./minecraft/config directory and also using config mods like Cloth Config on Fabric and natively on NeoForge.
Names
The custom name entered in the /name set command is a text component. You can read more about them on the Text Component page on the Minecraft Wiki.
Here are examples of using the /name set command:
Plain text:
/name set @s mineTomek
Plain text with spaces or other special characters:
/name set @s "mineTomek :3"
Formatted text:
/name set @s {text: "mineTomek", color: "#6dc53b", bold: true}
Formatting only affects chat messages and the player list.
In most other places, Minecraft strips formatting and displays plain text instead.
评论 0
登录后参与评分
还没有评论,来抢沙发吧