Note: Scripts are provided for Windows (
.bat) and Linux (.sh). You do not need WSL for the Windows scripts.
- Java 21: Download and install OpenJDK 21. Ensure
javais in your PATH. - curl: Download curl for Windows and ensure it is in your PATH.
- PowerShell: Needed for automatic PaperMC version/build detection (default on modern Windows).
- Git (optional): Download Git for Windows if you want to clone this repository.
-
Download or Clone the Repository:
- Download from GitHub as a ZIP and extract, or use Git Bash:
git clone https://github.com/entity12208/Fabric-Server.git cd Fabric-Server
- Download from GitHub as a ZIP and extract, or use Git Bash:
-
Run the Setup Script:
- Double-click or execute in Command Prompt:
setup-server.bat
- Follow the on-screen prompt to select Fabric, Forge, or PaperMC.
- The script will download the chosen server, mods, or plugins (edit URLs in the script as needed).
- Double-click or execute in Command Prompt:
- Double-click or run in Command Prompt:
start-server.bat
- The script auto-detects the server type and starts the correct
.jar.
- Double-click or run in Command Prompt:
update-mods.bat
- The script will download updated mods/plugins based on URLs you set in the script.
- Backups: Manually copy the
worldfolder or create a backup batch script. - Whitelist: Edit
whitelist.jsonwith player usernames/UUIDs as described in the Linux guide.
- Fabric/Forge: Edit the
MODSvariable insetup-server.batandupdate-mods.batto include your desired mod URLs. - PaperMC: Edit the
PLUGINSvariable inupdate-mods.batfor plugin URLs, or manually place.jarfiles in thepluginsfolder.
- Server Crashes: Check the
logs/latest.logfile for errors. - Port Forwarding: Make sure port
25565is open in both your Windows firewall and router. - Java Issues: Ensure Java is installed and the
javacommand works from your Command Prompt. - curl Not Found: Make sure
curl.exeis in your PATH. You can test by runningcurl --versionin Command Prompt.
- These scripts are compatible with Windows 10/11.
- For advanced automation, you can expand or chain these batch files.
- For best compatibility and performance, run your server from a dedicated folder (not from Desktop/Downloads).
Enjoy your Minecraft server on Windows!