StandardSettings
StandardSettings is a mod that resets your settings to a configured default when creating a new world.
This post will mainly focus on StandardSettings 2.x, which rewrote StandardSettings to be configured through SpeedrunAPI, some details on StandardSettings 1.x can be found here.
Configuration
Configuration happens through SpeedrunAPI, by going to Options > Book & Quill > StandardSettings.
The options screen allows configuring settings that are used for settings resetting using two widgets, the one on the left to configure the value of the setting (mimicking the vanilla option if applicable), the ON/OFF button on the right to enable/disable if the setting should be reset at all.
The value of a setting can only be configured if it is enabled.
The initial value of standard settings is set when the config file is first created and values are initialized to the corresponding vanilla values.
Because of this it is sometimes recommended to configure options in vanilla first, then install StandardSettings (or just delete the config file at .minecraft/config/mcsr/standardsettings.json) after.
Because of the large amount of settings in the StandardSettings config screen, using the Ctrl + F shortcut to search through SpeedrunAPI config screens is recommended when looking for individual settings.
Use StandardSettings
StandardSettings behaviour can be fully turned on or off using the “Use StandardSettings” setting.
Toggle All
“Toggle All” sets every individual settings used for settings resetting to be enabled/disabled.
This is mainly useful to disable every setting and then manually enable only the few settings you’d like to be reset.
Vanilla Settings
StandardSettings has all vanilla settings available to be configured while the game is open, which excludes settings from options.txt that don’t actually show up in any ingame menus.
Modded Settings
StandardSettings has a settings for Sodiums “Entity Culling”, shown under the “Video Settings” category.
Since vanilla settings include all keybinds, modded keybinds are also included, notably Atums “Create New World” and SpeedrunIGTs “Restart Timer” and “Stop Timer”.
F3 Settings
StandardSettings has settings configured through F3, in 1.16.1 this includes “Pause on lost focus”, “Advanced Tooltips”, “Hitboxes”, “Chunkborders” and “Pie Directory”.
F3 Pause on World Load / First World F3 Pause Delay
F3 Pause on World Load will automatically pause the game with F3+Esc when the player joins the world if the Minecraft window is unfocused.
To counteract first world lag causing chunks not to render, First World F3 Pause Delay delays this pause by the configured amount of ticks on the first joined world.
More Settings
StandardSettings has a few miscellaneous settings, in 1.16.1 this includes “Perspective”, “Hud Hidden (F1)”, “Sneak Toggled” and “Sprint Toggled”.
“Sneak Toggled” and “Sprint Toggled” refer to the state of the sticky keybind, not to be confused with the vanilla settings themselves which are just called “Sneak” and “Sprint”.
On World Join Settings
On World Join settings are specifically selected settings that get changed again when a world is joined, see here for more detail.
These settings fall under the umbrellas of performance (Render Distance, Entity Distance, Simulation Distance) and visibility/accessible alternatives to resizing the Minecraft window (FOV, GUI Scale).
Features
Settings Resetting
All enabled settings are reset to their configured defaults when a world is created, so before the preview appears.
Settings On World Join
On World Join Settings are applied the first time one of the following happens:
- The player joins the world while the Minecraft window is focused.
- The Minecraft window becomes focused after the player has joined the world.
- If the “Trigger On Resize” settings is ON and the Minecraft window is resized after the player has joined the world.
- This was added to allow wall macros to apply On World Join settings before the window was focused, avoiding the “flashing” of chunks on render distance change.
Settings Cache
Before resetting settings, StandardSettings creates a cache of all settings and saves the name of the world (more accurately the world folder name) that was loaded before.
When a world is rejoined with the saved name, StandardSettings reloads this settings cache.
Only one settings cache is kept at any time.
This was added to undo settings changes when players accidentally reset, with the most notable example being sagi_enderman’s 8:36 FWR.
Save Settings to World File
When a world finishes loading, StandardSettings saves the current minecraft settings to .minecraft/saves/<world>/standardoptions.txt.
This was added as a verification feature, though it is mostly unused today.
Global StandardSettings File
To redirect StandardSettings to use a global config file, a .minecraft/config/mcsr/standardsettings.global file must be added, containing the path to the global file.
StandardSettings File Reloading
Before resetting settings (and also when opening the StandardSettings options screen), StandardSettings checks if the config file has been modified and reloads settings if it has.
This allows external programs to edit StandardSettings settings while Minecraft is running.
History
Wall Macros before StandardSettings
StandardSettings was created in 2022, when wall macros where still being used.
These macros had features to reset specific settings (usually render distance, entity distance and in some advanced cases also chunkborders and hitboxes) on reset.
They also reduced render distance (and before the introduction of DynamicFPS/SleepBackground even FPS) while on the wall to reduce the performance hit from having many different instances of Minecraft open.
Because they relied on actually sending the inputs to the instance with configurable input delays, these settings resets were often slow and on worse hardware downright unreliable.
StandardSettings v1
StandardSettings 1.x was configurable directly through a .minecraft/config/standardoptions.txt file and didn’t cover all vanilla settings, excluding some that were deemed unnecessary (for example Realm Notifications).
The standardoptions.txt file was structured similar to options.txt, with each line corresponding to a settings change:
...
fov:1.0
gamma:5.0
renderDistance:32
entityDistanceScaling:1.0
guiScale:3
...
perspective:0
pieDirectory:root.gameRenderer.level.entities
f1:
fovOnWorldJoin:0.7
guiScaleOnWorldJoin:
...
Settings with no value specified (like “f1” and “guiScaleOnWorldJoin” in this example) would be ignored.
It was also possible to recursively point to a global config file by having the first line of the file be the path to another file, any other lines below would be ignored.
SeedQueue
With the introduction of SeedQueue, some of StandardSettings features became unused, but there is currently no plan to remove them since SeedQueue is not planned to receive full version coverage.
Settings Resetting with SeedQueue
To have StandardSettings be applied on the wall screen, SeedQueue moves settings resetting from the start of world creation to whenever the wall screen is opened.
Settings Cache with SeedQueue
SeedQueue also creates its own settings cache for every preview the first time it is rendered on the wall, which is also why it requires StandardSettings to use the wall.
This settings cache is applied when a world is joined, to emulate traditional wall setups and prevent people from changing settings before joining a world like so:
- See world A on the wall screen
- Join world B
- Change settings
- Leave world B and go back to the wall screen
- Join world A with adjusted settings
The most notable use case for this would be to change Pie Directory depending on the preview, for example changing to root.tick.level.entities.blockEntities to play All Advancements when there is a desert temple on preview.
Development
This mod was made by @contaria.
Source code: https://github.com/contariaa/StandardSettings
