AntiLavaCast
阻止 Bukkit 兼容服务器上过大的水流/岩浆流、岩浆铸造(lava casts)以及无效的空气放置。
功能特性
- 防空气放置: 使用距离、视线和支持性检查,拒绝不受支持的方块放置和无效的桶交互。
- 高放置与级联保护: 在放置水或岩浆前检查可达的掉落物,阻止过大的瀑布和岩浆落下。
- 红石发射器保护: 对红石装置释放的水和岩浆应用放置检查及源数量限制,包括添加到流动流体中的源。
- 防止岩浆铸造: 追踪流体扩散并限制大型圆石、石头、玄武岩和黑曜石结构的形成。
- 共享区域限制: 跨玩家分组附近的源,防止重复放置覆盖大面积区域。本地放置速率限制可遏制桶的滥用。
- 农场友好型限制: 按 Y 轴层级统计源数量和覆盖面积,适用于堆叠式农场。平坦水面允许两倍的方块配额;瀑布保持正常限制。
- 水桶覆盖处理: 处理普通水桶、装水的生物桶以及被水浸没的方块。
- 源清理: 当超出限制时移除导致问题的源,并可选项清理其追踪的流动流体。
- 实用控制: 提供颜色编码的帮助和状态信息、独立的水/岩浆设置、Tab 补全、配置重载、日志记录和个人豁免权限。
要求与安装
支持从 1.21.x 到 26.x 版本的 Bukkit/Spigot、Paper、Purpur 和 Folia(如有可用)。服务器在 1.21.x 版本需要 Java 21,在 26.x 版本需要 Java 25。
使用已安装的 JDK 21 进行构建:./gradlew build 或在 Windows 上运行 gradlew.bat build。将 build/libs/AntiLavaCast-<version>.jar 复制到服务器的 plugins 文件夹并重启。
命令
所有命令均以 /lavacast 开头;/antilavacast 为其别名。
| 命令 |
用途 |
help 或不带参数 |
颜色编码的帮助信息 |
status |
当前设置和追踪计数 |
enable, disable, reload |
总开关和配置重载 |
water, lava, airplace, cleanup, logs <on|off> |
切换保护和选项 |
set <water|lava> <setting> <value> |
保存流体限制值 |
bypass [on|off] |
个人豁免 |
示例:/lavacast set water max-sources 10。
lavacast.admin 授予管理权限(默认为 OP)。lavacast.bypass 允许个人豁免(默认为 false)。
设置
编辑 plugins/AntiLavaCast/config.yml 并运行 /lavacast reload。默认情况下,每个 Y 轴层级附近区域允许 10 个水源或 4 个岩浆源,潜在掉落限制分别为 24 和 20 个方块。
使用 flat-area-multiplier 和 flat-source-bonus 调整平坦地面的配额。升级期间现有设置将被保留。CoreProtect 不再使用或需要。
仅追踪新放置行为;重启时追踪重置。自然产生的、未被追踪的流体不会受到干扰。具有长下落流的农场仍需要合适的级联限制或豁免。
在 Folia 上,检查会在未加载区块或由其他线程拥有的区域处停止;跨越这些边界的危险放置将被拒绝。
AntiLavaCast
Blocks oversized water/lava cascades, lava casts, and invalid air placement on Bukkit-compatible servers.
Features
- Anti-air-place: rejects unsupported block placements and invalid bucket interactions using reach, line-of-sight, and support checks.
- High-placement and cascade protection: checks reachable drops before water or lava is placed, blocking oversized waterfalls and lava falls.
- Redstone dispenser protection: applies placement checks and source limits to water and lava dispensed by redstone contraptions, including sources added to flowing fluid.
- Lava-cast prevention: tracks fluid spread and limits large cobblestone, stone, basalt, and obsidian formations.
- Shared area limits: groups nearby sources across players, preventing repeated placements from covering a large area. Local placement rate limits curb bucket spam.
- Farm-friendly limits: counts sources and covered area per Y level for stacked farms. Flat water gets twice the block allowance; waterfalls keep normal limits.
- Water bucket coverage: handles ordinary water buckets, water-filled mob buckets, and waterlogged blocks.
- Source cleanup: removes contributing sources when limits are exceeded, with optional cleanup of their tracked flowing fluid.
- Useful controls: color-coded help and status, separate water/lava settings, tab completion, config reload, logging, and personal bypass.
Requirements and installation
Supports Bukkit/Spigot, Paper, Purpur, and Folia from 1.21.x through 26.x, including 26.3 where available. Servers require Java 21 for 1.21.x or Java 25 for 26.x.
Build with JDK 21 installed: ./gradlew build or gradlew.bat build on Windows. Copy build/libs/AntiLavaCast-<version>.jar to your server's plugins folder and restart.
Commands
All commands start with /lavacast; /antilavacast is an alias.
| Command |
Purpose |
help or no arguments |
Color-coded help |
status |
Current settings and tracking counts |
enable, disable, reload |
Master switch and config reload |
water, lava, airplace, cleanup, logs <on|off> |
Toggle protection and options |
set <water|lava> <setting> <value> |
Save a fluid limit |
bypass [on|off] |
Personal exemption |
Example: /lavacast set water max-sources 10.
lavacast.admin grants administration (default OP). lavacast.bypass permits personal bypass (default false).
Settings
Edit plugins/AntiLavaCast/config.yml and run /lavacast reload. Defaults allow 10 water or 4 lava sources per nearby area per Y level, with potential drop limits of 24 and 20 blocks respectively.
Use flat-area-multiplier and flat-source-bonus to adjust flat-floor allowances. Existing settings are preserved during upgrades. CoreProtect is no longer used or required.
Only new placements are tracked; tracking resets on restart. Natural, untracked fluid is left alone. Farms with long falling streams still need suitable cascade limits or bypass.
On Folia, checks stop at unloaded chunks or regions owned by another thread; risky placements crossing those boundaries are refused.
评论 0
登录后参与评分
还没有评论,来抢沙发吧