Zone Cleaner
终极无卡顿世界编辑器
删除数百万个方块,同时保持 TPS 零下降。
Zone Cleaner 是一款服务端管理工具,专为安全执行大规模世界编辑操作而设计。与可能导致服务器冻结的 WorldEdit 或原版命令不同,Zone Cleaner 使用时间切片引擎和物理抑制机制,让你在清理世界的同时继续游戏。
⚡ “忍者”引擎(3.1.0 新增)
该模组已完全重新架构。它现在使用 Flag 18 绕过标准的方块更新。
- 无光照重算:移除一座山不会导致服务器在计算阴影时卡顿。
- 无物理效果:沙子和砾石不会掉落,水不会流动,观察者也不会触发。
- 零延迟:操作被拆分为微小的微任务,分散到多个服务端刻中执行。
?️ 激进程度(1 到 5)
你拥有控制权。通过在命令末尾添加数字,选择允许该任务使用的 CPU 资源量。
| 等级 | 名称 | 描述 | 使用场景 |
|---|---|---|---|
| 1 | 幽灵 | 0.5ms / 刻。不可见的后台任务。 | 清理时游玩。零影响。 |
| 2 | 安全 | 5ms / 刻。流畅且平滑。 | 默认的平衡用法。 |
| 3 | 正常 | 20ms / 刻。标准速度。 | 管理员维护。 |
| 4 | 快速 | 50ms / 刻。占用完整的刻预算。 | 当你希望快速完成时。 |
| 5 | 核弹级 | 500ms / 刻。强制产生卡顿。 | AFK 大规模破坏。比正常速度快 10 倍。 |
?️ 命令
需要操作员权限级别 4。
1. 定义区域
对于大面积区域,请使用这些命令来标记你的角落(类似 WorldEdit)。
/pos_start:将第一个角落设置在你脚下。/pos_end:将第二个角落设置在你脚下。
2. 移除方块
语法: /remove block <坐标> <方块> [层级]
清除从基岩到天空(第 4 级 - 快速)范围内,以玩家为中心半径 5000 格内的所有 沙子:
/remove block ~ min ~ ~5000 max ~5000 minecraft:sand 4
清理由 pos_start/end 定义的特定区域(Level 1 - Silent):
/remove block pos_start pos_end minecraft:stone 1
手动坐标(Level 5 - Nuclear):
/remove block 0 60 0 100 100 100 minecraft:dirt 5
3. 移除实体
立即清除选定区域内的实体。
/remove entity pos_start pos_end all(杀死所有生物/物品,保留玩家)/remove entity ~ -64 ~ ~100 320 ~100 minecraft:zombie
4. 实用工具
/remove stop:紧急停止。 立即终止当前后台任务。/remove undo:使用安全调度器逐块还原最后一次操作。
? 兼容性
- 仅限服务端:客户端无需安装模组即可加入服务器。
- 语言支持:消息会根据玩家的客户端语言自动翻译(包含英语和法语)。
? 3.1.0 之前版本的文档
性能
Zone Cleaner 从底层设计之初就旨在尊重服务器的性能。与其他工具立即执行命令并导致严重卡顿不同,Zone Cleaner 将每个大型任务分解为微小且易于管理的部分。
它智能地监控服务器的平均尖峰每刻时间 (MSPT),并为每一刻动态分配“工作预算”。如果服务器繁忙,它会减少处理量;如果服务器空闲,它会增加处理量。结果如何?即使正在清理数百万个方块,你的服务器仍能保持完美的 20 TPS。
功能
- 动态防卡顿引擎:一个调度器,根据实时服务器性能逐步处理操作。
- 智能撤销系统:使用相同的无卡顿系统还原最后 5 次方块移除操作。
- 动作栏进度更新:在动作栏获取实时的百分比反馈。
- 灵活的选择范围:使用绝对坐标、相对位置 (
~) 或世界边界 (min/max)。对于更大的区域,请使用/pos_start和/pos_end设置点。 - 完全控制:每个玩家一次只能运行一个任务。使用
/remove stop立即停止当前操作。
命令
所有命令均在服务端执行,需要操作员权限。
位置选择 对于大面积区域,先设置起点和终点会更简单。
/pos_start:将当前位置保存为第一个角点。/pos_end:将当前位置保存为第二个角点。
方块移除 核心的方块移除命令。
要清除 y=64 处 100x100 区域的石头:
/remove block 0 64 0 100 64 100 minecraft:stone
要从你所在位置起半径 50 块的范围内,从世界底部到顶部移除所有沙子:
/remove block ~-50 min ~-50 ~50 max ~50 minecraft:sand
要使用已保存的位置排干海洋:
# 前往海洋的一个角落并运行 /pos_start
# 前往对角角落并运行 /pos_end
/remove block pos_start pos_end minecraft:water
实体移除 快速且安全地从区域中移除实体。此命令为瞬时执行,不使用防卡顿调度器。
在大范围内清除所有僵尸:
/remove entity 0 0 0 1000 255 1000 minecraft:zombie
从之前保存的区域中清除所有敌对生物:
# 请先设置 /pos_start 和 /pos_end
/remove entity pos_start pos_end all
(除非另有指定,否则此命令不会移除玩家或非敌对实体。)
实用工具
/remove undo:使用无卡顿引擎恢复上次清除操作中的方块。最多可执行 5 次。/remove stop:立即取消当前正在运行的任务。
技术细节
Zone Cleaner 的性能并非魔法,而是工程学的成果。
- 仅服务端运行:无需安装客户端组件。
- 基于刻(Tick)的调度器:挂钩至
ServerTickEvent.Post,在主游戏逻辑完成每个刻的处理后执行任务。 - 动态负载平衡:
- 实时测量服务器的 MSPT(每刻毫秒数)。
- 维持滚动平均值以平滑瞬时峰值。
- 根据可用性能为每个刻计算纳秒级的“工作预算”。
- 若超出预算,任务将让出控制权,并在下一个刻自动恢复。
- 安全且同步:所有方块操作均在主服务器线程上执行,确保世界存档完整性并防止并发问题。
- 高效撤销:使用内存高效的
BlockSnapshot记录以及LinkedList,用于快速追踪最近 5 次操作的历史记录。
该架构确保 Zone Cleaner 成为任何生产环境服务器中强大且安全的工具。
Zone Cleaner
The Ultimate Lag-Free World Editor
Delete millions of blocks without dropping a single TPS.
Zone Cleaner is a server-side administration tool designed to perform massive world editing operations safely. Unlike WorldEdit or vanilla commands which can freeze your server, Zone Cleaner uses a Time-Slicing Engine and Physics Suppression to clean the world while you keep playing.
⚡ The "Ninja" Engine (New in 3.1.0)
The mod has been completely re-architected. It now bypasses standard block updates using Flag 18.
- No Light Recalculation: Removing a mountain won't freeze the server calculating shadows.
- No Physics: Sand and Gravel won't fall, water won't flow, and observers won't trigger.
- Zero Lag: The operation is sliced into tiny micro-tasks spread across server ticks.
?️ Aggression Levels (1 to 5)
You are in control. Choose how much CPU power the task is allowed to use by adding a number at the end of the command.
| Level | Name | Description | Use Case |
|---|---|---|---|
| 1 | Ghost | 0.5ms / tick. Invisible background task. | Playing while cleaning. Zero impact. |
| 2 | Safe | 5ms / tick. Smooth and fluid. | Default balanced usage. |
| 3 | Normal | 20ms / tick. Standard speed. | Admin maintenance. |
| 4 | Fast | 50ms / tick. Uses the full tick budget. | When you want it done quickly. |
| 5 | NUCLEAR | 500ms / tick. Forces Lag. | AFK massive destruction. 10x faster than normal. |
?️ Commands
Requires Operator Level 4.
1. Define the Zone
For massive areas, use these commands to mark your corners (like WorldEdit).
/pos_start: Sets the first corner at your feet./pos_end: Sets the second corner at your feet.
2. Remove Blocks
Syntax: /remove block <coords> <block> [level]
Clean all Sand in a 5000-block radius from Bedrock to Sky (Level 4 - Fast):
/remove block ~ min ~ ~5000 max ~5000 minecraft:sand 4
Clean a specific zone defined by pos_start/end (Level 1 - Silent):
/remove block pos_start pos_end minecraft:stone 1
Manual coordinates (Level 5 - Nuclear):
/remove block 0 60 0 100 100 100 minecraft:dirt 5
3. Remove Entities
Instantly wipe entities in the selected area.
/remove entity pos_start pos_end all(Kills all mobs/items, keeps players)/remove entity ~ -64 ~ ~100 320 ~100 minecraft:zombie
4. Utilities
/remove stop: Emergency Stop. Instantly kills the current background task./remove undo: Reverts the last operation block-by-block using the safe scheduler.
? Compatibility
- Server-Side Only: Clients do not need to install the mod to join.
- Language: Messages are automatically translated based on the player's client language (English & French included).
? Documentation for versions older than 3.1.0
Performance
Zone Cleaner was engineered from the ground up to respect your server's performance. While other tools execute commands instantly and cause massive lag spikes, Zone Cleaner breaks down every large task into tiny, manageable pieces.
It intelligently monitors your server's Mean-Spike-per-Tick (MSPT) and dynamically allocates a "work budget" for each tick. If the server is busy, it does less. If the server is idle, it does more. The result? Your server stays at a perfect 20 TPS, even while clearing millions of blocks.
Features
- Dynamic Anti-Lag Engine: A scheduler that processes operations progressively based on real-time server performance.
- Smart Undo System: Reverts the last 5 block removal operations using the same lag-free system.
- Action Bar Progress Updates: Get real-time percentage feedback on your action bar.
- Flexible Selections: Use absolute coordinates, relative positions (
~), or world limits (min/max). For larger areas, set points with/pos_startand/pos_end. - Total Control: Each player can only run one task at a time. Stop your current operation instantly with
/remove stop.
Commands
All commands are server-side and require operator permission.
Position Selection For large areas, it's easier to set start and end points first.
/pos_start: Saves your current position as the first corner./pos_end: Saves your current position as the second corner.
Block Removal The core block removal command.
To clear a 100x100 area of stone at y=64:
/remove block 0 64 0 100 64 100 minecraft:stone
To remove all sand in a 50-block radius from your position, from world bottom to top:
/remove block ~-50 min ~-50 ~50 max ~50 minecraft:sand
To drain an ocean using saved positions:
# Go to one corner of the ocean and run /pos_start
# Go to the opposite corner and run /pos_end
/remove block pos_start pos_end minecraft:water
Entity Removal Quickly and safely remove entities from a zone. This command is instantaneous and does not use the anti-lag scheduler.
To remove all zombies in a large area:
/remove entity 0 0 0 1000 255 1000 minecraft:zombie
To clear all hostile mobs from a previously saved zone:
# Set your /pos_start and /pos_end first
/remove entity pos_start pos_end all
(This will not remove players or non-hostile entities unless specified.)
Utilities
/remove undo: Restores blocks from your last removal operation using the lag-free engine. Can be used up to 5 times./remove stop: Immediately cancels your currently running task.
Technical Details
Zone Cleaner's performance is not magic; it's engineering.
- Server-Side Only: No client installation is required.
- Tick-Based Scheduler: Hooks into the
ServerTickEvent.Postto perform work after the main game logic has finished for the tick. - Dynamic Workload Balancing:
- Measures server MSPT in real-time.
- Maintains a rolling average to smooth out momentary spikes.
- Calculates a nanosecond "work budget" for each tick based on available performance.
- The task yields if it exceeds its budget, resuming automatically on the next tick.
- Safe & Synchronous: All block operations occur on the main server thread, guaranteeing world save integrity and preventing concurrency issues.
- Efficient Undo: Uses a memory-efficient
BlockSnapshotrecord and aLinkedListfor fast history tracking of the last 5 operations.
This architecture ensures that Zone Cleaner is a powerful and safe tool for any production server.
下载 Zone Cleaner
下载 Zone Cleaner
下载 Zone Cleaner
下载 Zone Cleaner
下载 Zone Cleaner
下载 Zone Cleaner
下载 Zone Cleaner
下载 Zone Cleaner
下载 Zone Cleaner
下载 Zone Cleaner
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧