Light Tier Tagger
一款轻量级、100% 客户端的 Fabric 模组,在玩家名称旁显示其 McPvP.com 等级 —— 包括标签页列表(Tab list)、头顶上方以及通过聊天指令。从零构建,依赖极少,采用按需获取机制,即使在大服中也能保持流畅。
功能特性
- 双位置显示等级标签
- 标签页列表(
Tab 菜单)—— 显示在每个玩家名称旁边
- 头顶上方名牌 —— 显示在世界内浮动名称旁边
- 两者可独立开关
- 真实物品图标:为每种游戏模式提供图标,通过自定义位图字体与文本内联绘制(非字母代码 —— 而是真实的钻石剑、喷溅药水、末影水晶等)
- 颜色编码的等级,从铜色到紫水晶色的清晰渐变:
- T5 铜色
- T4 铁银色
- T3 金色
- T2 钻石青色
- T1 紫水晶紫色
- 全程加粗;已退役的等级也使用斜体
- “最高”模式 —— 选择单一游戏模式套装,或让模组显示玩家个人最佳等级(图标会自动切换为该套装的物品)
- 按需获取 —— 仅为你实际可见的玩家拉取等级数据;无批量排行榜下载,无后台扫描。两个并行 HTTP 工作线程限制在约每秒 25 次请求,可在数秒内填充 200 人的大厅,且不滥用 API
- 按条目缓存 —— 一旦获取了玩家的等级,渲染后的聊天组件只构建一次并在每帧重复使用;即使标签页中有数百名玩家,分配开销也极小
- 客户端
/playertier <name> 命令 —— 在聊天中输入命令,本地回复消息将显示该玩家的整体排名、积分、地区以及带有图标的各个套装等级
- 配置中的实时姓名搜索 —— 自动检测你的用户名并预览你的等级;输入其他任何玩家的名字,结果会在短暂防抖后流式显示。无需保存/退出循环
- 可自定义套装图标 —— 捆绑 24 种物品纹理(每件胸甲、剑变体、斧变体、末影水晶、战锤、三叉戟、图腾、末影珍珠、金苹果、喷溅药水等)。可通过配置中的 Icons 选项卡为任意套装选择任意物品
- 可配置的 API 端点 —— 如果
mcpvp.com 更改其主机名或路径,在高级部分粘贴新的基础 URL 即可 —— 无需重新编译
- 容错解析器 —— 同时接受当前的 mctiers 架构 (
rankings.{kit}.{tier, pos}) 和旧版 McPvP 架构 (kitRanks.{kit}: "HT1"),自动适配
隐私保护
Light Tier Tagger 在其模组元数据中声明了 "environment": "client",因此 Fabric 会拒绝在专用服务器上加载它。该 jar 包包含:
- 无数据包代码 —— 零
ClientPlayNetworking,无 sendCommand,无任何类型的数据包发送者
- 无服务端命令注册 ——
/playertier 命令仅向 Fabric 的 客户端 命令调度器注册,因此本地客户端会在其离开你的机器之前拦截它
- 无遥测,无分析
模组唯一的出站流量是从你的计算机直接发出的 HTTPS 连接至:
| 主机 |
用途 |
www.mcpvp.com/tiers/data |
主要等级查询(可配置) |
mctiers.com/api/profile/{uuid} |
备用等级查询(可配置,可禁用) |
api.mojang.com/users/profiles/minecraft/{name} |
用户名 → UUID 解析 |
你连接的 Minecraft 服务器接收到的额外数据包为零。
配置
通过 Mod Menu → Light Tier Tagger 打开。配置界面有三个选项卡。
显示选项卡 (Display tab)
- 启用 (Enabled) —— 主开关
- 在 Tab 中显示 (Show in Tab) —— 开关玩家列表中的等级标签
- 在头顶上方显示 (Show Above Head) —— 开关世界内名牌上的等级标签
- 显示套装图标 (Show Kit Icon) —— 开关物品符号(关闭以仅显示等级文本)
- 套装 (Kit) —— 要显示的游戏模式等级(
Highest, Vanilla, Sword, Axe, Pot, Nethpot, SMP, UHC, Mace)
- 缓存持续时间 (Cache duration) —— 1 到 24 小时;玩家的等级在被重新检查前缓存多久
- API URL —— 默认为
https://mctiers.com/api;如果上游服务更改则覆盖
图标选项卡 (Icons tab)
八个循环按钮(每个游戏模式一个)—— 点击以循环浏览 24 种可用的物品纹理。按钮预览会在物品名称旁边显示实际图标,以便你看到你将获得什么。更改立即生效;玩家标签缓存会自动失效。
默认图标:
| 游戏模式 |
默认图标 |
| Vanilla |
末影水晶 |
| Sword |
钻石剑 |
| Axe |
钻石斧 |
| Pot |
喷溅药水 |
| Nethpot |
下界合金胸甲 |
| SMP |
钻石胸甲 |
| UHC |
金苹果 |
| Mace |
战锤 |
你的等级选项卡 (Your Tier Tab)
- 你自己的等级会从本地 Minecraft 账户自动加载 —— 无需输入你的名字
- 标题行显示你的整体排名、积分和地区
- 按套装细分显示你排名的所有游戏模式,带有图标 + 彩色加粗等级
- 搜索其他玩家 (Search Another Player) —— 输入任何名字;结果在约 1 秒内实时更新
命令
/playertier <username>
仅限客户端。在 mctiers 上查找指定玩家,并在本地聊天消息中打印其完整的等级卡片:
正在查找 coldified 的等级…
coldified • 排名第 2 • 326 分 • EU
<sword> LT1 <axe> LT1 <pot> LT1 <nethop> LT2 …
输出仅在你的聊天框中渲染 —— 不会发送给服务器或其他玩家。
性能说明
- 标签页列表和名牌标签对每个玩家仅在设置更改时预渲染一次,然后重复使用 —— 即使 200 个标签页条目在 60 FPS 下,每帧的工作量也可忽略不计
- HTTP 获取在两个守护进程工作线程上运行,具有去重请求队列,因此反复打开 Tab 不会堆积重复查询
- 404(未排名的玩家)作为负结果被缓存,以避免重复查询
兼容性
- Minecraft: 26.1+
- 加载器: Fabric (Loader 0.18+)
- 必需依赖: Fabric API、MixinExtras
- 可选依赖: Mod Menu(用于通过模组列表打开配置界面)
- 可与其他 tier-tagger 模组共存 —— 使用 MixinExtras 的
@ModifyReturnValue,该机制可安全地与任何修改相同名称渲染方法的模组组合使用
数据来源
等级数据由 mcpvp.com 提供,这是 McPvP 测试社区的官方 API。本模组与 mcpvp.com 或 McPvP 无关 —— 它是一个独立客户端,用于消费其公开 API。
许可证
MIT
Light Tier Tagger
A lightweight, 100% client-side Fabric mod that displays each player's McPvP.com tier next to their name — in the tab list, above their head, and via a chat command. Built from scratch with minimal dependencies and on-demand fetching so it stays fast even on huge servers.
Features
- Tier tags in two places
- Tab list (
Tab menu) — appears beside each player's name
- Above-head nameplates — appears beside the floating name in-world
- Each can be toggled independently
- Real item icons for every gamemode, drawn inline with the text via a custom bitmap font (not letter codes — actual diamond swords, splash potions, end crystals, etc.)
- Color-coded tiers with a clean ramp from copper to amethyst:
- T5 copper
- T4 iron silver
- T3 gold
- T2 diamond cyan
- T1 amethyst purple
- Bold throughout; retired tiers also italicised
- "Highest" mode — pick a single gamemode kit, or let the mod show whichever tier is the player's personal best (the icon automatically swaps to that kit's item)
- On-demand fetching — tiers are only pulled for players you can actually see; no bulk leaderboard download, no background scanning. Two parallel HTTP workers throttled to ~25 req/sec keep a 200-player lobby populated in seconds without hammering the API
- Per-entry caching — once a player's tier is fetched, the rendered chat component is built once and reused every frame; minimal allocation overhead even with hundreds of players in tab
- Client-side
/playertier <name> command — type the command in chat and a local-only message replies with the player's overall rank, points, region, and every kit tier laid out with icons
- Live name search in the config — auto-detects your own username and previews your tier; type any other player's name and results stream in after a brief debounce. No save/quit cycle needed
- Customisable kit icons — 24 item textures bundled (every chestplate, sword variant, axe variant, end crystal, mace, trident, totem, ender pearl, golden apple, splash potion, and more). Pick any item for any kit through the Icons tab in the config
- Configurable API endpoint — if
mcpvp.com ever changes its hostname or path, paste the new base URL in the Advanced section — no rebuild required
- Tolerant parser — accepts both the current mctiers schema (
rankings.{kit}.{tier, pos}) and the legacy McPvP schema (kitRanks.{kit}: "HT1"), automatically
Privacy
Light Tier Tagger declares "environment": "client" in its mod metadata, so Fabric will refuse to load it on a dedicated server. The jar contains:
- No packet code — zero
ClientPlayNetworking, no sendCommand, no packet senders of any kind
- No server-side command registration — the
/playertier command registers with Fabric's client command dispatcher only, so the local client intercepts it before it ever leaves your machine
- No telemetry, no analytics
The only outbound traffic from the mod is direct HTTPS from your computer to:
| Host |
Purpose |
www.mcpvp.com/tiers/data |
Primary tier lookups (configurable) |
mctiers.com/api/profile/{uuid} |
Backup tier lookups (configurable, can be disabled) |
api.mojang.com/users/profiles/minecraft/{name} |
Username → UUID resolution |
The Minecraft server you're connected to receives zero additional packets.
Configuration
Open via Mod Menu → Light Tier Tagger. The config screen has three tabs.
Display tab
- Enabled — master toggle
- Show in Tab — toggle the tier tag in the player list
- Show Above Head — toggle the tier tag in the in-world nameplate
- Show Kit Icon — toggle the item glyph (turn off for tier text only)
- Kit — which gamemode tier to display (
Highest, Vanilla, Sword, Axe, Pot, Nethpot, SMP, UHC, Mace)
- Cache duration — 1 to 24 hours; how long a player's tier stays cached before being re-checked
- API URL — defaults to
https://mctiers.com/api; override if the upstream service changes
Icons tab
Eight cycle buttons (one per gamemode) — click to cycle through 24 available item textures. The button preview shows the actual icon next to the item name so you can see what you'll get. Changes take effect immediately; the per-player tag cache is invalidated automatically.
Default icons:
| Gamemode |
Default Icon |
| Vanilla |
End Crystal |
| Sword |
Diamond Sword |
| Axe |
Diamond Axe |
| Pot |
Splash Potion |
| Nethpot |
Netherite Chestplate |
| SMP |
Diamond Chestplate |
| UHC |
Golden Apple |
| Mace |
Mace |
Your Tier Tab
- Your own tier is auto-loaded from your local Minecraft account — no typing your name
- Header line shows your overall rank, points, and region
- Per-kit breakdown shows every gamemode you're ranked in with icon + colored bold tier
- Search Another Player — type any name; results populate live within ~1 second
Commands
/playertier <username>
Client-side only. Looks up the named player on mctiers and prints a local chat message with their full tier card:
Looking up tier for coldified…
coldified • Rank #2 • 326 pts • EU
<sword> LT1 <axe> LT1 <pot> LT1 <nethop> LT2 …
The output is rendered in your chat box only — nothing is sent to the server or to other players.
Performance notes
- Tab list and nameplate tags are pre-rendered once per player per settings change, then reused — even 200 tab entries at 60 FPS adds negligible per-frame work
- HTTP fetches run on two daemon worker threads with a deduplicated request queue, so opening Tab repeatedly doesn't pile up duplicate lookups
- 404s (unranked players) are cached as negative results to avoid re-querying
Compatibility
- Minecraft: 26.1+
- Loader: Fabric (Loader 0.18+)
- Required dependencies: Fabric API, MixinExtras
- Optional dependencies: Mod Menu (for opening the config screen via the mods list)
- Works alongside other tier-tagger mods — uses MixinExtras
@ModifyReturnValue which composes safely with any other mod that also touches the same name-rendering methods
Data source
Tier data is provided by mcpvp.com, the official API for the McPvP testing community. This mod is not affiliated with mcpvp.com or McPvP — it's an independent client that consumes their public API.
License
MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧