适用于 Fabric 的轻量级、可靠备份模组。
Mochi 在后台安静运行,确保你的世界安全无忧。无需复杂设置——只需在你需要时提供有效的备份。
无论是防止存档损坏、测试数据包,还是在大工程前留个安全网,Mochi 都能为你提供保障。
功能
备份
- 按可配置的时间间隔自动备份
- 通过一条命令手动备份
- 离开世界时自动备份
- 每个世界拥有独立的备份文件夹
- 多线程压缩以提升速度
- 可选择 ZIP(更快)或 GZIP(文件更小)格式
还原
- 真正可用的还原机制 —— 基于经过验证的
halt() + session.close() 方法构建
- 保留玩家数据:物品栏、进度、统计信息和位置
- 每次还原前创建安全备份,以便随时回滚
- 10 秒倒计时(可配置),随后干净地关闭服务器
- 若还原中途失败,自动回滚至原始世界——你的原世界保持完整
保留策略
- 为每个世界保留固定数量的备份
- 自动删除超过指定年龄的备份
- 限制备份文件夹的总大小
- 可将特定文件列入黑名单,排除在备份之外
Discord 通知(可选)
- 支持带颜色状态消息的富嵌入 Webhook
- 在备份开始、备份完成、备份失败和还原时触发
- 默认禁用——仅在你希望使用时启用
配置
- 通过 Mod Menu 和 Cloth Config 在游戏内访问配置界面
- JSON5 配置文件,支持注释,可从旧格式自动转换
- 无需手动编辑文件
指令
所有指令均使用 /mochi。在单人游戏中开启或关闭作弊均可使用。
| 指令 |
描述 |
/mochi start [comment] |
立即创建一个备份 |
/mochi list |
列出备份,并提供可点击的 [Restore] / [Delete] 按钮 |
/mochi restore <filename> |
还原某个备份(倒计时后替换世界文件) |
/mochi delete <filename> |
删除指定的备份 |
/mochi cleanup |
手动执行保留策略规则 |
执行 /mochi list 后,只需在聊天栏中点击按钮即可——无需输入冗长的文件名。
还原工作原理
- 运行
/mochi restore <filename>
- 聊天栏显示 10 秒倒计时
- 服务器干净暂停并释放世界文件锁
- 当前世界被重命名并作为备份保留
- 被还原的世界被移动到位
- 验证后删除旧世界
- 重新加入——你的已还原世界已就绪
若在还原过程中出现任何错误,Mochi 会自动回滚至原始世界。
依赖项
| 模组 |
必需 |
用途 |
| Fabric API |
是 |
核心 Fabric 功能 |
| Mod Menu |
推荐 |
游戏内配置访问 |
| Cloth Config API |
推荐 |
配置界面 UI |
兼容性
- Minecraft: 26.1 – 26.3
- 加载器: Fabric
- Java: 25
- 环境: 客户端与服务器
备注
- 还原需要你完全重启客户端(单人模式)或服务器(多人模式),以便安全地交换世界文件。
- 单人模式: 仅需在客户端安装。
- 多人模式: 仅在服务器上安装——客户端无需安装。
- 备份默认存储在
mochi_backups/<world-name>/ 目录下。此路径可在配置界面中更改。
致谢
- 开发者: LeafSpeak
- 灵感来源: Textile Backup(还原架构)
- 图标: 自定义麻薯插图
发现 Bug?
请在 Discord 上报告:
请提供你的 Minecraft 版本、Fabric Loader 版本、你所安装的 Mochi jar 文件,以及 logs/latest.log 的相关部分。
由 LeafSpeak 用 🍡 制作。
A lightweight, reliable backup mod for Fabric.
Mochi runs quietly in the background and keeps your worlds safe. No complicated setup — just backups that work when you need them.
Whether you're protecting against corruption, testing datapacks, or just want a safety net before a big build, Mochi has you covered.
Features
Backups
- Automatic backups on a configurable timer
- Manual backups with a single command
- Auto-backup when you leave a world
- Separate backup folder per world
- Multithreaded compression for speed
- Choose between ZIP (faster) or GZIP (smaller files)
Restore
- Restore that actually works — built on the proven
halt() + session.close() method
- Player data preserved: inventory, advancements, stats, and position
- Safety backup created before every restore, so you can always roll back
- 10-second countdown (configurable), then a clean server shutdown
- Automatic rollback if a restore fails partway through — your original world stays intact
Retention
- Keep a set number of backups per world
- Auto-delete backups older than a chosen age
- Cap the total size of the backup folder
- Blacklist specific files from being backed up
Discord Notifications (Optional)
- Rich embed webhooks with color-coded status messages
- Fires on backup start, backup complete, backup failed, and restore
- Disabled by default — enable only if you want it
Configuration
- In-game config screen via Mod Menu and Cloth Config
- JSON5 config with comments, auto-converted from older formats
- No manual file editing required
Commands
All commands use /mochi. Works with or without cheats in singleplayer.
| Command |
Description |
/mochi start [comment] |
Create a backup immediately |
/mochi list |
List backups with clickable [Restore] / [Delete] buttons |
/mochi restore <filename> |
Restore a backup (countdown, then world files are swapped) |
/mochi delete <filename> |
Delete a specific backup |
/mochi cleanup |
Run retention rules manually |
After /mochi list, simply click the buttons in chat — no need to type long filenames.
How Restore Works
- Run
/mochi restore <filename>
- A 10-second countdown appears in chat
- The server halts cleanly and releases the world file lock
- The current world is renamed and kept as a backup
- The restored world is moved into place
- The old world is deleted after verification
- Rejoin — your restored world is ready
If anything goes wrong mid-restore, Mochi automatically rolls back to the original world.
Dependencies
| Mod |
Required |
Purpose |
| Fabric API |
Yes |
Core Fabric functionality |
| Mod Menu |
Recommended |
In-game config access |
| Cloth Config API |
Recommended |
Config screen UI |
Compatibility
- Minecraft: 26.1 – 26.3
- Loader: Fabric
- Java: 25
- Environment: Client and server
Notes
- Restore requires a full restart of your client (singleplayer) or server (multiplayer) so world files can be swapped safely.
- Singleplayer: Install on the client only.
- Multiplayer: Install on the server — clients don't need it.
- Backups are stored in
mochi_backups/<world-name>/ by default. This can be changed in the config screen.
Credits
- Developer: LeafSpeak
- Inspired by: Textile Backup (restore architecture)
- Icon: Custom mochi illustration
Found a bug?
Report it on Discord:
Please include your Minecraft version, Fabric Loader version, the Mochi jar you installed, and the relevant part of logs/latest.log.
Made with 🍡 by LeafSpeak.
评论 0
登录后参与评分
还没有评论,来抢沙发吧