
Brick Lib API
Providing a universal API for developing Minecraft mods across multiple game versions and loaders, featuring components such as event buses, registration systems, networking, configuration files, and data generators.
About this Mod
Brick Lib API is part of Brick Lib, designed to provide developers with the most basic functionalities for cross-platform and cross-version Minecraft mod development.
Brick Lib API offers the following features:
- Added a universal event API that supports event registration, triggering, and cancellation.
- Added a universal registration API that supports both vanilla registries and Brick Lib's additional registries (Note: Lower versions will include higher version registries after compatibility updates, but these are only placeholders, and the registered object type is Object!).
- Added a universal network API that supports login packets from the server to the client and in-game regular network packets. It also allows sending strings directly between both ends and monitoring sending/receiving via events.
- Added a universal configuration file API, using Forge-style configuration files for configuration management.
- Supports universal data generators, update checkers, and client-side commands.
- Provides support for custom JSON functions, allowing registered handlers to be called within JSON and return values.
- Added the ResourceID class for partial replacement of the ResourceLocation class
Available Versions
How to Install Brick Lib API on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.5).
Install Mod
Open the mod browser in the dashboard and search for "Brick Lib API". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.5, 1.21.4, 1.21.3 (+8 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Brick Lib API server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.5). You can switch loaders with one click in the panel.
Is Brick Lib API compatible with fabric and forge and neoforge?
Brick Lib API officially supports fabric, forge, neoforge for Minecraft 1.21.5, 1.21.4, 1.21.3. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Brick Lib API – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Brick Lib API consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Brick Lib API with just one click on your server.