Blastback
爆炸会发生,世界将重建。
Blastback 是一个可配置的 Minecraft 数据包,它会在爆炸前记录方块状态,并在事后逐个方块地重建受损区域。
功能
- 恢复精确的方块状态
- 保留箱子库存和方块实体数据
- 支持重叠和连锁爆炸
- 将附近的爆炸合并为一个恢复组
- 抑制爆炸生成的方块和容器掉落物
- 保持预先存在的掉落物不受影响
- 当附近仍有爆炸活动时暂停重建
- 支持配置放置速度和间隔
- 提供按维度控制的爆炸选项
- 包含交互式设置菜单
- 在重启和区块卸载期间保留待处理的恢复任务
- 使用事件驱动调度器,最小化空闲处理
恢复动画
选择被摧毁区域的修复方式:
- 从下往上
- 从上往下
- 由东向西
- 由西向东
- 由北向南
- 由南向北
- 由外向内
- 由内向外
- 随机
支撑方块会在火把、草、植被、红石、附属方块和流体之前恢复。因此,这些依赖方块可能会在动画中稍后出现。
支持的爆炸类型
Blastback 检测并重建以下原因造成的破坏:
- TNT
- TNT 矿车
- 苦力怕和闪电苦力怕
- 无效维度中的床
- 无效维度中的重生锚
- 末影水晶
- 恶魂火球
- 凋灵头颅
每个来源都可以针对主世界、下界、末地和自定义维度分别控制。
设置
权限等级为 2 或更高的管理员可以使用以下命令打开设置菜单:
/function erb:admin/settings
可选的 Blastback Settings 书可以通过以下命令获取:
/function erb:admin/give_settings
你可以配置:
- 重建延迟
- 每间隔放置的方块数
- 放置间隔
- 恢复动画
- 爆炸来源
- 维度配置文件
- 连锁消耗的 TNT 恢复
- 重建或物品转换模式
- 总开关(启用/禁用)
玩家可以查看只读状态信息:
/trigger erb.status
性能说明
Hotfix 3 用事件驱动调度器替换了之前始终运行的生成工作线程。当 Blastback 没有要处理的内容时,昂贵的捕获、恢复、验证和清理工作将处于休眠状态。
大型或高度同时发生的爆炸仍可能暂时增加服务器负载,因为 Blastback 优先确保可靠的捕获和恢复。
致谢
灵感来源于 Scommander 的原始 Explosion Rebuilder Datapack。Blastback 是一个独立开发的现代重写版本。
Blastback
Explosions happen. The world rebuilds.
Blastback is a configurable Minecraft datapack that records blocks before explosions and reconstructs damaged areas afterward—one block at a time.
Features
- Restores exact block states
- Preserves chest inventories and block-entity data
- Supports overlapping and chained explosions
- Combines nearby explosions into one restoration group
- Suppresses explosion-generated block and container drops
- Leaves pre-existing dropped items untouched
- Pauses rebuilding while nearby explosions remain active
- Supports configurable placement speed and intervals
- Provides per-dimension explosion controls
- Includes an interactive settings menu
- Preserves pending restoration across restarts and chunk unloading
- Uses an event-driven scheduler with minimal idle processing
Restoration animations
Choose how destroyed areas rebuild:
- Bottom-up
- Top-down
- East-to-west
- West-to-east
- North-to-south
- South-to-north
- Outside-in
- Inside-out
- Random
Supporting blocks are restored before torches, grass, vegetation, redstone, attachments, and fluids. These dependent blocks may therefore appear later in the animation.
Supported explosions
Blastback detects and rebuilds damage caused by:
- TNT
- TNT minecarts
- Creepers and charged creepers
- Beds in invalid dimensions
- Respawn anchors in invalid dimensions
- End crystals
- Ghast fireballs
- Wither skulls
Each source can be controlled separately for the Overworld, Nether, End, and custom dimensions.
Settings
Administrators with permission level 2 or higher can open the settings menu with:
/function erb:admin/settings
The optional Blastback Settings book can be obtained with:
/function erb:admin/give_settings
You can configure:
- Rebuild delay
- Blocks placed per interval
- Placement interval
- Restoration animation
- Explosion sources
- Dimension profiles
- Chain-consumed TNT restoration
- Rebuild or item-conversion mode
- Master enable/disable switch
Players can view read-only status information with:
/trigger erb.status
Performance notice
Hotfix 3 replaces the previous always-running generated workers with an event-driven scheduler. Expensive capture, restoration, verification, and cleanup work remains dormant when Blastback has nothing to process.
Large or highly simultaneous explosions can still temporarily increase server load because Blastback prioritizes reliable capture and restoration.
Credits
Inspired by Scommander’s original Explosion Rebuilder Datapack. Blastback is an independently developed modern rewrite.
评论 0
登录后参与评分
还没有评论,来抢沙发吧