Unmanned Online Tick Stasis
适用于 Minecraft Forge 1.20.1 的轻量级服务端模组,当没有玩家在线时自动冻结游戏世界,并在有玩家加入时无缝恢复运行,有助于节省服务器资源并保持游戏一致性。
主要功能
-
自动暂停/恢复:最后一名玩家离开后,暂停方块更新、实体移动、红石装置、游戏内时间等;玩家加入后立即恢复。
-
完全可配置:可切换暂停功能、设置退出后的暂停延迟,并允许指定控制台命令白名单(支持通配符)。
-
状态保留:记录并恢复世界时间、实体位置及运动状态(可选)。
-
多语言支持:包含英文 (en_us) 和中文 (zh_cn)。
-
轻量且兼容:仅服务端(无需客户端安装);适用于 Minecraft 1.20.1 (Forge 47.x.x) 和 1.20.x。
工作原理
使用 Mixin 拦截世界刻循环,在无玩家在线时(经过配置的延迟后)取消刻更新。监控玩家事件并根据白名单过滤控制台命令。
配置
配置文件位于 serverconfig/unmannedonlinetickstasis-server.toml(独立服务器为 config/ 目录);可通过手动编辑或使用 /reload 命令(需权限)进行修改。
-
enablePause(布尔值,默认:true):启用或禁用暂停功能。
-
delaySeconds(整数,默认:0):最后一名玩家离开后的暂停延迟秒数。
-
commandWhitelist(字符串列表):允许执行的控制台命令(支持 * 通配符)。
示例:enablePause = true; delaySeconds = 30; commandWhitelist = ["say", "list", "stop", "help*"]
安装方法
-
安装 Minecraft Forge 1.20.1(推荐版本:47.4.10+)。
-
将模组 .jar 文件放入服务器的 mods 文件夹中。
-
启动服务器(无需额外设置)。
注意:仅限服务端;客户端无需安装。
依赖项
Minecraft Forge 1.20.1 ([47, 48)), Minecraft 1.20.x
Unmanned Online Tick Stasis
A lightweight server-side mod for Minecraft Forge 1.20.1 that automatically freezes the game world when no players are online and resumes seamlessly when a player joins, helping save server resources and maintain consistent gameplay.
Key Features
-
Automatic Pause/Resume: Pauses block updates, entity movements, redstone devices, in-game time and more when the last player leaves; resumes instantly on player join.
-
Fully Configurable: Toggle pause function, set post-logout pause delay, and whitelist allowed console commands (supports wildcards).
-
State Preservation: Records and restores world time, entity positions and motion states (optional).
-
Multilingual Support: Includes English (en_us) and Chinese (zh_cn).
-
Lightweight & Compatible: Server-side only (no client installation needed); works for Minecraft 1.20.1 (Forge 47.x.x) and 1.20.x.
How It Works
Uses Mixin to intercept the world tick loop, canceling ticks when no players are online (after configured delay). Monitors player events and filters console commands against the whitelist.
Configuration
Stored in serverconfig/unmannedonlinetickstasis-server.toml (or config/ for dedicated servers); editable manually or via /reload (with permissions).
-
enablePause (boolean, default: true): Toggle the pause feature.
-
delaySeconds (int, default: 0): Pause delay after last player leaves.
-
commandWhitelist (string list): Allowed console commands (supports * wildcard).
Example: enablePause = true; delaySeconds = 30; commandWhitelist = ["say", "list", "stop", "help*"]
Installation
-
Install Minecraft Forge 1.20.1 (recommended: 47.4.10+).
-
Place the mod .jar in the server’s mods folder.
-
Start the server (no extra setup needed).
Note: Server-side only; clients don’t need installation.
Dependencies
Minecraft Forge 1.20.1 ([47, 48)), Minecraft 1.20.x
评论 0
登录后参与评分
还没有评论,来抢沙发吧