Last active
February 12, 2022 12:09
Revisions
-
exp111 revised this gist
Feb 12, 2022 . 2 changed files with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Changes: * Brightness to max * GUI Size to Large (3) * Mipmap Levels to 0 * Disables VSync ### Controls * Disables Auto jump * Inventory to Tab (fight me) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,16 +24,16 @@ if (Test-Path($path)) # gui level 3/large $data = $data -replace "guiScale:\d", "guiScale:3"; # vsync off $data = $data -replace "enableVsync:true", "enableVsync:false"; # mipmap 0 $data = $data -replace "mipmapLevels:\d", "mipmapLevels:0"; ### Controls # Disable Auto jump $data = $data -replace "autoJump:true", "autoJump:false"; # change inventory to tab, list players to apostrophe/ae ## new keycode system $data = $data -replace "key_key.inventory:key\..*", "key_key.inventory:key.keyboard.tab"; # TODO: check if anything else uses that key (modded binds) $data = $data -replace "key_key.playerlist:key\..*", "key_key.playerlist:key.keyboard.apostrophe"; ## old keycodes $data = $data -replace "key_key.inventory:\d+", "key_key.inventory:15"; -
exp111 revised this gist
Feb 12, 2022 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,7 @@ if (Test-Path($path)) ### Controls # Disable Auto jump $data = $data -replace "autoJump:true", "autoJump:false"; # change inventory to tab, list players to � ## new keycode system $data = $data -replace "key_key.inventory:key\..*", "key_key.inventory:key.keyboard.tab"; $data = $data -replace "key_key.playerlist:key\..*", "key_key.playerlist:key.keyboard.apostrophe"; @@ -53,5 +53,6 @@ if (Test-Path($path)) } else { # throw if you want the thing to die, problem: may stop the game from running if it hasn't created a config file yet Write-Error "$optionsFile at $path doesn't exist"; } -
exp111 created this gist
Feb 12, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ ## What does it do Sets the options to my preference (and you can't do anything about that) Changes: ### Audio * Master Audio to 20% ### Video * Brightness to max * GUI Size to Large (3) * Mipmap Levels to 0 ### Controls * Disables Auto jump * Inventory to Tab (fight me) * List Players to ä/apostrophe ### Misc Stuff * Disables the multiplayer warning * Disables Tutorials * Disables snooper settings I found https://github.com/theTisch21/Auto-MC-Config but it doesn't handle everything and uses node. Webd\*vs at work ## How to use * Run in the folder where the "options.txt" is Or * Set the Pre-launch command in MultiMC to `PowerShell.exe -ExecutionPolicy RemoteSigned -command "..\..\..\setconfig.ps1"` ## Problems May not work on the first run if the options file doesn't exist yet/is empty. TODO: handle this? can't be arsed, so just start the game twice smh Doesn't check if anything is there. if checks are for losers This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,57 @@ $optionsFile = "options.txt"; $path = Convert-Path("."); # $path = Join-Path -Path $path -ChildPath "minecraft"; $path = Join-Path -Path $path -ChildPath $optionsFile; # Check if config file exists if (Test-Path($path)) { Write-Host "File exists"; $data = Get-Content $path; ### General # fov to 88 $data = $data -replace "fov:\d(\.\d*)", "fov:0.45"; ### Audio # master to 0.2 $data = $data -replace "soundCategory_master:\d(\.\d+)?", "soundCategory_master:0.2"; $data = $data -replace "master:\d(\.\d+)?", "master:0.2"; ### Video settings # Max Brightness $data = $data -replace "gamma:\d(\.\d)?", "gamma:1.0"; # gui level 3/large $data = $data -replace "guiScale:\d", "guiScale:3"; # vsync off $data = $data -replace "enableVsync:false", "enableVsync:true"; # mipmap 0 $data = $data -replace "mipmapLevels:\d", "mipmapLevels:0"; ### Controls # Disable Auto jump $data = $data -replace "autoJump:true", "autoJump:false"; # change inventory to tab, list players to ä ## new keycode system $data = $data -replace "key_key.inventory:key\..*", "key_key.inventory:key.keyboard.tab"; $data = $data -replace "key_key.playerlist:key\..*", "key_key.playerlist:key.keyboard.apostrophe"; ## old keycodes $data = $data -replace "key_key.inventory:\d+", "key_key.inventory:15"; $data = $data -replace "key_key.playerlist:\d+", "key_key.playerlist:40"; ### Misc # disable mp warning $data = $data -replace "skipMultiplayerWarning:false", "skipMultiplayerWarning:true"; # disable snooper $data = $data -replace "snooperEnabled:true", "snooperEnabled:false"; # disable tutorial $data = $data -replace "tutorialStep:.*", "tutorialStep:none"; # Write back $data | Out-File -encoding ASCII $path; } else { throw "$optionsFile at $path doesn't exist"; }