Stormfront
Stormfront 是一款适用于 Paper 服务器的天气插件,它用动态的、基于每个玩家的天气单元替代了 Minecraft 原版的全球天气系统。每个单元都有独立的位置、半径、强度和类型,这意味着在同一世界中,两名玩家可以同时体验完全不同的天气!
特性
-
Rainfront(雨幕): 雨水溅落在你周围的地面上,营火和火焰会逐渐熄灭,随着强度增加移动速度会变慢。
-
Thunderstorm(雷暴): 包含 Rainfront 的所有效果,加上随机的闪电击中以及末影人在雨中受到伤害。
-
Blizzard(暴风雪): 雪花飘落并在地面漂移,碎片风条以一致的方向吹动,暴露在外的玩家会积累冻结值。火焰会被熄灭。仅限寒冷生物群系。
-
Heatwave(热浪): 热浪扭曲空气,尘霾充满大气层,暴露时间越长饥饿值消耗越快。仅限炎热生物群系。
-
Miasma(瘴气): 沼泽气体云在你周围翻腾,烟雾从地面升起,气泡破裂声和孢子飘浮充满空气,停留时间越长恶心感越强。仅限沼泽和红树林生物群系。
-
自然生成: 天气单元会在玩家附近自动生成,在世界中漂移并自行过期。可完全配置生成率、大小、持续时间和移动速度。
-
完全可配置: 在 config.yml 中启用或禁用单个天气类型。
-
开发者 API: 使用 stormfront-api 从你自己的插件中注册自定义天气类型。完全控制粒子、效果、生物群系限制、优先级和自然生成行为。
要求
- Paper 1.21.x
- PacketEvents(用于实现每个玩家的降雨和雷暴等级)
stormfront-api 和 stormfront 的 jar 文件都必须安装在你的 plugins/ 文件夹中。
命令
所有命令都需要 stormfront.admin 权限。
| 命令 |
描述 |
/stormfront spawn <type> [radius] [intensity] [duration] |
在你所在位置生成一个天气单元 |
/stormfront stop |
移除所有活动中的天气单元 |
/stormfront list |
列出所有活动中的天气单元及其位置和状态 |
生成默认值: 半径=50,强度=1.0,持续时间=无限
权限
| 权限 |
描述 |
默认值 |
stormfront.admin |
访问所有 /stormfront 命令 |
OP |
配置
首次运行时在 plugins/Stormfront/config.yml 生成。
# 启用或禁用各个内置天气类型
types:
rainfront: true
thunderstorm: true
miasma: true
blizzard: true
heatwave: true
API
Stormfront 附带了一个公共 API,用于注册自定义天气类型。实现 WeatherType,在插件启用时注册它,它会自动集成到现有的单元系统、调度器和命令中。
StormfrontAPI.get().getRegistry().register(new MyWeatherType());
源代码和完整文档可在 GitHub 上获取。
Stormfront
Stormfront is a weather plugin for Paper servers that replaces Minecraft's global vanilla weather system with dynamic, per-player weather cells. Each cell has its own position, radius, intensity, and type, meaning two players in the same world can experience completely different weather simultaneously!
Features
-
Rainfront: Rain impacts splash across the ground around you, campfires and fires are gradually extinguished, and movement slows as intensity builds.
-
Thunderstorm: Everything in Rainfront, plus randomised lightning strikes and Enderman take damage in the rain.
-
Blizzard: Snowflakes fall and drift across the ground, wind streaks of debris blow in a consistent direction, and freeze builds up while you're exposed. Fires are extinguished. Cold biomes only.
-
Heatwave: Heat shimmer distorts the air, dust haze fills the atmosphere, and hunger drains faster the longer you stay exposed. Hot biomes only.
-
Miasma: Swamp gas clouds billow around you, smoke rises from the ground, bubble pops and spore drift fill the air, and nausea pulses in and out the longer you remain inside the cell. Swamp and mangrove biomes only.
-
Natural generation: Weather cells spawn automatically near players, drift across the world, and expire on their own. Fully configurable spawn rates, sizes, durations, and movement speed.
-
Fully configurable: Enable or disable individual weather types in config.yml.
-
Developer API: Register custom weather types from your own plugin using the stormfront-api. Full control over particles, effects, biome restrictions, priority, and natural spawn behaviour.
Requirements
- Paper 1.21.x
- PacketEvents (required for per-player rain and thunder levels)
Both stormfront-api and stormfront jars must be installed in your plugins/ folder.
Commands
All commands require the stormfront.admin permission.
| Command |
Description |
/stormfront spawn <type> [radius] [intensity] [duration] |
Spawns a weather cell at your location |
/stormfront stop |
Removes all active weather cells |
/stormfront list |
Lists all active weather cells with position and status |
Spawn defaults: radius=50, intensity=1.0, duration=indefinite
Permissions
| Permission |
Description |
Default |
stormfront.admin |
Access to all /stormfront commands |
OP |
Configuration
Generated at plugins/Stormfront/config.yml on first run.
# Enable or disable individual built-in weather types
types:
rainfront: true
thunderstorm: true
miasma: true
blizzard: true
heatwave: true
API
Stormfront ships with a public API for registering custom weather types. Implement WeatherType, register it on enable, and it integrates with the existing cell system, scheduler, and commands automatically.
StormfrontAPI.get().getRegistry().register(new MyWeatherType());
Source and full documentation available on GitHub.
评论 0
登录后参与评分
还没有评论,来抢沙发吧