Chunk Cap Guard
一款 Minecraft 实体清理与性能管理模组。
Chunk Cap Guard 会定期监控所有生物群系中已加载区块内被追踪的实体数量。当某个区块内指定实体的数量超过配置的限制时,该模组将移除该区块内所有匹配的实体,以防止局部实体堆积、减少服务器卡顿,并降低因怪物浓度异常而造成的性能影响。
功能特性
- 对已加载区块中的目标实体进行长间隔周期性扫描
- 按区块统计指定实体的数量
- 当目标实体数量超过限制时,清除该区块内所有匹配的目标实体
- 有助于控制由局部实体过度拥挤引起的性能问题
- 支持可配置的扫描间隔、实体上限和目标实体列表
- 会将超限区块的信息广播给所有玩家
- 广播文本可在配置文件中修改
工作原理
Chunk Cap Guard 以固定间隔执行检查,并处理当前世界中所有已加载的区块:
- 遍历所有实体
- 按区块面积统计目标实体数量
- 如果某区块面积内的目标实体数量超过上限,则清除该区块面积内所有匹配的目标实体
注意:当某个区块超过配置的上限时,Chunk Cap Guard 会移除该区块内所有已配置的目标实体,而不仅仅是超出限额的部分。
示例场景
假设配置中监控以下实体:
minecraft:zombie
minecraft:skeleton
一个区块包含:
- 30 个僵尸 (Zombies)
- 25 个骷髅 (Skeletons)
该区块中被追踪的目标实体总数为 55。
如果配置的每个区块实体上限为 50,Chunk Cap Guard 将移除该区块中的所有僵尸和骷髅。
命令
tyj cleannow 立即执行一次清理并重置清理计时器
Chunk Cap Guard
A Minecraft entity cleanup and performance management mod.
Chunk Cap Guard periodically monitors the number of tracked entities in loaded chunks across all biomes. When the number of specified entities in a chunk exceeds the configured limit, the mod removes all matching entities from that chunk to prevent localized entity buildup, reduce server lag, and lower the performance impact caused by abnormal mob concentration.
Features
- Long-interval periodic scanning of target entities in loaded chunks
- Counts specified entities on a per-chunk basis
- Removes all matching entities from a chunk when the target entity count exceeds the limit
- Helps control performance issues caused by localized entity overcrowding
- Supports configurable scan interval, entity limit, and target entity list
- Will broadcast over-limit chunks to all players
- Broadcast text that can be changed in the configuration
How It Works
Chunk Cap Guard performs checks at a fixed interval and processes all loaded chunks in the current world:
- Iterate through all entities
- Count target entities by block area
- If the number of target entities in a block area exceeds the upper limit, clear all matching target entities within that block area
Note: When a chunk exceeds the configured limit, Chunk Cap Guard removes all configured target entities in that chunk, rather than only the excess amount.
Example Scenario
Assume the configuration monitors the following entities:
minecraft:zombie
minecraft:skeleton
A chunk contains:
The total number of tracked target entities in that chunk is 55.
If the configured per-chunk entity limit is 50, Chunk Cap Guard will remove all Zombies and Skeletons from that chunk.
Command
tyj cleannow Execute a cleanup immediately and reset the cleanup timer
评论 0
登录后参与评分
还没有评论,来抢沙发吧