Setting Up SpongeMixins on a Multiplayer Server
When setting up a multiplayer server for an older Forge modpack, players often wonder which background libraries need to be copied over to the server files and which ones are only for the client.
Client vs. Server Placement
SpongeMixins is a core shared library that allows other mods to load and apply their code changes. Because mixins are used by both client-side mods and server-side gameplay mods, SpongeMixins should generally be present wherever a dependent mod is installed.
1. Open the mods folder of your local Minecraft client and check which mods depend on SpongeMixins.
2. If your server runs any mods that require mixins to load, copy the SpongeMixins file into the server's mods folder as well.
3. Keep the library in both the client and server mods folders when running a full modpack to ensure both sides load their dependent mods smoothly.
What Happens If It Is Missing on the Server
If a server mod relies on SpongeMixins to provide SpongePowered Mixin tools and the library is missing from the server's mods folder, the server will fail during startup before the world even finishes loading. Adding the shared library back into the server's mods folder resolves the missing dependency immediately.