Server Properties
Theserver.properties file controls core Minecraft server behavior. Modrinth provides a user-friendly interface to edit these settings.
Accessing Server Properties
Navigate to Options
Browse settings
Make changes
- Toggle switches for boolean settings
- Number inputs for numeric values
- Text inputs for strings
- Dropdowns for predefined options
Save and restart
Key Server Properties
World Settings
level-name
level-name
level-seed
level-seed
level-type
level-type
default- Standard world generationflat- Flat/superflat worldlarge_biomes- Biomes 16x largeramplified- Extreme terrainsingle_biome_surface- One biome only
spawn-protection
spawn-protection
max-world-size
max-world-size
Gameplay Settings
difficulty
difficulty
peaceful- No hostile mobs, health regenerateseasy- Reduced mob damagenormal- Standard difficultyhard- Increased mob damage and features
gamemode
gamemode
survival- Gather resources, health/hungercreative- Unlimited resources, flyingadventure- Survival without block breakingspectator- Fly through blocks, observe
hardcore
hardcore
pvp
pvp
Server Behavior
max-players
max-players
view-distance
view-distance
simulation-distance
simulation-distance
max-tick-time
max-tick-time
Network and Performance
network-compression-threshold
network-compression-threshold
entity-broadcast-range-percentage
entity-broadcast-range-percentage
Searching Properties
Use the search box to quickly find settings:Startup Configuration
Java Version
Select which Java version your server runs on:Java 8
Java 8
- Legacy mod support
- Compatible with older plugins
- Less memory efficient
Java 11
Java 11
- Good balance of compatibility
- Better performance than Java 8
Java 17
Java 17
- Required for 1.18+
- Improved garbage collection
- Better memory management
Java 21
Java 21
- Required for 1.20.5+
- Latest performance improvements
- Best garbage collection
Java Runtime
Choose your Java runtime environment:Startup Command
Advanced users can modify the startup invocation:Common JVM Flags
-Xms / -Xmx
-XX:+UseG1GC
-XX:MaxGCPauseMillis
-XX:+UseZGC
Restoring Default Startup
If you encounter issues with custom startup commands:- Go to Options > Startup
- Click Restore default command
- Save changes
- Restart server
Network Configuration
Modrinth Subdomain
Every server gets a free subdomain atmodrinth.gg:
Choose your subdomain
Check availability
- At least 5 characters long
- Only letters, numbers, and hyphens
- Unique across all Modrinth servers
Save changes
Custom Domain Setup
You can use your own domain to connect to your server:Get your server IP
Add DNS records
Wait for propagation
Test connection
play.yourdomain.com from Minecraft.Port Allocations
Modrinth servers include one primary port (default: 25565) for Minecraft connections.Adding Additional Ports
Some mods require extra ports (e.g., Dynmap, voice chat mods):Go to Network settings
Create allocation
Name the allocation
Get port number
Configure your mod
Managing Allocations
For each allocation, you can:- Copy connection info - Quick copy IP:port to clipboard
- Rename - Update the allocation name
- Delete - Remove allocations you no longer need
DNS Record Export
For users with custom domains:- Enter your domain in the Generated DNS records section
- Click Export DNS records
- Download the text file
- Import into your DNS provider
Environment Variables
Modrinth automatically configures environment variables for your server. These are set based on your plan and configuration:Resource Limits
Java Configuration
Server Identification
Player Permissions
While Modrinth doesn’t directly manage in-game permissions, you can configure them through:Operator Permissions
Grant operator status via console:- Level 1: Bypass spawn protection
- Level 2: Use cheat commands and command blocks
- Level 3: Use player management commands
- Level 4: Use all commands including /stop
Whitelist
Restrict server access to specific players:whitelist.json via Files tab for bulk management.
Permission Plugins
For advanced permissions, install a plugin:- LuckPerms - Modern, feature-rich
- PermissionsEx - Traditional, widely supported
- GroupManager - Simple group-based permissions
Configuration Best Practices
Backup first
Change gradually
Test thoroughly
Document changes
Performance Optimization
For better performance:- Reduce view distance to 8-10 chunks
- Lower simulation distance to match view distance
- Enable G1GC in startup command (Java 17+)
- Install optimization mods:
- Lithium (Fabric)
- Phosphor (Fabric)
- Starlight (Fabric/Forge)
- FerriteCore (Fabric/Forge)
Troubleshooting Configuration
Server Won’t Start After Changes
Check recent changes
Review console logs
Restore backup
Reset to defaults
Invalid Property Values
Server rejects changes
Server rejects changes
Changes don't apply
Changes don't apply
- Clicked Save Changes
- Restarted the server
- Waited for full startup
Network Issues
Custom domain not working
Custom domain not working
- Verify DNS records are correct
- Wait for DNS propagation (up to 60 minutes)
- Test with IP:port to confirm server is running
- Use DNS checker to verify propagation
Port allocation fails
Port allocation fails
