DayCounter
Tiny top-right HUD showing Day N — how many in-game days you've survived in the current world.
截图
介绍
DayCounter is the smallest possible “how long have I been here” HUD. A single badge in the top-right of your screen reads Day 1, Day 2, … and climbs once per in-game day cycle. Vanilla tracks dayTime internally but only surfaces it deep inside F3 — DayCounter pulls that number into your normal field of view, where it actually informs how you play.
What it does
- Reads
world.getTimeOfDay() / 24000and renders the result as Day N in the top-right HUD. - Each in-game world keeps its own baseline day. The first time you enter a save (or join a server), the current world day becomes Day 1 for that world. From then on, the badge counts the days you’ve spent there, not the world’s absolute age.
- Baselines are persisted to
config/daycounter.jsonkeyed by the singleplayer save name or server address. Switching worlds picks up the right counter automatically. - When the day flips from
NtoN+1, the badge briefly pulses yellow so you actually notice the milestone — useful as a passive “another night survived” feedback.
Commands & controls
/daycounter— show the current day in chat (with the world key the mod is tracking against)./daycounter reset— set the current world’s baseline to today. The badge reads Day 1 again from now on.- Y — toggle the HUD on/off. The badge also respects F1 (hide HUD) and stays hidden in menus.
Notes
- Pure client-side — install on your client only. Works on any Fabric server, fully vanilla compatible.
- Per-world isolation: each save / each server address has its own baseline.
- The badge updates every client tick — there is no observable performance cost.
- ~200 lines of code, no mixins, no extra dependencies beyond Fabric API.
Compatibility
Minecraft 1.21.8, 1.21.9, 1.21.10, 1.21.11 — Fabric Loader 0.16+. One JAR covers all four. Drop into your mods/ folder alongside Fabric API.
常见问题
DayCounter 支持哪些 Minecraft 版本?
DayCounter 支持 Minecraft Java 版 1.21.8–1.21.11,共 4 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
DayCounter 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
kvapilvaclav0 的其他作品
查看全部 →
Verity dog
This mod turns your dog into Verity.
TargetLock
Press J to instantly aim your camera at the nearest living entity within 10 blocks. If no entity is in range, a message will appear on your screen letting you know.
TargetLock
Press J to instantly aim your camera at the nearest living entity within 10 blocks. If no entity is in range, a message will appear on your screen letting you know.
HorseStats
Ride any horse, donkey, mule or llama and a small top-left HUD shows the mount's health, top speed (m/s) and jump height (blocks) live - no need to open its inventory. Toggle with H.
评论
登录后评论和评分