
Locator Display
仅客户端的定位栏颜色显示模组
Locator Display 是一款 Minecraft 客户端模组,它在玩家列表(Tab 列表)中每个玩家名称前添加一个可自定义的符号,该符号的颜色与定位栏颜色完全一致。
功能
- 在 Tab 列表中每个玩家名称前显示可自定义颜色的符号。
- 通过从预设字符中选择或指定自定义字符来自定义符号:
⬤, ▌, ⬛, ★, ◆, ▶, ✚, ✖
- 使用图标或纹理代替符号进行显示。
- 可选择为玩家名称着色。
- 距离检测功能显示玩家与你之间的距离远近。
- 允许禁用定位栏,仅显示经验条。
- 选择使用服务器提供的 UUID 或官方 Mojang UUID 以确保颜色准确。
- 对于未在 Mojang 注册的玩家,回退使用确定性的离线 UUID。
- 完全基于客户端;适用于任何 SMP 服务器。
- 当 Tab 列表中有数千名玩家时(如小游戏服、PVP 服),自动关闭此功能。



依赖
- Minecraft 1.21.6+
- Fabric Loader 0.19.3+
- Java 21+
- ModMenu(推荐)
安装方法
- 下载对应的
.jar 文件
- 将文件放入
.minecraft/mods 文件夹
- 使用 Fabric Loader 启动 Minecraft
工作原理
- 模组从客户端或公共 Mojang API 获取玩家的 UUID。
- 使用与定位栏相同的算法从 UUID 计算颜色。
- 将指定的符号前置到 Tab 列表中的玩家名称前。
配置
模组可通过 ModMenu 进行配置:

选项:
Enabled → 开启或关闭模组
Icon Type → 选择 Texture(纹理)或 Symbol(符号)
Icon → Near(近)、Nearby(附近)、Far(远)、Distant(极远)、Bowtie(领结)
> Custom (max length 3) 或 > Custom texture PATH → 如果在前一项选择了 Custom(自定义),请在此处输入你的自定义配置
- 自定义符号:
- 最多输入 3 个字符
- 这些字符将被前置到玩家名称前
- 字符必须能被 Minecraft 渲染
- 示例:
>> Player_Name
- 自定义图标:
- 允许使用实例加载的纹理
- 格式如
modid:block/custom_block
- 仅接受任何实例
textures/ 目录内的子目录
- 对于 Minecraft,以下目录内的任意纹理均可使用:
block, colormap, effect, entity, environment, font, gui, item, map, misc, mob_effect, painting, particle, trims
- 输入示例:
block/dirt
minecraft:item/iron_sword
hud/heart/full.png
minecraft:textures/block/glowstone.png → 正确的输入方式,模组会将所有内容格式化为这种形式
- 建议:使用浅色纹理(即深色像素较少的纹理)

Advanced Options(高级选项):
UUID Source → 可以是 Server-Provided(服务器提供)或 Official Mojang(来自 Mojang API)
Proximity Detection(距离检测)→ 禁用图标自定义,使图标变大或变小以匹配定位栏。对于处于不同维度的玩家,将显示领结图标。
Color Name → 将玩家名称的颜色更改为其定位栏颜色
Disable Locator Bar → 顾名思义,强制仅显示经验条
Defaults → 将所有选项重置为默认值
Done → 保存配置并退出
免责声明
本软件是免费软件:你可以自由地修改和重新分发它。
在法律允许的范围内,不提供任何担保。
许可证
代码:GPL-3.0-only
资产(徽标/图标):CC BY-NC-ND 4.0(详见 LICENSE-ASSETS)
贡献
如果你发现错误或有任何功能请求,请提交 Issue。
如果你想贡献代码,请务必查看 TODO 文件和已打开的 Issues。
向此仓库贡献代码即表示你同意所有新增/修改内容将以 GPLv3-only 许可,并同意允许以编译形式分发。
致谢
基于 Fabric 示例模组模板(CC0)。

Locator Display
Just a Client-Side Locator Bar Color Display Mod
Locator Display is a client-side Minecraft mod that adds a customizable symbol
next to player names in the tab list, colored exactly like their locator bar color.
Features
- Displays a customizable colored symbol before each player's name in the tab list.
- Customize the symbol by choosing one of the characters in the preset or by specifying a custom one:
⬤, ▌, ⬛, ★, ◆, ▶, ✚, ✖
- Display an icon or a texture instead of a symbol.
- Choose to color player names.
- Proximity Detection shows how far or near a player is from you.
- Allows disabling the locator bar and only displaying the experience bar.
- Choose to use the Server-Provided or the official Mojang UUID for accurate colors.
- Falls back to a deterministic offline UUID for players not registered with Mojang.
- Fully client-side; works on any SMP.
- Turns off in servers with thousands of players in the tab list(minigames, pvp servers)



Requirements
- Minecraft 1.21.6+
- Fabric Loader 0.19.3+
- Java 21+
- ModMenu (recommended)
Installation
- Download the appropriate
.jar
- Place the file into your
.minecraft/mods folder
- Launch Minecraft with Fabric Loader
How It Works
- The mod fetches the player's UUID either from the client or from the public Mojang API.
- It computes a color from the UUID using the same algorithm as the locator bar.
- The specified symbol is prepended to the player's name in the tab list.
Configuration
The mod is configurable with ModMenu:

Options:
Enabled → to turn the mod on and off
Icon Type → Select either Texture or Symbol
Icon → Near, Nearby, Far, Distant, Bowtie
> Custom (max length 3) or > Custom texture PATH → If Custom was specified in the previous selection, put your custom configuration here
- Custom Symbol:
- input at most 3 characters
- those characters will be prepended to the player name
- the character must be renderable by Minecraft
- Example:
>> Player_Name
- Custom Icon:
- Allows instance-loaded textures to be used
modid:block/custom_block
- accepts only directories inside the
textures/ directory of any instance
- for Minecraft, any texture inside:
block, colormap, effect, entity, environment, font, gui, item, map, misc, mob_effect, painting, particle, trims
- Example input:
block/dirt
minecraft:item/iron_sword
hud/heart/full.png
minecraft:textures/block/glowstone.png → the correct input, the mod formats everything into this
- Recommended: Use light textures(ones that do not contain a lot of dark pixels)

Advanced Options:
UUID Source → can either be Server-Provided or Official Mojang(from the Mojang API)
Proximity Detection → Disables icon customization, makes the icon smaller or bigger like the locator bar. For players in a different dimension, a bowtie will be displayed.
Color Name → change the color of the player names into their locator bar color
Disable Locator Bar → as the name suggests, forces only the Experience Bar to appear
Defaults → sets all options to the defaults
Done → Saves the configuration and exits
Disclaimer
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
License
Code: GPL-3.0-only
Assets (logo/icon): CC BY-NC-ND 4.0 (see LICENSE-ASSETS)
Contributing
Open an issue if you find a bug or have a feature request.
If you want to contribute code-wise, make sure to check the TODO file and opened issues.
By contributing to this repository you agree that all additions/modifications will be licensed
under GPLv3-only and you agree to allow distribution in compiled form.
Credits
Based on the Fabric example mod template (CC0).
评论 0
登录后参与评分
还没有评论,来抢沙发吧