
CoreLib
A library mod for data handling.
About this Mod
CoreLib is a library mod for data handling.
Features
Extra codecs
CoreLib comes with new codecs for classes including, but not limited to:
- BigInteger
- BigDecimal
- GameProfile
- OptionalLong
- RegistryKey
- TagKey
Automatic codec generation
CoreLib can automatically resolve codecs for given classes, including generic classes with type parameters.
It can also dynamically create new codecs for any enum, as well almost any record.
CoreLib can resolve a codec for a record as long as it can also resolve a codec for all the record's components.
Automatic data saving / loading
CoreLib also features a SaveData<T> class, which handles saving and loading data to and from the disk. Certain classes that extend from this class automatically save and load your data. One is meant for data attached to an instance (modpack), while the other is meant for data attached to each world (save file).
Automatic data synchronisation
CoreLib includes a SyncedData<T> class, for automatically synchronising data to client through a utility class called Synchronisation.
CoreLib includes SaveData<T> classes that implement this interface and are automatically synced to all clients.
Available Versions
How to Install CoreLib 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.8).
Install Mod
Open the mod browser in the dashboard and search for "CoreLib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.8
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
CoreLib 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.8). You can switch loaders with one click in the panel.
Is CoreLib compatible with fabric and neoforge?
CoreLib officially supports fabric, neoforge for Minecraft 1.21.8. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with CoreLib – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if CoreLib 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 CoreLib with just one click on your server.