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.
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. Configure the options, keybinds and server list as you would like them to be shipped in the modpack
- 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. Do not include the options.txt and servers.dat from the root directory in your modpack
- 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.
Please make a warning after clicking because if you accidentely click you're f up mostly for controls
This doesn't save optifine performance options which makes it useless
In reply to idiotface:
optifine itself is not allowed to be included in modpacks, only added after a modpack so it's kind of useless to have that saved.
In reply to InuYasha86000:
Nobody said anything about including optifine in modpacks, I'm talking about the options file which obviously can be included, so if someone adds optifine afterwards, all of the settings are preconfigured. 🤦
should the defauloptions folder be in the config folder, or do i need to manually move it to the .minecraft folder itself?
Everytime I run the /defaultoptions saveAll command I get "An unexpected error occured trying to execute that command"
For anyone having issues with it not setting your keybinds, you must delete the knownkeys.txt in your .Minecraft folder for the new defaults to take effect.
Is this a client side only mod? Or do I have to put it on my server too?
Is there a way to save a serverconfig which would be automatically applied on world creation?
I can't seem to find any way to do so and that would be really useful since some mods just ignore configs and reset their serverconfigs when making a new game.
Thanks for the really useful mod!
In reply to globensky:
I believe that's a feature that comes with forge, if you put the server configs that have been configured into the defaultconfigs folder.
Can look into adding feature to allow multi keys? Alt and ctrl + a button, or __ + __
Meaning 'shift + b' to work, Vanilla doesn't allow this, only sort of does
- If you set that, but also have b set, hitting b will do both options
Currently there are no options I can find for this in forge 1.16.4/5, there is this fabric one only:
https://www.curseforge.com/minecraft/mc-mods/amecs
This would be amazing for modpackers, I've resorted to unbinding most keys bc simply, not enough viable options... ):
- Nor makes sense in my mind to bind a key randomly if not used much/at all, to make people have to go look for it anyways.. lol
In reply to ShootToKillSTK:
Forge already supports this out-of-the-box.
In reply to BlayTheNinth:
Really? It was not working for me, forge version 36.0.35, was having both activate when trying to do 'e' inventory then 'ctrl + e' for quark portable crafting, 'alt +e' not work either
In reply to ShootToKillSTK:
Yeah, multi-keys is supported, you have to hold shift or ctrl tho not just tap it
I used the comment /defaultoptions saveKeys but it doesnt save my key bindings please help me
I used the comment /defaultoptions saveKeys but it doesnt save my key bindings please help me
When i type /defaultoptions_saveAll it saves options but it doesn't saves keybindings.
I go through the steps but a fresh installation only starts with Minecraft's default options. Where does the defaultoptions folder need to be? I have it in the configs folder.
Is it okay to do this more than once before shipping the modpack?
currently I get this error message:
As far as i can tell the Keybinds are not being saved. The keybind txt file has NONE behind everything even after running the command.