Universal ClearLag 是一款轻量级服务器工具,用于减少不必要的实体负载,并让服务器管理员能够直接控制跨多个 Minecraft 版本的清理与怪物生成。
当前支持的版本包括:
- Forge 1.6.4
- Forge 1.7.10
- Forge 1.8.9
- Forge 1.12.2
- Forge 1.16.5
- Forge 1.18.2
- Forge 1.20.1
- NeoForge 1.21.11
ClearLag 最初专注于掉落物清理,现在已包含可配置的怪物清理、实时配置重载、生成阻止、管理清理命令以及游戏内生成控制工具。
功能
- 自动掉落物清理
- 自动可配置怪物清理
- 清理倒计时警告
- 可配置的清理间隔
- 手动清理命令
- 可配置的怪物生成阻止
- 支持原版和模组实体
- 实时 JSON 配置重载
/clearlag reload 用于手动重载配置
- 生成控制工具,用于快速阻止或允许特定怪物的未来生成
- 从磁盘重新加载时,已保存的怪物受生成阻止规则保护
- 低开销的运行时实体与生成检查
生成阻止影响的是未来的生成尝试,而非删除现有怪物。除非通过清理命令或计划清理策略移除,否则现有实体将继续存在于世界中。
ClearLag 旨在保持自身开销极低。配置在加载时会经过验证和编译,运行时生成检查使用缓存的实体规则,且仅在发生实际清理时才扫描已加载的实体。
手动实体清理
在 Minecraft 1.6.4 至 1.12.2 中,ClearLag 提供了一个管理用的实体移除命令:
/clearlag clear entities
还可以针对特定类型的实体进行操作。
示例:
/clearlag clear entities Slime
/clearlag clear entities Zombie Skeleton
Minecraft 1.12.2 使用命名空间注册表 ID:
/clearlag clear entities minecraft:slime
也支持旧版 /clearlag entities clear 的命令拼写。
手动清除实体有意独立于计划清理规则之外,可以移除已加载的非玩家生物实体,包括史莱姆、村民、傀儡、命名怪物、驯服怪物、Boss 以及支持的模组实体。
玩家、盔甲架、掉落物、投射物和非生命实用型实体将被排除在外。
在 Minecraft 1.16.5 及更高版本中,手动实体清除已被弃用,推荐使用 Minecraft 更强大的原版 /kill 选择器。自动 ClearLag 清理功能仍然完全受支持。
服务器端使用
Universal ClearLag 默认设计为仅服务器端运行。
生成控制工具默认禁用,这意味着客户端通常无需安装 ClearLag。
所有清理、生成阻止、命令、倒计时和配置功能均可完全在服务器端工作。
如果启用了生成控制工具:
- 大多数受支持的版本使用标记的原版物品,并保持仅服务器安装的兼容性。
- Minecraft 1.7.10 保留了原始的注册 ClearLag 工具以保持兼容性,这需要匹配的客户端,并在启用时重启服务器。
配置
ClearLag 使用 JSON 配置文件,并支持实时重载。
大多数配置更改可以使用以下命令在不重启服务器的情况下应用:
/clearlag reload
升级期间会保留现有的显式设置,包括生成控制工具设置和实体策略。
Universal ClearLag is a lightweight server utility for reducing unnecessary entity load and giving server owners direct control over cleanup and mob spawning across multiple Minecraft versions.
Supported versions currently include:
- Forge 1.6.4
- Forge 1.7.10
- Forge 1.8.9
- Forge 1.12.2
- Forge 1.16.5
- Forge 1.18.2
- Forge 1.20.1
- NeoForge 1.21.11
Originally focused on dropped-item cleanup, ClearLag now includes configurable mob cleanup, live configuration reloading, spawn prevention, administrative cleanup commands, and in-game spawn-control tools.
Features
- Automatic dropped-item cleanup
- Automatic configurable mob cleanup
- Cleanup countdown warnings
- Configurable cleanup intervals
- Manual cleanup commands
- Configurable mob spawn prevention
- Vanilla and modded entity support
- Live JSON configuration reloading
/clearlag reload for manual configuration reloads
- Spawn Control Tool for quickly blocking or allowing future spawning of targeted mobs
- Saved mobs are protected from spawn-prevention rules when loaded back from disk
- Low-overhead runtime entity and spawn checks
Spawn prevention affects future spawn attempts rather than deleting existing mobs. Existing entities remain in the world unless removed through a cleanup command or scheduled cleanup policy.
ClearLag is designed to keep its own overhead low. Configuration is validated and compiled when loaded, runtime spawn checks use cached entity rules, and loaded entities are only scanned when an actual cleanup occurs.
Manual Entity Cleanup
On Minecraft 1.6.4 through 1.12.2, ClearLag provides an administrative entity-removal command:
/clearlag clear entities
Specific entity types can also be targeted.
Examples:
/clearlag clear entities Slime
/clearlag clear entities Zombie Skeleton
Minecraft 1.12.2 uses namespaced registry IDs:
/clearlag clear entities minecraft:slime
The legacy /clearlag entities clear command spelling is also supported.
Manual entity clearing is intentionally separate from scheduled cleanup rules and can remove loaded non-player living entities including slimes, villagers, golems, named mobs, tamed mobs, bosses, and supported modded entities.
Players, armor stands, dropped items, projectiles, and nonliving utility entities are excluded.
On Minecraft 1.16.5 and newer, manual entity clearing is deprecated in favor of Minecraft's more powerful vanilla /kill selectors. Automatic ClearLag cleanup remains fully supported.
Server-Side Use
Universal ClearLag is designed to remain server-side-only by default.
The Spawn Control Tool is disabled by default, meaning clients do not normally need ClearLag installed.
All cleanup, spawn prevention, commands, countdowns, and configuration features continue to work entirely server-side.
If the Spawn Control Tool is enabled:
- Most supported versions use a marked vanilla item and remain compatible with server-only installation.
- Minecraft 1.7.10 retains the original registered ClearLag tool for compatibility, which requires matching clients and a server restart when enabled.
Configuration
ClearLag uses JSON configuration files and supports live reloading.
Most configuration changes can be applied without restarting the server using:
/clearlag reload
Existing explicit settings are preserved during upgrades, including spawn-control tool settings and entity policies.
评论 0
登录后参与评分
还没有评论,来抢沙发吧