Adding Mods
Learn how to add and manage NeoForge mods on your Magma server
Adding NeoForge Mods to Magma
One of Magma's key features is its ability to run NeoForge mods alongside Bukkit plugins. This guide will walk you through the process of adding and managing mods on your Magma server.
Understanding Mod Compatibility
Before adding mods, it's important to understand:
- Magma works with NeoForge mods (not Fabric mods)
- Mods must match your Minecraft and NeoForge version
- Some mods may conflict with certain Bukkit plugins
Finding Compatible Mods
Good sources for NeoForge mods include:
Always check that the mod:
- Supports your exact Minecraft version
- Is built for NeoForge (not Fabric)
- Has server-side functionality (if you want it to work on the server)
Installing Mods
Basic Installation
- Download the mod's
.jar
file - Stop your Magma server if it's running
- Place the
.jar
file in themods
folder in your server directory - Start your server
Example terminal commands:
Client-Side vs. Server-Side Mods
- Server-Side Mods: These run on the server and typically affect gameplay mechanics, add new blocks/items, or modify world generation.
- Client-Side Mods: These run on players' computers and typically affect visuals, audio, or provide information overlays.
- Both-Side Mods: Some mods have components that run on both server and client.
When adding mods to your Magma server:
- Server-side mods should be installed on your server
- Client-side mods need to be installed on players' clients
- Both-side mods need installation on both server and clients
Mod Configuration
Most mods create configuration files in the config
folder when first loaded. To configure a mod:
- Start your server with the mod installed
- Let the server fully load to generate config files
- Stop the server
- Edit the mod's configuration file(s) in the
config
directory - Restart the server
Common Config File Formats
.toml
- TOML format files (common in newer mods).cfg
- Standard configuration files.json
- JSON format configuration.properties
- Simple key-value configuration
Example: Editing a Mod Config
Managing Mod Dependencies
Many mods require other mods to function. These are called dependencies.
Identifying Dependencies
When a mod fails to load due to missing dependencies, check the server logs for messages like:
Installing Dependencies
- Find and download the required dependency
- Place it in your
mods
folder - Restart the server
Library Mods
Some mods aren't full mods themselves but libraries that other mods use. Common libraries include:
- Collective
- Architectury API
- Kotlin for Forge
- Cloth Config API
Always include these if they're required by your mods.
Updating Mods
To update mods:
- Stop your server
- Backup your server files (particularly the
mods
andconfig
folders) - Remove the old mod
.jar
file - Add the new mod
.jar
file - Start your server
- Check logs for any issues
Mod Version Compatibility
When updating:
- Config formats may change between versions
- World data may need conversion
- Dependencies may need updating
Always read the mod's update notes before upgrading.
Troubleshooting Common Issues
Mod Not Loading
If a mod isn't loading, check:
- Server logs for error messages
- If the mod is for the correct Minecraft version
- If all required dependencies are installed
- If the mod is compatible with NeoForge
Server Crashes on Startup
If your server crashes when starting with a new mod:
- Check logs in the
logs
directory - Remove the mod and see if the server starts
- Try the mod by itself (with just dependencies) to isolate conflicts
Mod Conflicts with Plugins
If a mod conflicts with a plugin:
- Identify which mod and plugin are conflicting through logs
- Check if configuration changes can resolve the conflict
- Look for alternative mods or plugins that provide similar functionality
- Check the mod and plugin's documentation for known issues
Advanced: Creating Mod Packs
For servers with many mods, consider creating a proper modpack:
- Create a manifest of all mods with versions
- Store configurations in version control
- Create installation instructions or scripts
- Consider using a modpack manager like CurseForge or MultiMC
Next Steps
After adding mods to your server, you might want to:
- Add plugins to enhance your server
- Optimize your server for better performance with mods
- Explore mod and plugin integration