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.
下载 Blastback
下载 Blastback
下载 Blastback
下载 Blastback
下载 Blastback
下载 Blastback
下载 Blastback
下载 Blastback
下载 Blastback
Blastback Hotfix 3
Hotfix 3 是适用于 Java 1.21.1、26.2 和 26.3 的计划器与 Minecraft 26.3 兼容性版本。
性能
- 将
minecraft:tick从 389 个函数条目减少为恰好一个erb:tick分发器。 - 从永久 tick 注册中移除了 256 个捕获根节点、64 个玩家监听根节点、64 个最终审计根节点以及恢复延续根节点。
- 捕获、恢复、验证和物品清理现在使用自调度泵,当其工作队列为空时停止运行。
- 未加载的捕获组和组保留持久计数器,并每 20 个 tick 轮询一次已恢复区块,而不是每个 tick 都运行其全部工作线程。
- 空闲源发现具有类型约束且分阶段进行。受跟踪的易损源和投射物继续接收对时间敏感的更新。
- 用简短的视线射线加上在玩家单元格/维度更改后可恢复的 16 区块全局扫描预算,替换了针对每个玩家的完整床/锚体积扫描。
可靠性与行为
- 保留了分组捕获、精确状态/NBT 恢复、受保护物品、依赖排序、验证重试、权限和重启恢复功能。
- 在官方 26.3 上验证了并列放置的 1、4 和 32 个 TNT,未发现缺失方块、重复物品、遗留掉落物、待处理快照或命令限制警告。
- 在官方 26.3 上验证了普通/充能苦力怕、TNT 矿车、末影水晶、火球以及普通/危险凋灵骷髅。
- 修复了计划器重写后分阶段末影水晶发现的问题。
- 修复了恢复计时器在每个服务器 tick 内推进多次的问题。
- 将禁用模式下的陈旧清理移至 20-tick 休眠轮询中。
- 火把、草、植被、红石、附属物和流体有意比其支撑方块稍晚恢复。
管理
- 设置需要 2 级或更高级别的权限。
- 通过
/function erb:admin/settings打开设置界面。 - 传统的
/trigger erb.settings set 1仍故意保持无效状态。 /trigger erb.status仍然是只读状态命令。
兼容性与迁移
- 添加了专用的 Minecraft Java 26.3 构建,使用数据包格式 121.0 和官方 26.3 方块状态报告。
- 添加了 schema v10 活动计数器,同时保留设置、已保存方块、受保护物品、待定组以及未解决的验证工作。
- 主禁用和卸载操作现在会取消所有计划的 Hotfix 3 泵任务。
- 保留了 Hotfix 2 的可靠性、受保护物品、精确状态/NBT、权限、分组、动画、依赖和重试行为。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包
此数据包添加了属于阿瓦里海盗的独特结构,将他们的独特风格带入你的 Minecraft 世界!兼容性:1.20 至 26.3
数据包
一个 Minecraft 光线投射库,能够精确检测玩家正在查看的方块,包括像台阶和楼梯这样的特殊方块形状。
数据包
此数据包添加了新的“祝福模式”难度。
数据包
允许服务器管理员方便地禁用 Xaero's Map 系列模组中的实体雷达、小地图等功能,使竞技游戏更加公平。
数据包
使用原版/生存友好的方法更改青蛙的变种类型。支持原版(寒冷、温带、温暖)以及可选的“More Frogs 2”变种:深红、末影、地狱、毒镖、紫珀、幽匿、灵魂、诡异和木头。
数据包
粉色方块中的千种可能!
评论 0
登录后参与评分
还没有评论,来抢沙发吧