How to Set up a Fabric Minecraft Server (1.20+)

This guide will let you know how to download and set up your own fabric MC 1.20 server. You first have to download Fabric 1.20 server, allocate more RAM to the Fabric 1.20 server and then accept EULA & setup server files. After that, Install Fabric API and join the server.

Download Fabric 1.20 server

In this section, we will take you through the steps to download Fabric 1.20 server. For operating systems other than Windows, you need to click on “Download Universal jar”.

  • First, you will need to open up your web browser to download Fabric 1.20.
  • Once you reach the web page, look for the Download button. If you are using a Windows computer, click on the “Download for Windows” button.
  • If you are using a different operating system, click on “Download Universal jar“.
  • After the download of Fabric 1.20 completes, locate the downloaded file on your computer and open it. Click on the “Server” tab to select it.
    In the “Server” tab, you will find a dropdown menu with available Minecraft versions.
  • You have to select “Minecraft 1.20” from the list.
  • Next, click on the three dots (…) button next to the installation location.
    The new window that opens will allow you to navigate through your computer’s files and directories.
  • Navigate to your Desktop by clicking on it and create a new folder specifically for the Fabric 1.20 installation.
  • Click on the “New Folder” button at the top of the window to create a folder and name this folder “1.20 Fabric“. After naming the folder, select it as the installation location.
  • After that, hit the Install button and then click on Download Server Jar.

Give Fabric 1.20 server more RAM

This section describes how to allocate more RAM to the Fabric 1.20 server. This setting is important for the server’s performance, especially if your PC has more RAM available.

  • Look for an option that allows you to allocate more RAM to the server.
  • Increase the amount of dedicated RAM for the server. If the current value is set to 2GB, increase it to a higher value based on the available RAM on your PC.
  • Ensure that you only allocate the amount of RAM that you can spare without affecting the overall performance of your computer.
  • Once you have adjusted the RAM allocation, click on “Generate” and hit the Done button.
    It will create your server launcher.
  • Next, open the “1.20 Fabricfolder that you previously created on your desktop.
    This folder should contain all the downloaded files related to Fabric 1.20.
  • Inside the “1.20 Fabric” folder, look for a file named “start.bat“. Double-click on the “start.bat” file to run it.
    This action will initiate the server startup process.
  • If you encounter an error message while trying to start the server, then you need to install Java and then try to run the server.

It’ll say “Fail to load eula.txt

Accept EULA & Setup server files

This section will take you through the steps to accept the End User License Agreement (EULA) and set up server files.

When it says “Fail to load eula.txt“, the message will prompt you to press any key to continue.

  • You have to press any key on your keyboard to proceed. After pressing a key, locate the “eula.txt” file.
  • Right-click on the “eula.txt” file and select “Open With” from the context menu. Choose “Notepad” or any other text editor of your preference to open the file.
  • Look for the line that reads “eula=false” and change the value from “false” to “true“.
    It will accept the End User License Agreement (EULA).

Install Fabric API

In this section, we will take you through the steps to download Fabric API. After downloading, drag & drop the Fabric API file from the “Downloads” folder into the “Mods” folder.

  • The next thing you will need to do is download the latest Fabric API version.
  • On the webpage, click on the “Files” tab to access the files.
  • Look for the version labelled “1.20” among the listed versions of Fabric API and then click on it to select it.
  • After selecting the desired version, hit the “Download” button to download it.
    By default, it will be saved in the Downloads folder
  • After that, open the “1.20 Fabric” folder on your desktop and navigate to the “Mods” folder inside it.
  • Open a new File Explorer and navigate to the “Downloads” folder on your computer. Drag the Fabric API file from the “Downloads” folder and drop it into the “Mods” folder.

Join Fabric 1.20 server

This section will take you through the steps to join the Fabric 1.20 server. By following the steps below, you will be able to join the server and also add your friends to your server.

  • Double-click on the “start.batfile to launch the server.
    This will initiate the startup process for your server. Once it is ready, it will be able to accept connections from players.
  • Open the Minecraft launcher on your computer and click on the version selection dropdown.
  • Scroll through the list and select “Fabric Loader 1.20“. After selecting the Fabric Loader version, hit the “Play” button in the Minecraft launcher.
  • After Minecraft launches, navigate to the “Multiplayer” tab. Checkmark the checkbox there and hit the Proceed button to continue.
  • After proceeding, click on the “Add Server” button.
    A new window will appear with a “Server Address” box.
  • In the “Server Addressbox, enter your local host address as the server address. After that, click on the “Done” button to save the server information.

Now you can click on your brand new server to join it.

  • After that, go to the console and input the command “op (your username)” without the parentheses and press Enter to execute the command.
    This command will grant you operator privileges on the server.
  • To allow other people to join your server on the same local network, you need to provide them with your local PC’s IP address.
  • Open the Start menu on your computer and open the Command Prompt application.
  • Once the Command Prompt opens, type the command “ipconfig” and press Enter.
    This command will display network configuration information.
  • Look for your active network connection in the Command Prompt output and find your local IP address.
  • You need to provide this address to your friends and they need to enter it into their game to join your server.

Allow Fabric 1.20 Server through Firewall

This section describes how to allow Fabric 1.20 Server through Firewall. The step involves running Powershell or Terminal as administrator and inputting the commands in it.

  • To allow Fabric 1.20 Server through Firewall, open the Start menu on your computer and search for “Powershell“. Right-click on “Powershell” and select “Run as administrator” from the context menu.
    This will open Powershell with administrative privileges.
  • If you have a terminal other than Powershell, open it as an administrator instead.
  • Once the terminal or Powershell opens, verify that “Powershell” is written on the first line.
  • If not, click on the drop-down menu located at the top of the window and choose “Powershell” from the available options.
  • In the terminal or Powershell window, input the following four commands one by one. Press Enter after each command to execute it.
New-NetFirewallRule -DisplayName “Minecraft Server” -Direction Inbound -LocalPort 25565 -Protocol TCP -Action Allow
New-NetFirewallRule -DisplayName “Minecraft Server” -Direction Inbound -LocalPort 25565 -Protocol UDP -Action Allow
New-NetFirewallRule -DisplayName “Minecraft Server” -Direction Outbound -LocalPort 25565 -Protocol TCP -Action Allow
New-NetFirewallRule -DisplayName “Minecraft Server” -Direction Outbound -LocalPort 25565 -Protocol
  • After that, hit the Enter button a few times.
    The commands will add firewall rules to allow incoming connections for Fabric Server, both TCP and UDP protocol

Port forwarding (global friends joining server)

This section describes how to set up port forwarding to allow players from outside your local network to connect to your Minecraft server.

  • If you want to allow players from outside your local network to connect to your Minecraft server, you need to set up port forwarding.
    When someone tries to connect to your router from outside your local network, the router receives the connection request. The incoming connection request specifies a particular port, in this case, Port 25565, which is the default port for Minecraft servers.
  • The router needs to determine where to direct the incoming traffic for Port 25565. The router forwards the incoming connection just as requested, directing it to your computer.
    Once the incoming connection reaches your computer, it establishes a connection with your Minecraft server.

If there are multiple routers between the incoming connection and your computer, the traffic will pass through each router in sequence. Each router along the path will perform its own port forwarding and direct the traffic to the next router until it reaches your computer.

Finally, the traffic reaches your computer, and the player trying to connect from outside your local network is successfully connected to your Minecraft server.

Saving and exiting Fabric 1.20 server

In this section, we will take you through the steps to save and exit Fabric 1.20 server.

  • To save your current progress in the server, you need to input the “save-all” command in the console and hit enter on your keyboard.
    It will save everything in your current world.
  • Type “stop and hit enter to close your world.
    While your server is shut down, players won’t be able to connect to play with you.