Mod Default Options (Fabric Edition) by BlayTheNinth

  • Default Options (Fabric Edition) by BlayTheNinth

    A way for modpacks to ship a default (key) configuration without having to include an options.txt file. Also allows local options from any mod .cfg file.
    • 1057715
    • 85.66 KB
    • 1.20.2
    • November 16, 2021
    • September 26, 2023
    • Miscellaneous
    Default Options (Fabric Edition)
Mod Information
NameDefault Options (Fabric Edition)AuthorBlayTheNinthDescriptionA way for modpacks to ship a default (key) configuration without having to include an options.txt file. Also allows local options from any mod .cfg file.
InformationDownloads: 1057715
Version: 1.20.2
Size: 85.66 KB
Updated at: September 26, 2023
Created at: November 16, 2021
Tags
Miscellaneous

Requires Balm Become a Patron Follow me on Twitter Join our Discord Go to Forge Version

Default Options

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 project is sponsored by Server.pro.

Server.pro Sponsorship

 

Features

 

  • 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)

 

Instructions

 

  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.