hAntiLagMachines
检测卡顿机器并控制拥挤的生物群系
hAntiLagMachines 2.2 检测特定的机器模式和活动爆发,从密集的电路网格到矿车堆和移动盔甲架的活塞。可以单独启用和调整每个模块。根据检查方式,它可以取消某个动作、隔离正在运行的机制,或移除其部分组件。通过事件 ID 检查已保存的移除记录,并恢复受影响的方块或实体。
九种机器检查
redstoneGrid— 红石粉塔、平面网格、多层中继器电路以及活塞混合装置。检查重复的信号变化或活塞运动及其局部布局。pistonRapid— 多个不同活塞的连续延伸。确认后隔离参与的活塞。pistonSlimeWall— 带有活塞和红石的活跃多层粘液或蜂蜜墙。停止参与的活塞,并在多次隔离后可移除部分组件。pistonArmorStand— 活塞周围密集堆叠的盔甲架。可以阻止盔甲架生成、机器部件放置或活塞运动,并清理局部集群。gravityCobweb— 蜘蛛网周围的沙、砾石和其他受重力影响方块的批量下落。对支撑物移除和实体爆发做出反应。minecartRail— 按区块计数的全高度矿车上限,检查放置、生成和进入的矿车。清理模式还会检查铁轨集群。boatBubble— 集中的船只,包括气泡柱装置以及船只生成的爆发。可以根据设置防止新船只生成或清除集群。leverSpam— 同一玩家在同一拉杆上快速连续点击。第一个阈值会隔离该拉杆;持续点击可能达到第二个阈值从而将其移除。sculkSensor— 普通或校准传感器(幽匿感测体)的密集群组以及重复的能量变化。隔离可抑制活动;重复检测可移除附近的传感器。
隔离与限制响应
对于 redstoneGrid、pistonRapid 和 pistonSlimeWall,配置需要匹配多少个独立的活动窗口、参与方块的重叠程度,以及每刻可能运行的候选检查数量。默认需要三个匹配的窗口。cleanup.quarantinesBeforeRemoval 设置在移除前所需的隔离次数;设置为 0 则仅隔离不移除。快速活塞检查默认仅进行隔离。
矿车: removeNew(默认值)保留区块内现有的矿车和铁轨;cancel 阻止新矿车生成并将进入的矿车推回;remove 允许本地矿车和铁轨清理。默认上限为每个区块 12 个矿车。
相连区块的生物上限
mobChunkLimit 模块将包含追踪生物的相邻区块分组。includeDiagonals 包含对角线方向,maximumChunks 限制组的大小,limits 为每种大小设置人口上限。如果生成会导致超过上限或加入过多已填充的区块,则拒绝生成。
针对特定生物类型的 types 限制将替换该类型生成的通用人口限制,并随组大小缩放。将其设置为 0 以阻止该类型的已检查生成。识别出的试炼刷怪笼生物除外。小型的一格大小的史莱姆可以单独计数,也可以按每个区块一个进行分组。
modules/mobChunkLimit.yml 示例:单个区块的通用上限为 17,两个区块为 22。凋灵在单个区块中的上限为 3,在两个区块的组中为 4。
settings:
enable: true
limit:
types:
WITHER: 3
connectedChunks:
includeDiagonals: true
maximumChunks: 2
limits:
'1': 17
'2': 22
生物 AI 配置文件
为刷怪笼、刷怪蛋和其他生成源设置单独的配置文件。'*' 配置文件为其所属源提供默认值;特定生物类型条目则会覆盖它。配置基础 AI、感知、目标锁定和物品拾取。Paper 和 Folia 提供额外的攻击性和导航控制,包括门的行为。
事件历史、导出与恢复
/hantilagmachines chunk [page] 显示影响你当前区块的已保存移除记录。每项记录包含 ID、时间、坐标、检查类型以及被移除的方块和实体数量。悬停在记录上可查看诊断详情和附近玩家信息。
导出。 使用历史记录按钮将当前环境和已保存的移除快照保存为一个 TXT 文件。对于自定义区域,使用 pos1 和 pos2 设置两个角点,然后运行 copy。导出不会改变世界状态,并将文件保存在 plugins/hAntiLagMachines/schematics 中。
恢复。 历史记录按钮会要求确认。/hantilagmachines restore <id> 立即为该 ID 恢复保存的方块和实体。位于保存位置的当前方块将被覆盖。随后,该事件标记为已恢复。
历史记录和快照使用本地 SQLite 存储;logs.txt 保留可读的诊断日志。清理和导出以批处理形式运行,各个模块拥有独立的扫描限制。
事件标志与世界守卫绕过
移除发生后,插件可以放置一个带有日期和事件 ID 的保护告示牌。在 protectionSign.yml 中配置材质、侧面、外观和 MiniMessage 文本。管理员可以点击告示牌查看事件详情。在恢复时,与事件 ID 匹配的告示牌可以自动移除。
WorldGuard 是可选的。使用 settings.worldGuard.bypassRegions 在选定的区域和世界中的特定检查中进行绕过。此示例仅在 world 的 spawn 区域中绕过两项检查:
settings:
worldGuard:
enable: true
bypassRegions:
spawn:
worlds:
- world
checks:
- redstoneGrid
- pistonRapid
命令与权限
/hantilagmachines mobchunks— 显示已加载区块中最大的追踪怪物集群,包含坐标、怪物数量和群组大小。/hantilagmachines chunk [page]— 显示当前区块中已保存的移除历史记录。/hantilagmachines restore <id>— 恢复该事件已保存的对象。/hantilagmachines pos1和/hantilagmachines pos2— 将当前位置设为选择区域的角落。/hantilagmachines copy— 导出选择区域为 TXT 格式;/hantilagmachines copy cancel— 取消导出。
所有命令均需 hantilagmachines.admin 权限,默认授予管理员。
兼容性与安装
Minecraft 1.21.x · Spigot、Paper 和 Folia · Java 21 或更高版本。 基础保护无需任何插件。区域绕过功能依赖 WorldGuard 及其所需的 WorldEdit 依赖项。
- 将
hAntiLagMachines-2.2.jar放入plugins文件夹并启动服务器。 - 在
plugins/hAntiLagMachines/locale.yml中设置install: en或install: ru。 - 运行
/hantilagmachines install或重启服务器以选择语言环境并生成缺失的文件。 - 编辑模块配置后重启服务器。
配置文件
modules/*.yml— 各项检查、阈值、半径、限制及响应设置。materials.yml— 检查所考虑的材料列表。config.yml— 处理预算、历史记录、导出及 WorldGuard 绕过设置。protectionSign.yml— 事件告示牌;messages.yml和logs.yml— 消息与诊断日志。
hAntiLagMachines
Detect lag machines and control crowded mob chunks
hAntiLagMachines 2.2 detects specific machine patterns and bursts of activity, from dense redstone grids to minecart piles and pistons moving armor stands. Enable and tune each module separately. Depending on the check, it can cancel an action, quarantine a running mechanism, or remove parts of it. Inspect saved removals and restore affected blocks or entities by incident ID.
Nine machine checks
redstoneGrid— dust towers, flat grids, multilayer repeater circuits, and piston hybrids. Checks repeated signal changes or piston movement alongside the local layout.pistonRapid— repeated extensions across many distinct pistons. Quarantines the participating pistons after confirmation.pistonSlimeWall— active multilayer slime or honey walls with pistons and redstone. Stops participating pistons and can remove parts after repeated quarantines.pistonArmorStand— dense stacks of armor stands around pistons. Can block stand spawns, machine part placement, or piston movement and clean up the local cluster.gravityCobweb— batches of falling sand, gravel, and other gravity blocks around cobwebs. Reacts to support removal and bursts of falling entities.minecartRail— a full-height per-chunk minecart cap that checks placement, spawning, and incoming carts. Cleanup mode also checks rail clusters.boatBubble— concentrated boats, including bubble-column setups, and bursts of boat spawns. Can prevent new boats or clear a cluster according to the settings.leverSpam— rapid consecutive clicks by the same player on the same lever. The first threshold quarantines the lever; continued clicking can reach a second threshold that removes it.sculkSensor— dense groups of normal or calibrated sensors and repeated power changes. Quarantine suppresses activity; repeated detections can remove nearby sensors.
Quarantine and limit responses
For redstoneGrid, pistonRapid, and pistonSlimeWall, configure how many independent activity windows must match, how much the participating blocks must overlap, and how many candidate checks may run per tick. Three matching windows are required by default. cleanup.quarantinesBeforeRemoval sets the number of quarantines needed before removal; 0 keeps quarantine without removal. The rapid piston check defaults to quarantine only.
Minecarts: removeNew (the default) preserves existing carts and rails inside the chunk; cancel blocks new carts and moves incoming carts back; remove allows local minecart and rail cleanup. The default cap is 12 minecarts per chunk.
Mob limits for connected chunks
The mobChunkLimit module groups adjacent chunks containing tracked mobs. includeDiagonals includes corners, maximumChunks caps the group size, and limits sets the population cap for each size. A spawn is denied if it would exceed a limit or join too many populated chunks.
A types limit replaces the general population limit for a spawn of that mob type and scales with the group size. Set it to 0 to block that type's checked spawns. Recognized trial-spawner mobs are excluded. Small size-one slimes can be counted individually or grouped as one per chunk.
Example for modules/mobChunkLimit.yml: the general limit is 17 for one chunk and 22 for two. The Wither limit is 3 in one chunk and 4 in a group of two.
settings:
enable: true
limit:
types:
WITHER: 3
connectedChunks:
includeDiagonals: true
maximumChunks: 2
limits:
'1': 17
'2': 22
Mob AI profiles
Set separate profiles for spawners, spawn eggs, and other spawn sources. A '*' profile supplies the default for its source; a mob type entry overrides it. Configure base AI, awareness, targeting, and item pickup. Paper and Folia provide additional aggression and navigation controls, including door behavior.
Incident history, export, and restore
/hantilagmachines chunk [page] shows saved removals that affected your current chunk. Each entry has an ID, time, coordinates, check type, and counts of removed blocks and entities. Hover over the entry for diagnostic details and nearby players.
Export. Use the history button to save current surroundings and saved removal snapshots in one TXT. For a custom area, set two corners with pos1 and pos2, then run copy. Export leaves the world as it is and saves files in plugins/hAntiLagMachines/schematics.
Restore. The history button asks for confirmation. /hantilagmachines restore <id> immediately restores the saved blocks and entities for that ID. Current blocks at saved positions are overwritten. The incident is then marked as restored.
History and snapshots use local SQLite; logs.txt keeps readable diagnostics. Cleanup and export run in batches, and individual modules have their own scan limits.
Incident signs and WorldGuard bypasses
After a removal, the plugin can place a protected sign with its date and incident ID. Configure material, sides, appearance, and MiniMessage text in protectionSign.yml. Administrators can right-click the sign for incident details. On restore, signs matching the incident ID can be removed automatically.
WorldGuard is optional. Use settings.worldGuard.bypassRegions to bypass specific checks in selected regions and worlds. This example bypasses only two checks in the spawn region of world:
settings:
worldGuard:
enable: true
bypassRegions:
spawn:
worlds:
- world
checks:
- redstoneGrid
- pistonRapid
Commands and permission
/hantilagmachines mobchunks— show the largest tracked mob clusters in loaded chunks, with coordinates, mob counts, and group sizes./hantilagmachines chunk [page]— show saved removal history in your current chunk./hantilagmachines restore <id>— restore saved objects for the incident./hantilagmachines pos1and/hantilagmachines pos2— set selection corners at your current position./hantilagmachines copy— export the selection as TXT;/hantilagmachines copy cancel— cancel the export.
All commands require hantilagmachines.admin, granted to operators by default.
Compatibility and installation
Minecraft 1.21.x · Spigot, Paper, and Folia · Java 21 or newer. Basic protection has no required plugins. Region bypasses use WorldGuard and its WorldEdit dependency.
- Place
hAntiLagMachines-2.2.jarinpluginsand start the server. - Set
install: enorinstall: ruinplugins/hAntiLagMachines/locale.yml. - Run
/hantilagmachines installor restart to select the locale and generate missing files. - Configure the modules and restart after editing their settings.
Configuration files
modules/*.yml— individual checks, thresholds, radii, limits, and responses.materials.yml— which materials the checks consider.config.yml— processing budgets, history, export, and WorldGuard bypasses.protectionSign.yml— incident signs;messages.ymlandlogs.yml— messages and diagnostics.
下载 hAntiLagMachines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 hAntiLagMachines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 hAntiLagMachines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 hAntiLagMachines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 hAntiLagMachines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 hAntiLagMachines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 hAntiLagMachines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 hAntiLagMachines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 hAntiLagMachines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 hAntiLagMachines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 矿车保护已全面优化(对玩家和机械更加友好,同时仍能有效保护你的服务器)
- 新增对 Folia/Spigot 核心平台的支持
- 新增区块删除历史记录命令 /hantilagmachines chunk (编号)
- 改进了结构文件的还原与导出逻辑
- 防护告示牌设置现在更加灵活,并已移至独立配置文件
- 标准触发阈值均提高了约 10%(这不应引入新的漏洞,但允许玩家构建更强大的机械——例如更高效的陷阱、农场等)
- 在默认配置中,调整了 WITHER(凋灵)、PIGLIN(猪灵)、CREEPER(苦力怕)三种生物的机制行为,以避免破坏原版机制与交互(其他生物默认仍处于禁用状态)
- 提示信息已移至独立文件,便于管理
- 性能优化与少量代码重构
- 改进了延迟机器(lag machines)的检测逻辑。
- 改进了生物上限的逻辑(新增了对相邻区块的支持)。
- 新增了更多用于管理生物的设置。
- 新增了一个用于搜索生物聚集区的命令:/hantilagmachines mobchunks。
- 修正了负载计算,并降低了检查频率。
- 对插件的配置和代码进行了其他小幅调整。
- 新增了对 en/ru 语言环境的完整支持。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧