
CodeLib
A Minecraft Fabric API/Library that provides useful features.
Screenshots

About this Mod

yeahh!! this is the fabric library mod that i sometimes use in my projects.
did i mention it has 0, yes zero dependencies?
Features
- read the wiki
- more coming soon
How to use
Add the following to your gradle.properties
# https://github.com/not-coded/codelib
codelib_version=...+minecraft_version
# Example
codelib_version=1.0.1+1.20
And build.gradle
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modApi "maven.modrinth:codelib:${project.codelib_version}"
// you can include it directly if you want you don't want your users to download it
include "maven.modrinth:codelib:${project.codelib_version}"
}
Available Versions
How to Install CodeLib 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.20.2).
Install Mod
Open the mod browser in the dashboard and search for "CodeLib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.20.2, 1.20.1, 1.20
Server-side
~ OptionalRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
CodeLib 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.20.2). You can switch loaders with one click in the panel.
Is CodeLib compatible with fabric and quilt?
CodeLib officially supports fabric, quilt for Minecraft 1.20.2, 1.20.1, 1.20. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with CodeLib – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if CodeLib 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 CodeLib with just one click on your server.