Overview
Fabric offers several advantages for modded Minecraft servers:- Quick Updates: Usually available for new Minecraft versions within hours
- Lightweight: Minimal overhead compared to other modding platforms
- Modern Architecture: Clean API design and good performance
- Growing Ecosystem: Large collection of optimization and content mods
- Active Community: Regular updates and community support
Fabric mods are NOT compatible with Forge mods. If you need to run both types, consider hybrid servers.
Configuration
Basic Setup
Version Selection
Automatic Latest Versions
By default, Fabric installs the latest launcher and loader for your Minecraft version:- Downloads the latest Fabric server launcher
- Installs the latest Fabric loader
- Uses the specified Minecraft version (or latest if omitted)
Specific Loader Version
Select a specific Fabric loader version:Specific Launcher Version
Select a specific Fabric launcher version:Environment Variables
| Variable | Default | Description |
|---|---|---|
TYPE | - | Set to FABRIC |
VERSION | latest | Minecraft version (e.g., 1.20.4) |
FABRIC_LOADER_VERSION | latest | Fabric loader version |
FABRIC_LAUNCHER_VERSION | latest | Fabric launcher version |
FABRIC_LAUNCHER | - | Path to custom launcher JAR (relative to /data) |
FABRIC_LAUNCHER_URL | - | URL to download custom launcher |
FABRIC_META_BASE_URL | https://meta.fabricmc.net | Fabric meta API base URL |
FABRIC_FORCE_REINSTALL | false | Force reinstall Fabric launcher |
Installing Fabric API
Most Fabric mods require the Fabric API mod to be installed. The easiest way to install it is using Modrinth:Fabric API is a library mod that provides essential hooks for other Fabric mods. Almost all Fabric mods depend on it.
Mod Management
Manual Mod Installation
Place Fabric mods (.jar files) in the mods directory:
Add mod files
Download Fabric mods from Modrinth or CurseForge and place
.jar files in ./mods/.Auto-Download from Modrinth
Automatically download and install Fabric mods from Modrinth:Auto-Download from CurseForge
Download mods from CurseForge:Popular Fabric Mods
Performance Optimization
Server Administration
Quality of Life
Advanced Configuration
Custom Fabric Launcher
Use a custom Fabric launcher from a URL:/data):
Custom Meta API
Use a custom or mirrored Fabric meta API:Force Reinstall
If the Fabric launcher becomes corrupted:Complete Production Example
docker-compose.yml
Mod Configuration
Config Files
Mod configurations are stored in theconfig directory:
./config/lithium.properties./config/phosphor.properties./config/carpet.conf
Server-Side vs Client-Side Mods
Server-Side Mods (work on server only):- Lithium (performance)
- Phosphor (lighting)
- Carpet (technical features)
- FerriteCore (memory)
- Sodium (rendering)
- Iris (shaders)
- Mod Menu
- Fabric API
- Many content mods
Only install server-side or universal mods on your server. Client-side rendering mods won’t work on servers.
Performance Tuning
Recommended Mods for Performance
Memory Allocation
| Players | Mods | Recommended RAM |
|---|---|---|
| 1-10 | Light | 4GB |
| 10-20 | Medium | 6GB |
| 20-50 | Medium | 8GB |
| 50+ | Heavy | 12GB+ |
Troubleshooting
Corrupted Launcher
Force reinstall the Fabric launcher:Mod Compatibility Issues
- Check mod requirements on Modrinth/CurseForge
- Verify Minecraft version compatibility
- Ensure Fabric API is installed
- Check server logs for specific errors
Version Mismatch
If mods fail to load:- Verify mod supports your Minecraft version
- Check Fabric loader version compatibility
- Update mods to compatible versions
Migration Guide
From Vanilla to Fabric
Next Steps
Modrinth Integration
Auto-download mods from Modrinth
CurseForge Mods
Install CurseForge modpacks
Quilt Server
Try Quilt, a Fabric fork with enhancements
Hybrid Servers
Run Fabric mods with plugins