options.txt
options.txt is the file that stores all the options changeable in the in-game options/settings menu and various other information the game needs to store after quitting. It is found in the .minecraft folder in Java Edition or in the com.mojang/minecraftpe folder in Bedrock Edition, and can be edited with any basic text editor to change options. Most settings can be changed in-game, but a few can be changed only by editing this file. The options.txt file for the latest version of the game is not backward-compatible with older versions of the game, and if older versions are played in the same directory as a newer version, options.txt can be reset back to its default settings.
Each line represents a single option or piece of data, with the option followed by a colon followed by the value of that option. A list of all available key/button numbers for the controls options is available at key codes.
Whether or not to use an order-independent transparency algorithm to render translucent objects​[upcoming: JE 26.3]
Complete article available
This cached Wiki page is unusually large, so it is loaded on demand to keep the initial page fast.