Default Options

Default Options

热度 1180787192
最近更新11 个月前
一种让模组包能够发送默认(键)配置的方式,而无需包含一个 options.txt 文件。 A way for m...

此模组可供整合包开发者使用,用于分发默认选项和按键绑定,且每次整合包更新时不会覆盖用户所做的更改。

你无需直接发布options.txt,而是在整合包中发布一个“defaultoptions”文件夹,其中包含先前通过 /defaultoptions 命令保存的默认设置。

此模组适用于NeoForge、Fabric和Forge。它依赖Balm,安装此模组时必须同时安装Balm。

  • 首次运行时,用户将以你配置的选项开始游戏,且后续更新不会覆盖用户所做的更改
  • 整合包配置的按键绑定将设置为新的默认值,这意味着用户所做的更改即使在更新后也会保留
  • 服务器列表将预先填充整合包提供的服务器列表(并且用户所做的更改在更新后仍会保留)

  1. 1. 按照你希望在整合包中发布的方式配置选项、按键绑定和服务器列表
  2. 2. 加入任意世界并运行“/defaultoptions saveAll”,将当前选项保存到defaultoptions文件夹(位于config文件夹中,应保持在此位置)
  3. 3. 不要在整合包的根目录中包含options.txt和servers.dat
  4. 4. 全新安装(即不存在现有options.txt)的用户现在将以你的默认选项开始游戏

如果你正在使用FoamFix无政府主义版本,请在FoamFix配置中禁用B:initOptions,否则默认选项将无法生效。更多信息请参阅此GitHub问题。


This mod can be used by Modpack developers to distribute default options and keybindings without overriding user changes on every modpack update.

Instead of shipping the options.txt directly, you will ship a "defaultoptions" folder in your modpack which contains the defaults previously saved through the /defaultoptions command.

This mod is available for NeoForge, Fabric and Forge. It requires Balm, which must be installed alongside the mod.

  • On the first run, users will start out with the options you configured - and future changes won't be overridden on updated
  • Keybinds configured by the modpack will be set as new defaults, meaning changes made by users will persist even on updates
  • The server list will be pre-populated with the server list provided by the modpack (and user changes will persist on updates, still)

  1. 1. Configure the options, keybinds and server list as you would like them to be shipped in the modpack
  2. 2. Join any world and run "/defaultoptions saveAll" to save your current options in the defaultoptions folder (located in the config folder where it should remain)
  3. 3. Do not include the options.txt and servers.dat from the root directory in your modpack
  4. 4. Fresh installations (meaning no existing options.txt) will now start out with your default options

If you are using FoamFix Anarchy Version, disable B:initOptions in the FoamFix config or else Default Options will not work. See this GitHub issue for more info.

本站是资源分享站,资源均来自于互联网和用户自发分享,仅供学习和交流使用。如有版权问题,请联系管理员删除。

评论区 (0)

登录 后才能发表评论

暂无评论

快来发表第一条评论吧!