When setting up a multiplayer world with a custom mod list, knowing where to place library mods prevents connection mismatches and server crashes. Because ForgedAPI handles both game logic and visual rendering, where you place it depends on the mods that require it.
Understanding Client and Server Tasks
ForgedAPI is divided into two main roles inside your game:
- Event Tracking: It adds the Fabric Events Lifecycle to track and run game events, along with core base tools. Because game events affect world behavior on a server, any server running a mod that uses these event hooks must have ForgedAPI installed.
- Visual Rendering: It includes the Fabric Renderer API, Indigo, and Fabric Rendering features for custom block and item visuals. Visual rendering is handled entirely by the player's local game client.
Recommended Multiplayer Setup
1. Check your server's mods folder for any ported mods that depend on ForgedAPI.
2. Place ForgedAPI in the server's mods folder so the Fabric Events Lifecycle and core base tools are available to run server-side game events.
3. Place ForgedAPI in every connecting player's local mods folder as well. This ensures their client has the Fabric Rendering features needed to display custom block and item visuals without crashing.