MultiMC
Open MultiMC
Click on Fabulously Optimized, then
Edit InstanceGo to
Loader modsFind the mod you need, uncheck the checkbox.
The tool downloads missing mods back on launch, therefore you need to make a custom script. Consider switching to Prism Launcher instead, which allows disabling mods with just a click.
These instructions are here as-is to be used at your own risk, no support is provided.
Download the mod disabling scripts:
Open MultiMC, right click your instance and click "Instance Folder"
Inside the folder, shift-right click and select Open in Terminal (or equivalent PowerShell prompt)
Within the terminal, run the following commands to download the files.
(Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Fabulously-Optimized/fabulously-optimized/main/Packwiz/pre-launch.ps1" -OutFile "pre-launch.ps1")
(Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Fabulously-Optimized/fabulously-optimized/main/Packwiz/post-exit.ps1" -OutFile "post-exit.ps1")If you wish to install them somewhere else, run cd path\to\folder (where path\to\folder is the path to your folder's location) before running the command above.
Select the mods to disable.
Copy the name of the mod(s) you want to disable.
Open
pre-launch.ps1with any text editorOn line 4, double click
mod1and paste the name of the mod you previously copied. You can do this on line 5 too! If you want to disable more mods, copy all of line 5, press theEnterkey at the end of line 5 and hit paste. (Make sure to change the name to match the new mod, though!)Mod names may change with modpack updates so you'll need to update them here again.
Setup the scripts to run on your MultiMC (auto-update) instance
Open MultiMC
Click on your instance "Edit Instance"
Go to "Settings" and then to "Custom Commands"
Remove the pre-launch command and replace it with
powershell -ExecutionPolicy Bypass -File ..\pre-launch.ps1If you've installed it elsewhere, use
path\to\folder\pre-launch.ps1(wherepath\to\folderis the path to the folder)
Do the same thing for the post-exit command but with
powershell -ExecutionPolicy Bypass -File ..\post-exit.ps1this time.Or
path\to\folder\post-exit.ps1(wherepath\to\folderis the path to the folder)
That's it! Now, the mods you disabled will not run with the instance nor appear inside Mod Menu!
Tutorial and scripts are made by Ultrasonic1209 based on Remty5's workaround.
Not fully tested on macOS. These instructions are here as-is to be used at your own risk, no support is provided.
Open a terminal and run the command below:
Debian-Ubuntu Linux:
sudo apt-get install jqFedora Linux:
sudo dnf install jqopenSUSE Linux:
sudo zypper install jqArch Linux:
sudo pacman -S jq --neededOther distros/macOS: follow this tutorial
This will install a program called jq, needed for automatically adapting this script to any Minecraft version you use.
Download the mod disabling scripts:
Open MultiMC, right click your instance and click "Instance Folder"
Inside the folder right click and select "Open Terminal here"
On macOS, follow this tutorial to get that option
Within the terminal, run the following command - this will install the files and make them executable:
If you want to install them somewhere else, run cd /path/to/folder (where /path/to/folder is the path to your folder's location) before running the command above.
Select the mods to disable
Copy the name of the mod(s) you want to disable
Open
pre-launch.shwith any text editorFind the line saying "Select the mods you wish to disable:" and below it
mod0=,mod1=,mod2=,mod3=,mod4=andmod5=. After=place the name of the mods you previously copied, one by one.No matter how many mods you disable, never remove
mod0=and$mod0.jar.Mod names may change with modpack updates so you'll need to update them here again.
Setup the scripts to run on your MultiMC (auto-update) instance
Open MultiMC
Click on your instance "Edit Instance"
Go to "Settings" and then to "Custom Commands"
Remove the pre-launch command and replace it with
../pre-launch.shIf you've installed it elsewhere, use
/path/to/folder/pre-launch.sh(where/path/to/folderis the path to the folder)
Do the same thing for the post-exit command but with
../post-exit.shthis time.Or
path/to/folder/post-exit.sh(where/path/to/folderis the path to the folder)
That's it! Now, the mods you disabled will not run with the instance nor appear inside Mod Menu!
Tutorial and scripts made by RaptaG based on Remty5's workaround.
Don't disable anything that says "API", because other mods need those to work.
What if I want to disable more or less than 6 mods?
Removing: Just remove the extra rows from the start and end of
pre-launch.sh, eg. from lines 10 & 11mod4=,mod5=and$mod4.jar\,$mod5.jar\from lines 35 & 36, if you want to have 4 mods disabled.Adding: Press
Enterin the end of line 11 and typemod6=for example. Then, in the end of line 36, press againEnterand type$mod6.jar\. Repeat the same for more mods by just changing the number (mod6=tomod7=and$mod6.jar\to$mod7.jar\etc.).
Last updated