? SovaAntiLag
针对红石卡顿机器的启发式防卡顿方案——且不会误伤正常运行的农场。
大多数防卡顿插件使用硬性限制(例如“每区块最多 8 个漏斗”),这会让诚实玩家和恶意破坏者一样受到惩罚。SovaAntiLag 采取了不同的方法:它衡量一个区块的活动实际上有多有用,并且仅在区块明显在白白消耗刻数时才进行干预——即便如此,它的反应也是温和且渐进的。
工作原理
每个区块都会获得一个生产力评分:
P = U_redstone / (A_useful + 1)
- U_redstone — 红石扰动量:活塞/发射器/投掷器的触发次数、红石信号变化次数。
- A_useful — 实际工作量:漏斗物品传输、作物生长、方块破坏、生物死亡。
高分意味着大量活动却无回报 → 很可能是卡顿机器。而高效的农场同时拥有大量的 U_redstone 和大量的 A_useful,因此其评分保持较低,不会被干扰。
该插件仅在服务器真正遇到困难时才开始主动扫描(默认阈值为 MSPT > 40 ms)。当服务器状态健康时,它会保持静默,不干扰正常运行。
温和的分阶段响应
- 节流(Throttle) — 可疑区块的红石事件有 80% 的概率被跳过。机器会减速而不是直接停止工作。
- 冻结(Freeze) — 如果 MSPT 仍未恢复,该区块内的红石将被完全暂停 5 分钟。
- 恢复(Recovery) — 一旦服务器恢复正常,所有限制将自动解除。
专用模块
- ? 空闲循环检测器(Idle Loop Detector) — 在紧密循环中反复触发的空发射器/投掷器会被静音,直到有物品实际进入其中。
- ? 灯光刷屏限制器(Light Spam Limiter) — 每秒闪烁多次的红石灯会被短暂锁定为开启状态。
- ? 实体物理上限(Entity Physics Capping) — 单个方块内堆积的大量实体(如盔甲架等)将暂时禁用碰撞体积。
兼容性
- 核心: Bukkit · Spigot · Paper · Purpur · Pufferfish。支持 Folia(实验性)。
- Minecraft: 1.20.6 – 1.21.x(Java 21)。
命令与权限
| 命令 |
描述 |
/sal status |
显示 MSPT、检测到的核心、受追踪的区块 |
/sal top |
列出最可疑的区块 |
/sal reload |
重新加载配置和语言文件 |
权限:sovaantilag.admin(默认:OP)。
语言
内置 English(默认)、Русский、Deutsch、Español、Français、简体中文、Português (BR)、Українська。
可在 config.yml 中设置 language:,或直接编辑 plugins/SovaAntiLag/lang/ 目录下的任意文件。
配置
所有参数均可调——包括阈值、节流概率、冻结时长、各模块开关,以及可选的 Discord Webhook(用于区块警报)。详见 config.yml。
欢迎提交 Issue 和翻译 PR。“Sova”(сова)意为“猫头鹰”——一种警觉的鸟类。
? SovaAntiLag
Heuristic anti-lag for redstone lag machines — without breaking legitimate farms.
Most anti-lag plugins use hard limits (e.g. "max 8 hoppers per chunk") that punish honest
players as much as griefers. SovaAntiLag takes a different approach: it measures how useful
a chunk's activity actually is, and only intervenes when a chunk is clearly burning ticks for
nothing — and even then it reacts softly and gradually.
How it works
Every chunk gets a Productivity Score:
P = U_redstone / (A_useful + 1)
- U_redstone — redstone churn: piston/dispenser/dropper firings, redstone signal changes.
- A_useful — real work: hopper item transfers, crop growth, block breaking, mob deaths.
A high score means lots of activity, no payoff → a likely lag machine. A productive farm has
plenty of U_redstone and plenty of A_useful, so its score stays low and it is left alone.
The plugin only starts actively scanning when the server is genuinely struggling
(MSPT > 40 ms by default). When the server is healthy, it stays out of the way.
Soft, staged response
- Throttle — suspicious chunk's redstone events are skipped with an 80% chance. The machine
slows down instead of dying.
- Freeze — if MSPT still doesn't recover, redstone in that chunk is fully paused for 5 minutes.
- Recovery — once the server is healthy again, restrictions lift automatically.
Specialized modules
- ? Idle Loop Detector — empty dispensers/droppers fired in a tight loop get silenced until
an item actually enters them.
- ? Light Spam Limiter — redstone lamps flickering many times per second get locked ON briefly.
- ? Entity Physics Capping — huge stacks of entities (armor stands, etc.) in one block get
their collision temporarily disabled.
Compatibility
- Cores: Bukkit · Spigot · Paper · Purpur · Pufferfish. Folia supported (experimental).
- Minecraft: 1.20.6 – 1.21.x (Java 21).
Commands & permissions
| Command |
Description |
/sal status |
Show MSPT, detected core, tracked chunks |
/sal top |
List the most suspicious chunks |
/sal reload |
Reload config and language |
Permission: sovaantilag.admin (default: OP).
Languages
Ships with English (default), Русский, Deutsch, Español, Français, 简体中文, Português (BR), Українська.
Set language: in config.yml, or edit any file in plugins/SovaAntiLag/lang/.
Configuration
Everything is tunable — thresholds, throttle chance, freeze duration, per-module toggles, and an
optional Discord webhook for chunk alerts. See config.yml.
Open to issues and translation PRs. "Sova" (сова) means "owl" — the watchful kind.
评论 0
登录后参与评分
还没有评论,来抢沙发吧