User Tools

Site Tools


tutorial:installing_minecraft_fabric_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:installing_minecraft_fabric_server [2019/06/20 18:30] calloattitutorial:installing_minecraft_fabric_server [2021/06/12 18:18] – Fixed Java 8 information still present phoenix_iv
Line 1: Line 1:
 ====== Installing a Minecraft/Fabric Server ====== ====== Installing a Minecraft/Fabric Server ======
  
-==== STEP 0: Create a MultiMC Minecraft/Fabric single player instance ====+==== STEP 1: Create a MultiMC Minecraft/Fabric single player instance ====
  
 Before setting up a Minecraft server with Fabric Mod loader, it may be a good idea to install Fabric in a MultiMc instance, download and test all the mods you want in the server in that instance, and once you have everything set up and working, only then set up the server. You can do that here: [[tutorial:install_with_multimc|Installing Fabric using the MultiMC launcher]] Before setting up a Minecraft server with Fabric Mod loader, it may be a good idea to install Fabric in a MultiMc instance, download and test all the mods you want in the server in that instance, and once you have everything set up and working, only then set up the server. You can do that here: [[tutorial:install_with_multimc|Installing Fabric using the MultiMC launcher]]
- 
-==== STEP 1: Downloading the files you will need ==== 
- 
- 
-Create a folder in any location in your computer that will be used by the server, for example: 
- 
-''c:\mc-server'' 
- 
-The name and location of the server folder used in this tutorial is ''c:\mc-server''. You can use any other location and name, and when you see ''c:\mc-server'' used in this tutorial, replace it with folder name you created. 
- 
-Go to https://fabricmc.net/use/ and select the “Server” option, then download the Windows exe installer or the Universal JAR installer and save it in the folder you created, for example: 
- 
-''c:\mc-server\fabric-installer-0.4.2.27.jar'' 
- 
-If you are installing a server with the latest Minecraft version, go to https://www.minecraft.net/en-us/download/server/ and download the Minecraft server jar file. You must save it as ''server.jar'' in the folder you created, for example: 
- 
-''c:\mc-server\server.jar'' 
- 
-If you downloaded the server.jar file from **minecraft.net** proceed to **STEP 2** 
- 
-Alternatively, or if you want to download the Minecraft server jar for an older version of Minecraft, open the Minecraft launcher and follow the steps outlined in the following images. Remember to save the file in the folder you created, for example: 
- 
-''c:\mc-server\server.jar'' 
- 
-1.Click on the hamburger button to the right. 
- 
-{{:wiki:install_server_01.jpg?direct|}} 
- 
-2.Click on "Launch options" 
- 
-{{:wiki:install_server_02.jpg?direct|}} 
- 
-3.Click on "Add new" 
- 
-{{:wiki:install_server_03.jpg?direct|}} 
- 
-4.Select the desired version, click on "Download server", download the server.jar file in the server folder you created. 
- 
-{{:wiki:install_server_04.jpg?direct|}} 
- 
-5.Click on "Cancel" 
- 
-{{:wiki:install_server_05.jpg?direct|}} 
  
  
 +----
 ==== STEP 2: Checking if Java is installed ==== ==== STEP 2: Checking if Java is installed ====
  
-A Minecraft server requires the Java Runtime Environment. To check it java is installed in your computer, open the ''Run'' dialog by using the ''Windows+R'' hotkey. Enter ''cmd'' in the textbox and click ''OK'' This will open a command window.+A Minecraft server requires the Java Runtime Environment. To check if java is installed in your computer, open the ''Run'' dialog by using the ''Windows+R'' hotkey. Enter ''cmd'' in the textbox and click ''OK'' This will open a command window.
  
 {{:wiki:install_server_06.jpg?direct|}} {{:wiki:install_server_06.jpg?direct|}}
Line 63: Line 21:
 {{:wiki:install_server_08.jpg?direct|}} {{:wiki:install_server_08.jpg?direct|}}
  
 +''Java 16'' is required for ''Minecraft 1.17''.
 You may skip **STEP 3** if you don't want to update or replace the Java version installed. You may skip **STEP 3** if you don't want to update or replace the Java version installed.
  
Line 70: Line 29:
  
  
-==== STEP 3Optional: Installing JAVA ====+ 
 +---- 
 +==== STEP 3 (Optional): Installing JAVA ==== 
 + 
 +====== >>>>>> UPDATE 2021-06-09: JAVA 16 is required for MINECRAFT 1.17 <<<<<< ====== 
  
 If in STEP 2 you determined that you don't have Java installed, you will need to install it.  If in STEP 2 you determined that you don't have Java installed, you will need to install it. 
  
-If you already have at least ''Java 8'' installed you can skip this step.+If you already have at least ''Java 16'' installed you can skip this step.
  
-To download the Java installer, go [[https://adoptopenjdk.net/releases.html|here]]+To download Java, go [[https://adoptopenjdk.net/index.html?variant=openjdk16&jvmVariant=hotspot|here]]. You can either choose the default suggestion for Java 16 or choose to install a smaller variant by choosing [[https://adoptopenjdk.net/releases.html?variant=openjdk16&jvmVariant=hotspot|"Other platforms"]], picking your operating system and downloading the "''JRE''" version (.msi).
  
-{{:wiki:install_server_10.jpg?direct&600|}} 
  
-Pick Version 8 of the JRE, and the HotSpot JVM, download the installer for your operating system and install JAVA. 
  
-{{:wiki:install_server_10a.jpg?direct&600|}} +----
- +
-NOTE: If you have other instances of Minecraft using another Mod Loader that only works with Java 8, you will need to pick Java version 8 for the other Mod Loader to work in those other instances.+
 ==== STEP 4: Install Fabric in the Server Folder ==== ==== STEP 4: Install Fabric in the Server Folder ====
  
-Click on the Fabric Installer jar/exe you downloaded in STEP 1 to run the installerSelect the ''Mappings Version'' and ''Loader Version'' that matches what you installed in **STEP 0**. If you skipped **STEP 0**, select the desired versions.+Go to https://fabricmc.net/use/ and select the “Server” option, then download the Windows exe installer or the Universal JAR installer.
  
-Verify that ''Select Install Location'' points to the server folder you created in **STEP 1**. Click ''Install''+Run the Fabric Installer jar/exe you downloaded. Select the ''Server'' tab. Select the ''Minecraft Version'' and  the ''Loader Version''
  
-{{:wiki:install_server_11.jpg?direct|}}+In ''Select Install Location'' enter the name of the folder where you want the server to be installed. If the folder does not exist the installer will create it.  
 + 
 +Click ''Install'' 
 + 
 +{{:wiki:install_server_01.jpg?direct|}}
  
 The installation process may take some time, when the install is done, you will see this: The installation process may take some time, when the install is done, you will see this:
  
-{{:wiki:install_server_12.jpg?direct|}}+{{:wiki:install_server_02.jpg?direct|}} 
 + 
 +Click on ''Download server jar'' to download the Minecraft server.jar file 
 + 
 +Click on ''Generate'' to generate ''start.bat'' and ''start.sh'' You can use those batch files to start the server. 
 + 
 +{{:wiki:install_server_03.jpg?direct|}}
  
 You may now close the Fabric Installer. You may now close the Fabric Installer.
Line 101: Line 71:
 In the Command Window you opened in **STEP 2** type: In the Command Window you opened in **STEP 2** type:
  
-''cd c:\mc-server [ENTER]''+''%%cd "c:\mc-server[ENTER]%%'' 
 + 
 + 
 +---- 
 +//Note: If the server path is in another drive, first switch to that drive, for example if the server path is in the D: drive, enter this at the command prompt:// 
 + 
 +''d:  [ENTER]'' 
 +---- 
  
 The command prompt should change to: The command prompt should change to:
Line 111: Line 89:
 ''echo eula=true>eula.txt [ENTER]'' ''echo eula=true>eula.txt [ENTER]''
  
 +
 +----
 ==== STEP 5: Starting the server ==== ==== STEP 5: Starting the server ====
 +
 +**NOTE:** The installer now has a button to generate the batch files for you, so the following instructions may be outdated.
  
 **NOTE:** If you are upgrading Fabric in this server, delete the ''.fabric'' folder inside the server folder if it exists. If you are also upgrading the Minecraft version, remember to download the correct ''server.jar'' as explained before. **NOTE:** If you are upgrading Fabric in this server, delete the ''.fabric'' folder inside the server folder if it exists. If you are also upgrading the Minecraft version, remember to download the correct ''server.jar'' as explained before.
Line 127: Line 109:
 {{:wiki:install_server_14.jpg?direct&600|}} {{:wiki:install_server_14.jpg?direct&600|}}
  
-Now that the server is up and running, you can stop it and create a batch file that starts the server. Type+Now that the server is up and running, you can stop it and create/edit a batch file that starts the server. Type
  
 ''stop [ENTER]'' ''stop [ENTER]''
Line 133: Line 115:
 in the command window to stop the server. Then type the following: in the command window to stop the server. Then type the following:
  
-''echo java -jar fabric-server-launch.jar nogui>server.cmd [ENTER]''+''echo java -jar fabric-server-launch.jar nogui>start.bat [ENTER]''
  
-''echo pause>>start.cmd [ENTER]''+If you want to specify how much RAM to allocate to the server, type this instead of line above:
  
-This will create a ''c:\mc-server\start.cmd'' file that you can use to start the server by double clicking it.+ 
 +''echo java -Xms1024m -Xmx2048m -jar fabric-server-launch.jar nogui>start.bat [ENTER]'' 
 + 
 +Use the values you want for Xms and Xmx 
 + 
 +Now type this: 
 + 
 +''echo pause>>start.cmd [ENTER]'' (that's two ">", not ">>"
 + 
 +This will create a ''c:\mc-server\start.bat'' file that you can use to start the server by double clicking it.
  
 Now you can add mods to the ''c:\mc-server\mods'' folder. The easiest way to do this is to copy the mods you have in the MultiMC instance you created to test the mods to include in the server. Now you can add mods to the ''c:\mc-server\mods'' folder. The easiest way to do this is to copy the mods you have in the MultiMC instance you created to test the mods to include in the server.
Line 149: Line 140:
 After copying the mod files to the server mods folder, you may also want to copy the MultiMC instance ''config'' folder files to the server ''config'' folder. After copying the mod files to the server mods folder, you may also want to copy the MultiMC instance ''config'' folder files to the server ''config'' folder.
  
-Now restart the server by double clicking the ''start.cmd'' file.+Now restart the server by double clicking the ''start.bat'' file. 
  
 +----
 ==== NOTES ==== ==== NOTES ====
  
tutorial/installing_minecraft_fabric_server.txt · Last modified: 2021/06/12 19:52 by 127.0.0.1