Just Enough Accidents
Just Enough Accidents,即 JEA,是 MineBackup 和 FolderRewind 的事故检测扩展。
JEA 会在你游戏时监视危险情况。当检测到配置的威胁时,它会要求 MineBackup 保存世界并创建一个事故现场快照,以便在出现问题时提供一个可能的恢复点。
JEA 不会自动还原你的世界,也不能保证提供完全安全的检查点。其快照捕捉的是检测到威胁时的世界状态。
检测到的事故
JEA 0.1.0 可以检测以下内容:
- 预测中的致命坠落
- 水下空气量处于危险低位
- 未持有抗火效果时进入岩浆
- 滑翔时鞘翅接近耐久耗尽
- 有效生命值极低
- 成功激活不死图腾
- 附近苦力怕开始膨胀
- 来自数据包或命令方块的外部请求
每个检测器均可独立启用或禁用。
事故现场快照
当检测到事故时,JEA 会执行以下操作:
- 收集同一服务器刻内检测到的所有威胁。
- 将它们合并为单个备份请求。
- 要求 MineBackup 保存当前世界。
- 通过 MineRewind 将请求传递给 FolderRewind。
- 在聊天中报告结果。
如果存档创建成功,世界所有者会收到一条可点击的还原此 JEA 快照消息。还原过程使用 MineBackup 现有的确认和倒计时系统。
JEA 永远不会自动还原世界。
触发保护
为避免过多备份:
- 检测器仅在其状态从安全变为危险时触发。
- 它必须恢复到安全状态后才能再次触发。
- 同一刻内检测到的所有事件都会被合并。
- 默认启用 60 秒的全局冷却时间。
- 当另一个世界操作正在运行时,请求不会被排队。
- 立即被拒绝的请求不会启动冷却时间。
可配置的备份设置
JEA 在以下位置创建其配置文件:
config/just-enough-accidents.json
默认备份设置如下:
{
"mode": "incremental",
"compressionMethod": "zstd",
"compressionLevel": 11
}
支持的备份模式:
incremental(增量)full(完整)
支持的压缩方法:
zstdLZMA2DeflateBZip2
配置文件中还包含检测器阈值、单个启用开关以及全局冷却时间。
无效的配置文件会被保留而不是被覆盖。JEA 会禁用自身并记录到该服务器的日志中,同时写入确切的配置错误信息。
数据包与命令方块集成
数据包和命令方块可以通过计分板请求快照:
scoreboard objectives add jea_request dummy
scoreboard players add #global jea_request 1
JEA 将任何大于或等于 1 的分数视为一个请求。
在世界保存之前,分数会被重置为 0,以防止还原的快照反复触发新的备份。
需求
JEA 0.1.0 需要:
- Minecraft 26.1–26.1.2
- Fabric Loader 0.18.4 或更高版本
- Fabric API
- Java 25
- MineBackup 3.1.0 或更高版本
- FolderRewind 1.8.0 或更高版本
- MineRewind 1.8.0 或更高版本
当前限制
- 仅支持单人游戏和局域网主机世界。
- 专用服务器在 0.1.0 版本中不受支持。
- 快照不能保证代表安全的位置。
- 低生命值的快照可能已经包含触发的伤害。
- 图腾快照是在图腾被消耗后创建的。
- JEA 快照共享 FolderRewind 正常的
KeepCount设置。 - 因此,频繁的事件可能导致旧存档被正常清理。
- JEA 目前不会创建计划的安全检查点或受保护的备份槽位。
计划扩展
未来可能的检测器包括:
- 致命的 incoming 伤害
- TNT 和末影水晶爆炸
- 危险的床或重生锚交互
- 宠物、村民和命名实体的死亡
- 其他持续伤害来源
- 受保护的安全检查点
JEA 的设计允许在不替换现有事故协调系统的情况下添加新检测器和备份策略。
Just Enough Accidents
Just Enough Accidents, or JEA, is an accident-detection extension for MineBackup and FolderRewind.
JEA watches for dangerous situations while you play. When a configured threat is detected, it asks MineBackup to save the world and create an accident-site snapshot, giving you a possible recovery point if something goes wrong.
JEA does not automatically restore your world or guarantee a perfectly safe checkpoint. Its snapshots capture the world around the time a threat is detected.
Detected Accidents
JEA 0.1.0 can detect:
- A predicted fatal fall
- Air running dangerously low underwater
- Entering lava without Fire Resistance
- An elytra nearing its breaking point while gliding
- Critically low effective health
- Successful activation of a Totem of Undying
- A nearby creeper beginning to swell
- External requests from data packs or command blocks
Each detector can be enabled or disabled independently.
Accident-Site Snapshots
When an accident is detected, JEA:
- Collects all threats detected during the same server tick.
- Merges them into a single backup request.
- Asks MineBackup to save the current world.
- Passes the request to FolderRewind through MineRewind.
- Reports the result in chat.
If an archive is successfully created, the world owner receives a clickable Restore this JEA snapshot message. Restoration uses MineBackup's existing confirmation and countdown system.
JEA never restores a world automatically.
Trigger Protection
To avoid excessive backups:
- A detector only triggers when its state changes from safe to dangerous.
- It must return to a safe state before it can trigger again.
- All incidents detected during the same tick are merged.
- A global cooldown of 60 seconds is enabled by default.
- Requests are not queued while another world operation is running.
- Immediately rejected requests do not start the cooldown.
Configurable Backup Settings
JEA creates its configuration file at:
config/just-enough-accidents.json
The default backup settings are:
{
"mode": "incremental",
"compressionMethod": "zstd",
"compressionLevel": 11
}
Supported backup modes:
incrementalfull
Supported compression methods:
zstdLZMA2DeflateBZip2
The configuration also contains detector thresholds, individual enable switches, and the global cooldown.
Invalid configuration files are preserved instead of being overwritten. JEA disables itself for that server session and writes the exact configuration error to the log.
Data Pack and Command Block Integration
Data packs and command blocks can request a snapshot through the scoreboard:
scoreboard objectives add jea_request dummy
scoreboard players add #global jea_request 1
JEA treats any score greater than or equal to 1 as one request.
The score is reset to 0 before the world is saved, preventing restored snapshots from repeatedly triggering new backups.
Requirements
JEA 0.1.0 requires:
- Minecraft 26.1–26.1.2
- Fabric Loader 0.18.4 or newer
- Fabric API
- Java 25
- MineBackup 3.1.0 or newer
- FolderRewind 1.8.0 or newer
- MineRewind 1.8.0 or newer
Current Limitations
- Only singleplayer and LAN-hosted worlds are supported.
- Dedicated servers are not supported in 0.1.0.
- Snapshots are not guaranteed to represent a safe location.
- Low-health snapshots may already contain the triggering damage.
- Totem snapshots are created after the totem has been consumed.
- JEA snapshots share FolderRewind's normal
KeepCount. - Frequent incidents may therefore cause older archives to be cleaned normally.
- JEA does not currently create scheduled safe checkpoints or protected backup slots.
Planned Expansion
Possible future detectors include:
- Fatal incoming damage
- TNT and End Crystal explosions
- Dangerous bed or Respawn Anchor interactions
- Deaths of pets, villagers, and named entities
- Additional ongoing damage sources
- Protected safe checkpoints
JEA is designed so that new detectors and backup strategies can be added without replacing the existing incident-coordination system.
下载 Just Enough Accidents (JEA)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Just Enough Accidents (JEA)
下载 Just Enough Accidents (JEA)
下载 Just Enough Accidents (JEA)
下载 Just Enough Accidents (JEA)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Just Enough Accidents (JEA)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Just Enough Accidents (JEA)
已修复的 Bug
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
让你能够在世界中的任何位置定位结构。
模组
添加睡袋和吊床,分别用于便携性和昼夜转换,同时不会设置新的出生点。共有16种颜色可选!
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
评论 0
登录后参与评分
还没有评论,来抢沙发吧