|
| 1 | +--- |
| 2 | +layout: default |
| 3 | +title: Fabric |
| 4 | +nav_order: 7 |
| 5 | +parent: Adjusting World & Server Properties |
| 6 | +permalink: /docs/mscs/adjusting-world-server-properties/fabric |
| 7 | +--- |
| 8 | + |
| 9 | +# Fabric |
| 10 | + |
| 11 | +This guide describes how to configure MSCS to run a world using [Fabric][fabric]. |
| 12 | + |
| 13 | +There are several ways to install Fabric. |
| 14 | +This document describes the current recommended method, |
| 15 | +which uses an executable [server launcher][launcher] instead of a separate installer. |
| 16 | +Manual installation using an [installer JAR][installer] is not covered. |
| 17 | + |
| 18 | +## Initial configuration |
| 19 | + |
| 20 | +1. [Download the server launcher][launcher] into the Minecraft Server Control Script's server directory. |
| 21 | + |
| 22 | + Note: the URL in the following example will not work. |
| 23 | + You must use the `curl` command provided on the download page. |
| 24 | + ``` |
| 25 | + cd /opt/mscs/server |
| 26 | + curl -OJ https://meta.fabricmc.net/v2/versions/loader/GameVersion/LoaderVersion/InstallerVersion/server/jar |
| 27 | + ``` |
| 28 | +2. When the download completes, it will tell you the filename that was saved. |
| 29 | + Take note of it (or copy it to your clipboard) for use in a future step. |
| 30 | + |
| 31 | + Continuing the artificial (non-functional) example from the previous step... |
| 32 | + ``` |
| 33 | + $ curl -OJ https://meta.fabricmc.net/v2/versions/loader/GameVersion/LoaderVersion/InstallerVersion/server/jar |
| 34 | + % Total % Received % Xferd Average Speed Time Time Time Current |
| 35 | + Dload Upload Total Spent Left Speed |
| 36 | + 100 143k 0 143k 0 0 109k 0 --:--:-- 0:00:01 --:--:-- 109k |
| 37 | + curl: Saved to filename 'fabric-server-mc.GameVersion-loader.LoaderVersion-launcher.LauncherVersion.jar' |
| 38 | + ``` |
| 39 | +3. Create a world. |
| 40 | + (Replace "fabric-example" with your desired world name here and in future steps.) |
| 41 | + ``` |
| 42 | + mscs create fabric-example |
| 43 | + ``` |
| 44 | +4. Configure the world to use the Fabric JAR by configuring some settings in `mscs.properties`. |
| 45 | + |
| 46 | + Note: this uses the filename from the artificial example above. |
| 47 | + When you run the first command, you must use the filename that you observed in step 2 instead of this example's artificial filename. |
| 48 | + ``` |
| 49 | + echo 'mscs-server-jar=fabric-server-mc.GameVersion-loader.LoaderVersion-launcher.LauncherVersion.jar' >> /opt/mscs/worlds/fabric-example/mscs.properties |
| 50 | + echo 'mscs-server-url=' >> /opt/mscs/worlds/fabric-example/mscs.properties |
| 51 | + ``` |
| 52 | +5. Accept the EULA. |
| 53 | + ``` |
| 54 | + echo 'eula=true' > /opt/mscs/worlds/fabric-example/eula.txt |
| 55 | + ``` |
| 56 | +6. (optional) Customize your world's settings in `mscs.properties` and `server.properties`. |
| 57 | + See [Adjusting World & Server Properties](/docs/mscs/adjusting-world-server-properties) to learn about MSCS-specific settings. |
| 58 | + The Minecraft Wiki documents [the settings that are configurable in `server.properties`][server.properties]. |
| 59 | +7. Start the server. |
| 60 | + ``` |
| 61 | + mscs start fabric-example |
| 62 | + ``` |
| 63 | + |
| 64 | +## Updating |
| 65 | +To update, repeat steps 1 and 2 above. |
| 66 | +Then, change `mscs-server-jar` in your world's `mscs.properties` to the updated version's filename. |
| 67 | +Finally, restart your world. |
| 68 | + |
| 69 | +[fabric]: https://fabricmc.net |
| 70 | +[launcher]: https://fabricmc.net/use/server/ |
| 71 | +[installer]: https://fabricmc.net/wiki/player:tutorials:install_server |
| 72 | +[server.properties]: https://minecraft.fandom.com/wiki/Server.properties |
0 commit comments