ExplosionRegen 目前已不再维护
如果您希望继续维护该项目,请给我发送私信,我将为源代码创建类 MIT 许可证。
ExplosionRegen 引入了使用 TNT 或苦力怕袭击任何“基地”的能力,但将可能的破坏行为限制在偷窃箱子和钻石/绿宝石/金块。它与 Factions 插件配合使用。
ExplosionRegen 会修复对派系领地造成损坏的爆炸。
行为机制
- 在派系宣称区域内造成任何损坏的爆炸将在设定时间后自动恢复(默认 60 分钟)
- 如果未安装 Factions 插件,所有爆炸造成的损坏都将恢复
- 如果其他插件取消了爆炸事件(技术层面:具有高于 LOW 优先级的事件),则不会进行任何操作
- 被炸毁且将恢复的方块不会掉落物品(以防止复制)
- 恢复过程不包括容器(如箱子);这些容器会掉落其内容物
- 恢复过程也不包括钻石、绿宝石和金矿石及方块;这些会掉落对应的物品
- 爆炸会在以爆炸中心为圆心的 3x3 范围内破坏黑曜石
- 清除爆炸过程中的液体,使水完全无法阻挡爆炸——这也意味着原版大炮会失效且行为不符合预期——建议使用另一个大炮插件。
配置
链接
命令
/er regen 用于恢复所有待处理的爆炸效果,仅限 OP 使用。
服务器停止或执行 /reload 时,所有爆炸将以相同方式恢复。
能够正确恢复的方块
某些方块可能无法正确恢复。
以下列出能正确恢复或应能正确恢复的方块或实体(已投入精力进行优化):
- 所有无特殊属性的方块
- 画作
- 物品展示框
- 花盆
- 梯子和藤蔓
- 告示牌
- 玩家头颅 仅在安装了 PlayerHeads 插件时有效!
无法正确恢复的方块
- 生物头颅(也许 PlayerHeads 插件有解决方案——无论如何,方向设置是错误的)
- 红石和任何其他下方不能悬空(即下方不能有空气)的方块(顺序*)
- 小麦和任何其他需要下方为耕地才能存在的“植物”(顺序*)
- 音符盒(音高未能正确恢复)
(*顺序):取决于恢复的顺序——也许从顶部到底部重新排序恢复方块可以解决此问题。
未经测试恢复效果的方块
更新日志
链接
源代码
该插件执行繁重且容易出错的任務。我打算保持其轻量级。
我很可能会接受任何涉及 bug 修复的 PR。但如果您希望我接受添加功能的 PR,请先考虑给我发送消息或在 GitHub 上提交 ticket。
GitHub 上的源代码
ExplosionRegen is currently NOT maintained
If you want to continue it, send me a PM and I'll create a MIT-like license for the source.
ExplosionRegen introduces the ability to raid any "base" with TNT or Creepers, but limits the amount of possible griefing to stealing chests and diamond/emerald/gold blocks. It goes hand in hand with the Factions plugin.
ExplosionRegen regenerates explosions that have damaged faction territories.
Behaviour
- Explosions that have damaged anything inside a faction claim regenerate after a set time (default 60m)
- If Factions plugin is not installed, all explosions will be regenerated
- If another plugin cancels the explosion (technical: with event priority higher than LOW), nothing will be done
- Block that have been blasted that will be regenerated do not drop (to avoid duplication)
- Regeneration excludes inventory holders like chests; thos drop their contents
- Regeneration also excludes diamond-, emerald- and gold-ores and -blocks; those drop their corresponding item
- Explosions break obsidian in a 3x3 box around explosion center
- Clears liquid during explosion, so that water does not block explosions at all - this also means that vanilla cannons break and since do not behave as expected - aid of another cannon plugin is suggested.
Configuration
Link
Commands
/er regen to regenerate all pending explosions, only available to OPs.
On server stop or /reload all explosions are regenerated in the same manner.
Blocks that regenerate correctly
Some blocks might not be correctly restored.
List of blocks or entities that restore or should restore correctly (effort has been put into it):
- All blocks with no special properties
- Paintings
- Item frames
- Flower pots
- Ladders and vines
- Signs
- Player heads only if PlayerHeads plugin is installed!
Blocks that do not regenerate correctly
- Mob heads (maybe PlayerHeads plugin has something - in any case sets orientation wrong)
- Redstone and any other block that cannot "survive" with a block of air below (order*)
- Wheat and any other "plant" that needs farmland below (order*)
- Note blocks (pitch is not restored correctly)
(*order): depends on the order of regeneration - maybe reorder the regenration-blocks from top to bottom would solve this problem.
Blocks with untested regeneration
Changelog
Link
Source code
This plugin performs a heavy and bug-prone task. I intend to keep it lightweight.
I will most likely accept any PRs concerning bug fixes. But if you want me to accept a feature adding PR, please consider sending me a message first or opening a github ticket about it.
Source at github
评论 0
登录后参与评分
还没有评论,来抢沙发吧