适用于 Minecraft 26.2 / Fabric 的纯服务端天数计数器。与仅通过读取 floor(dayTime / 24000) 计算、可能出现跳变的不严谨天数计数器不同,本模组计数稳健且无需安装客户端模组。
仅限服务端——在服务器(或单人游戏)中安装即可;原版客户端无需安装任何模组即可查看。
记分板侧边栏显示——在天数显示于屏幕右侧,并在玩家打开 F3 调试界面时自动隐藏。这是唯一具备此行为的原版 HUD 元素。(它垂直居中于屏幕右侧并使用单个侧边栏槽位,因此若其他插件/数据包也使用侧边栏,将产生冲突。)
可切换位置——执行 /daycounter display sidebar|bossbar|actionbar 命令可在三个由服务端控制的原版锚点(右侧居中 / 顶部居中 / 底部居中)之间切换显示位置。仅侧边栏模式会在按下 F3 时隐藏;所选位置将在重启后保留。
时段阶段——Boss 栏和行动栏会显示当前时段(Morning / Afternoon / Evening / Night),且在 Boss 栏模式下,随着白天推进进度条会逐渐填充,并根据不同时段改变颜色。
记录被跳过的夜晚——即使在床上睡觉跳过夜晚,计数器仍会递增一天。
支持后期添加——即使在世界已存在较长时间后安装,它也会从世界当前的天数开始计数(例如一个已存在 500 天的世界会显示为 Day 500),随后继续正常计数。
单调递增——自然白昼流逝、跳过夜晚以及使用 /time 命令向前跳跃时间均会使计数增加;将时间往回设置绝不会导致计数减少。
跨重启持久化——状态存储在原版记分板文件(scoreboard.dat)中。
A fully server-side day counter for Minecraft 26.2 / Fabric. Unlike lazy day counters that just read floor(dayTime / 24000) and can jump around, this one counts robustly and needs no client mod.
Server-side only — install it on the server (or use it in singleplayer); vanilla clients see it with no mods installed.
Scoreboard sidebar display — shows the day on the right of the screen and automatically hides when a player opens the F3 debug screen. This is the only vanilla HUD element that behaves this way. (It sits vertically-centered on the right and uses the single sidebar slot, so it will conflict with another plugin/datapack that also uses the sidebar.)
Switchable position — /daycounter display sidebar|bossbar|actionbar moves it between the three server-controllable vanilla anchors (right-center / top-center / bottom-center). Only the sidebar hides on F3; the choice is remembered across restarts.
Time-of-day phase — boss bar and action bar show the current phase (Morning / Afternoon / Evening / Night), and in boss-bar mode the bar fills as the day advances and recolours per phase.
Counts skipped nights — sleeping through the night still advances the counter by one day.
Works when added late — installed on an already-old world, it seeds from the world's current day (so a 500-day-old world shows Day 500), then keeps counting.
Monotonic — natural day passage, skipped nights, and forward /time jumps increase the count; setting the time backwards never decreases it.
Persists across restarts — state is stored in the vanilla scoreboard (scoreboard.dat).
评论 0
登录后参与评分
还没有评论,来抢沙发吧