DayCounter 图标

DayCounter

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/daycounter-fabric
资源信息

Minecraft 版本: 1.21.8 1.21.9 1.21.10 1.21.11

平台: fabric

标签: utility

资源介绍

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() / 24000 and 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.json keyed by the singleplayer save name or server address. Switching worlds picks up the right counter automatically.
  • When the day flips from N to N+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.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Beware the Fog

价格:0 墨喵币
下载量:0

查看详情
Origins: Sun Block

价格:0 墨喵币
下载量:0

查看详情
Boosters

价格:0 墨喵币
下载量:0

查看详情
Mexus Red

价格:0 墨喵币
下载量:0

查看详情