Shard Displayer
实时显示 DonutSMP 玩家的碎片数量,数据来自 donutstats.net。
完全基于客户端的 Fabric 模组,支持自定义标签外观。
? 特性
自动从 donutstats.net 解析所有可见玩家的碎片数
在玩家头顶显示标签,格式如 ✦ 12.5K(自动使用 K、M、B、T 后缀进行格式化)
完全可自定义显示:
- 文本颜色和缩放比例
- 玩家上方的垂直偏移量
- 背景开关
- 显示/隐藏自己的碎片数
- 调试模式 – 显示加载状态(loading、err、waiting)以排查问题
- 智能缓存:活跃时快速更新(每 15 秒),后台运行时宽松更新(每 3 分钟)
- 无需 API 密钥 – 所有数据均取自公开统计页面
? 命令
所有命令均以 /shardslabel 开头(支持 Tab 补全)。
命令 描述
/shardslabel on / off ==== 启用/禁用碎片标签
/shardslabel toggle ==== 切换可见性
/shardslabel self on / off ==== 显示/隐藏自己的碎片数
/shardslabel background on / off ==== 启用/禁用标签背景
/shardslabel scale <30..200> ==== 设置文本大小百分比(默认 70)
/shardslabel y <offset> ==== 垂直偏移量(范围 -100 到 100,默认 25)
/shardslabel color <#RRGGBB> ==== HEX 格式文本颜色,例如 #FFAA00
/shardslabel debug on / off ==== 启用调试模式
/shardslabel clearcache ==== 清除统计缓存
/shardslabel reload ==== 从文件重新加载配置
⚙️ 配置
设置存储在 config/shards.properties 中,并在首次启动时自动生成。
? 安装
为 Minecraft 1.21.10 / 1.21.11 安装 Fabric Loader
下载 Fabric API 并将其放入 mods 文件夹
下载最新的 Shard Displayer jar 文件并同样放入 mods 文件夹
Shard Displayer
Displays DonutSMP player shard counts above their heads in real time, fetched from donutstats.net.
Fully client-side Fabric mod with customizable label appearance.
? Features
Automatic shard parsing from donutstats.net for all visible players
In-game label above players showing ✦ 12.5K (auto‑formatted with K, M, B, T suffixes)
Fully customizable display:
- Text color and scale
- Vertical offset above the player
- Background toggle
- Show/hide your own shards
- Debug mode – shows loading states (loading, err, waiting) to troubleshoot issues
- Smart caching: fast updates (every 15s) while active, relaxed (every 3min) in the background
- No API keys required – all data is taken from the public stats page
? Commands
All commands start with /shardslabel (tab completion works).
Command Description
/shardslabel on / off ==== Enable / disable shard labels
/shardslabel toggle ==== Toggle visibility
/shardslabel self on / off ==== Show / hide your own shard count
/shardslabel background on / off ==== Enable / disable background behind the label
/shardslabel scale <30..200> ==== Set text size in percent (default 70)
/shardslabel y <offset> ==== Vertical offset (range -100 to 100, default 25)
/shardslabel color <#RRGGBB> ==== Text color in HEX, e.g. #FFAA00
/shardslabel debug on / off ==== Enable debug mode
/shardslabel clearcache ==== Clear the stats cache
/shardslabel reload ==== Reload config from file
⚙️ Configuration
Settings are stored in config/shards.properties and created automatically on first launch.
? Installation
Install Fabric Loader for Minecraft 1.21.10 / 1.21.11
Download Fabric API and place it in your mods folder
Download the latest Shard Displayer jar and put it in mods as well
评论 0
登录后参与评分
还没有评论,来抢沙发吧