|
| 1 | +--- |
| 2 | +hidden: true |
| 3 | +--- |
| 4 | + |
| 5 | +# How to Disable Mods: MultiMC |
| 6 | + |
| 7 | +{% hint style="danger" %} |
| 8 | +Do NOT disable "API" or "library" mods, because the other mods need them. |
| 9 | +{% endhint %} |
| 10 | + |
| 11 | +Instructions vary depending on whether you had installed FO on MultiMC with the easier installation or with automatic updates. |
| 12 | + |
| 13 | +<!-- TODO: instructions for manual installation? --> |
| 14 | + |
| 15 | +{% tabs %} |
| 16 | +{% tab title="Windows" %} |
| 17 | +{% hint style="info" %} |
| 18 | +Tutorial by [Ultrasonic1209](https://github.com/Ultrasonic1209) based on [Remty5's workaround](https://github.com/Fabulously-Optimized/fabulously-optimized/issues/81). |
| 19 | +{% endhint %} |
| 20 | + |
| 21 | +1. Open **MultiMC** |
| 22 | +2. Right-click the FO instance |
| 23 | +3. Click on the **Instance Folder** button |
| 24 | +4. While holding Shift, right-click inside of the folder |
| 25 | +5. Click on **Open in Terminal** or **Open with PowerShell** or similar |
| 26 | +6. Run the following commands to download the scripts that will disable the mods: |
| 27 | + |
| 28 | + ```powershell |
| 29 | + (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Fabulously-Optimized/fabulously-optimized/main/Packwiz/pre-launch.ps1" -OutFile "pre-launch.ps1") |
| 30 | + (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Fabulously-Optimized/fabulously-optimized/main/Packwiz/post-exit.ps1" -OutFile "post-exit.ps1") |
| 31 | + ``` |
| 32 | +
|
| 33 | + This should download two files: `pre-launch.ps1` and `post-exit.ps1` |
| 34 | +7. Open `pre-launch.ps1` in a text editor. You should find a list of mods starting on _line 4_ |
| 35 | +8. Copy the name of the mod you want to disable |
| 36 | +9. Paste the name of the mod in the line you found in _step 7_ |
| 37 | +10. Disable more mods by adding them under _line 4_ with the same format |
| 38 | +11. Go back to **MultiMC** |
| 39 | +12. Click on the FO instance |
| 40 | +13. Click on **Edit Instance** |
| 41 | +14. Replace the pre-launch command with the following: |
| 42 | +
|
| 43 | +```powershell |
| 44 | +powershell -ExecutionPolicy Bypass -File ..\pre-launch.ps1 |
| 45 | +``` |
| 46 | + |
| 47 | +15. Replace the post-exit command with the following: |
| 48 | + |
| 49 | +```powershell |
| 50 | +powershell -ExecutionPolicy Bypass -File ..\pre-launch.ps1 |
| 51 | +``` |
| 52 | +{% endtab %} |
| 53 | + |
| 54 | +{% tab title="Linux and macOS" %} |
| 55 | +{% hint style="info" %} |
| 56 | +Tutorial by [RaptaG](https://github.com/RaptaG) based on [Remty5's workaround](https://github.com/Fabulously-Optimized/fabulously-optimized/issues/81). |
| 57 | +{% endhint %} |
| 58 | + |
| 59 | +{% hint style="warning" %} |
| 60 | +Not fully tested on macOS! |
| 61 | +{% endhint %} |
| 62 | + |
| 63 | +1. Open **MultiMC** |
| 64 | +2. Right-click the FO instance |
| 65 | +3. Click on the **Instance Folder** button |
| 66 | +4. Right-click inside of the folder |
| 67 | +5. Click on **Open in Terminal** |
| 68 | + * On macOS follow [instructions to get the Terminal there](https://petenetlive.com/KB/Article/0001060) |
| 69 | +6. Install [jq](https://stedolan.github.io/jq/download), which will automatically adapt the script to your Minecraft version |
| 70 | +7. Run the following commands to download the scripts that will disable the mods: |
| 71 | + |
| 72 | + ```sh |
| 73 | + curl -Os 'https://raw.githubusercontent.com/Fabulously-Optimized/fabulously-optimized/main/Packwiz/pre-launch.sh' | curl -Os 'https://raw.githubusercontent.com/Fabulously-Optimized/fabulously-optimized/main/Packwiz/post-exit.sh' && chmod +x pre-launch.sh post-exit.sh |
| 74 | + ``` |
| 75 | + |
| 76 | + This should download two files: `pre-launch.ps1` and `post-exit.ps1` |
| 77 | +8. Open `pre-launch.ps1` in a text editor. You should find a list of mods starting on _line 6_ |
| 78 | +9. Copy the name of the mod you want to disable |
| 79 | +10. Paste the name of the mod in the line you found in _step 8_ |
| 80 | +11. Disable more mods by adding them under _line 6_ with the same format |
| 81 | +12. If you leave a line empty, delete the corresponding one starting on _line 28_ |
| 82 | +13. If you need to disable more than 6 mods, add lines both under `mod5=` and `$mod5.jar\` |
| 83 | +14. Go back to **MultiMC** |
| 84 | +15. Click on the FO instance |
| 85 | +16. Click on **Edit Instance** |
| 86 | +17. Replace the pre-launch command with the following: |
| 87 | +
|
| 88 | +```sh |
| 89 | +../pre-launch.ps1 |
| 90 | +``` |
| 91 | + |
| 92 | +18. Replace the post-exit command with the following: |
| 93 | + |
| 94 | +```sh |
| 95 | +../pre-launch.ps1 |
| 96 | +``` |
| 97 | + |
| 98 | +1. Open **MultiMC** |
| 99 | +2. Select the FO instance |
| 100 | +3. Click on the **Edit Instance** button |
| 101 | +4. Click on **Loader mods** |
| 102 | +5. Find the mod you want to disable |
| 103 | +6. Uncheck the checkbox |
| 104 | +7. If you want to re-enable the mod, then check the checkbox again |
| 105 | +{% endtab %} |
| 106 | +{% endtabs %} |
0 commit comments