Repository navigation
Getting Started
Elib 1.5.1+26.3 targets Minecraft 26.3 and Java 25. It runs on the client. Choose one Elib artifact for each loader-specific module of your mod.
In the relevant Gradle project, add the release repository:
repositories {
maven {
url = uri('https://maven.elpu7.dev/releases')
}
}These Groovy Gradle examples use the same implementation configuration as the Elpu7 mods that consume Elib:
| Loader | Dependency |
|---|---|
| Fabric | implementation 'dev.elpu7:elib-fabric:1.5.1+26.3' |
| NeoForge | implementation 'dev.elpu7:elib-neoforge:1.5.1+26.3' |
| Quilt | implementation 'dev.elpu7:elib-quilt:1.5.1+26.3' |
Add only the line for your loader. If your build uses a different dependency configuration for mod JARs, use that configuration instead. Do not shade Elib into your mod: users need Elib installed as a separate mod.
Your mod's loader metadata must require elib at runtime. Merge the relevant example into your existing metadata, keeping your other dependencies.
In fabric.mod.json, add these entries to depends:
{
"depends": {
"elib": ">=1.5.1+26.3",
"fabric-api": "*"
}
}Elib's Fabric build requires Fabric API. Include it in your development run and require it in your release metadata.
In META-INF/neoforge.mods.toml, add this block. Replace examplemod with your mod ID:
[[dependencies.examplemod]]
modId = "elib"
type = "required"
versionRange = "[1.5.1+26.3,)"
ordering = "NONE"
side = "CLIENT"In quilt.mod.json, add an Elib entry to quilt_loader.depends:
{
"quilt_loader": {
"depends": [
{
"id": "elib",
"versions": ">=1.5.1+26.3"
}
]
}
}Elib's native Quilt build does not require Fabric API. Use the Quilt JAR in Quilt profiles.
Use the minimum Elib version your mod has actually been tested with. These examples require 1.5.1+26.3, including the shared language support and language-picker mouse fix.
If you publish on Modrinth, mark Elib as Required on every loader-specific version. Also mark Fabric API as Required for Fabric versions. A mention in the description or changelog does not replace the version's dependency setting.
Mod Menu is optional for Elib on Fabric and Quilt. Elib can also be opened from Minecraft's Options menu.
Call Elib's UI and language APIs during client initialization or on the client thread, and keep them out of dedicated-server initialization.
- Config Menu Integration — register an existing settings screen.
- Localization — use the shared language preference.
- Config Storage — load and save your settings.
- UI Helpers — add sliders, boolean options, and reset feedback.