DMSP — 灾难插件
DMSP 是一款专为 PaperMC 1.21+ 设计的轻量级灾难插件。它能在不造成服务器卡顿的情况下,为你的服务器增添极端天气和事件。
与会导致服务器 TPS 下降的标准掉落方块不同,DMSP 使用了新的 Paper BlockDisplay(方块显示实体)功能。这使得飞行方块和大规模风暴在玩家眼中看起来非常流畅,同时不会损害服务器性能。
功能特性
- 6 种灾难:龙卷风、流星雨、致命陨石、地震、致命地震(地裂),以及雷暴。
- 自动调度器:灾难可以根据计时器随机开始,你也可以通过命令手动启动它们。
- 无卡顿碎片:龙卷风和陨石中的飞行方块仅为视觉效果,确保服务器运行顺畅。
- 避难所系统:如果玩家躲在封闭的建筑物内(四面有实心方块且有屋顶),受到的伤害减少 50%。
- 灾难庇护区:玩家可以制作水晶,创建一个半径 10 格的安全区域。区域内的所有人受到的伤害减少 80%。
- 自定义 Boss:灾难可以生成自定义生物。例如,雷暴可以生成一个自定义的监守者(Warden)Boss。
- 灾难宝珠:一种由 Boss 掉落物合成的终局物品。玩家可以使用它自行引发一场灾难。
- 经济系统:幸存于灾难后你会获得金币。你可以在
/disaster shop 中花费它们购买增益效果或装备。
- 早期预警:在灾难降临前 30 秒,玩家会收到带有声音、屏幕震动和 Boss 栏的警告,以便他们能逃往安全地带。
灾难详解
- 龙卷风:旋转的风暴,会将玩家吸入并抛掷周围的方块。
- 流星雨:流星撞击地面,留下充满矿石(金、铁、钻石、绿宝石)的陨石坑。
- 致命流星雨:更强大的版本,会形成更大的陨石坑。
- 地震:震动屏幕,从上方掉落方块,并使地面开裂。
- 致命地震:在地面打开巨大的深坑,一直延伸到深层岩层。
- 雷暴:持续的闪电打击,并有几率生成自定义 Boss。
命令
/dsmp start <disaster> - 手动启动一场灾难。
/dsmp stop - 停止所有正在进行的灾难。
/dsmp shop - 打开商店菜单。
(你需要拥有 dmsp.admin 权限才能使用启动和停止命令)
配置预览
你可以更改或禁用 config.yml 中的任何功能。
general:
min-interval: 600
max-interval: 1200
warning-time: 30
auto-scheduler: true
enabled-disasters:
tornado: true
meteor: true
earthquake: true
lightning: true
deadly_earthquake: true
deadly_meteor: true
# 功能开关(设为 false 以禁用某项功能)
features:
shop: true
shelter: true
disaster-ward: true
ambience: true
loot-chest: true
aftermath: true
disaster-combo: true
falling-blocks: true # 使用 BlockDisplay 以防止卡顿
# 示例灾难调整(龙卷风)
tornado:
duration: 800
radius: 8
move-speed: 0.4
entity-damage: 4.0
lift-velocity: 0.8
max-debris: 40
错误报告与支持
如果你发现了一个错误,请在此处报告 here
DMSP — Disaster Plugin
DMSP is a lightweight disaster plugin for PaperMC 1.21+. It adds extreme weather and events to your server without causing lag.
Instead of using standard falling blocks that drop server TPS, DMSP uses the new Paper BlockDisplay feature. This makes flying blocks and massive storms look perfectly smooth for players without hurting your server performance.
Features
- 6 Disasters: Tornado, Meteor Shower, Deadly Meteor, Earthquake, Deadly Earthquake (Chasms), and Lightning Storm.
- Auto Scheduler: Disasters can start randomly based on a timer, or you can start them manually with a command.
- Lag-Free Debris: Flying blocks in tornadoes and meteors are visual only, keeping the server running smoothly.
- Shelter System: Players get 50% less damage if they hide inside a closed building (needs solid blocks on 4 sides and a roof).
- Disaster Wards: Players can craft crystals that create a 10-block safe zone. Everyone inside takes 80% less damage.
- Custom Bosses: Disasters can spawn custom mobs. For example, Lightning Storms can spawn a custom Warden boss.
- Disaster Orb: An endgame item made from boss drops. Players can use it to start a disaster themselves.
- Economy: Surviving a disaster gives you coins. You can spend them in
/disaster shop to buy buffs or gear.
- Early Warnings: 30 seconds before a disaster hits, players get a warning with sounds, screen shaking, and a boss bar so they can run to safety.
The Disasters
- Tornado: A spinning wind storm that pulls players in and throws blocks around.
- Meteor Shower: Meteors crash into the ground and leave craters filled with ores (Gold, Iron, Diamond, Emerald).
- Deadly Meteor Shower: A stronger version that makes much bigger craters.
- Earthquake: Shakes the screen, drops blocks from above, and cracks the ground.
- Deadly Earthquake: Opens massive holes in the ground that go all the way down to deepslate.
- Lightning Storm: Non-stop lightning strikes with a chance to spawn a custom boss.
Commands
/dsmp start <disaster> - Manually start a disaster.
/dsmp stop - Stop all active disasters.
/dsmp shop - Open the shop menu.
(You need the dmsp.admin permission to use the start and stop commands)
Config Preview
You can change or disable any feature in the config.yml.
general:
min-interval: 600
max-interval: 1200
warning-time: 30
auto-scheduler: true
enabled-disasters:
tornado: true
meteor: true
earthquake: true
lightning: true
deadly_earthquake: true
deadly_meteor: true
# Feature Toggles (set false to disable a feature)
features:
shop: true
shelter: true
disaster-ward: true
ambience: true
loot-chest: true
aftermath: true
disaster-combo: true
falling-blocks: true # Uses BlockDisplay to stop lag
# Example Disaster Tuning (Tornado)
tornado:
duration: 800
radius: 8
move-speed: 0.4
entity-damage: 4.0
lift-velocity: 0.8
max-debris: 40
Bug Reports & Support
If you find a bug, please report it here
评论 0
登录后参与评分
还没有评论,来抢沙发吧