Your Options Shall Be Saved (YOSBS)
Your Options Shall Be Saved (YOSBS) 是一款轻量级实用模组,允许整合包作者定义默认配置文件,而不会覆盖玩家的个人偏好设置。
更新整合包时,键位绑定或模组配置等自定义设置经常会被重置,因为大多数启动器会替换整个 config/ 文件夹。
YOSBS 通过在首次启动时将 config/yosbs/ 中的任何文件仅复制一次到其正确位置来解决此问题——此后将不再重复操作。
这让整合包作者拥有完全的控制权:
config/yosbs/ 内的文件被视为用户所有:仅复制一次,之后保持不变
config/ 内的文件按常规行为处理:每次更新时都会被替换
这样,你可以决定哪些配置应保留,哪些应重置。
功能特性
- 零配置:只需将默认文件放入
/config/yosbs/…(或旧版 /config/yosbr)即可
- 适用于任何文件 –
options.txt、模组配置、optionsshaders.txt 等
- 在 Fabric/Forge 开始加载其他模组之前的预启动阶段运行
兼容性与安装
- Fabric Loader ≥ 0.4.0 (无需 Fabric API)
- Minecraft 1.14 – 1.21.x
- 需要 Java 8 或更高版本
- 将 YOSBS jar 文件放入
mods/ 并启动一次 – /config/yosbs 文件夹会自动创建(或手动创建)
使用示例
| 想要提供… |
在首次启动前执行此操作 |
默认的 options.txt |
将你的文件放置在 /config/yosbs/options.txt |
| REI 配置 |
/config/yosbs/config/roughlyenoughitems/config.json5 |
致谢
灵感源自 shedaniel 的原始模组 Your Options Shall Be Respected – YOSBR
Your Options Shall Be Saved (YOSBS)
Your Options Shall Be Saved (YOSBS) is a lightweight utility mod that lets modpack creators define default configuration files without overwriting player preferences
Updating a modpack often resets custom settings like keybinds or mod configs, because most launchers replace the entire config/ folder
YOSBS solves this by copying any file placed in config/yosbs/ to its proper location only once on first launch — and never again
This gives full control to the pack author:
- Files inside
config/yosbs/ are treated as user-owned: copied once, then left untouched
- Files inside
config/ behave as usual: they will be replaced on each update
That way, you decide which configs should persist, and which should reset
Features
- Zero-config: just drop the defaults under
/config/yosbs/… (or legacy /config/yosbr)
- Works for any file –
options.txt, mod configs, optionsshaders.txt, etc
- Runs in the pre-launch phase, before Fabric/Forge starts loading the rest of the mods
Compatibility & Installation
- Fabric Loader ≥ 0.4.0 (No Fabric API required)
- Minecraft 1.14 – 1.21.x
- Requires Java 8 or newer
- Put the YOSBS jar in
mods/ and launch once – the folder /config/yosbs is created automatically (or create it manually)
Usage examples
| Want to ship… |
Do this before first launch |
A default options.txt |
Place your file at /config/yosbs/options.txt |
| A REI config |
/config/yosbs/config/roughlyenoughitems/config.json5 |
Credits
Inspired by the original Your Options Shall Be Respected – YOSBR by shedaniel
评论 0
登录后参与评分
还没有评论,来抢沙发吧